常常用fdisk 分小於2T 的服務器,來了一個大於6T 的磁盤分區,作好記錄node
[root@esdate_01_logserve ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg01-root 39G 2.6G 34G 7% / devtmpfs 126G 0 126G 0% /dev tmpfs 126G 0 126G 0% /dev/shm tmpfs 126G 9.2M 126G 1% /run tmpfs 126G 0 126G 0% /sys/fs/cgroup /dev/sdm2 1.9G 107M 1.7G 6% /boot /dev/mapper/vg01-app 296G 1.1G 280G 1% /app tmpfs 26G 0 26G 0% /run/user/0 tmpfs 26G 0 26G 0% /run/user/1003 /dev/sdb1 5.5T 89M 5.2T 1% /data/data1 tmpfs 26G 0 26G 0% /run/user/1000 /dev/sda1 5.5T 89M 5.2T 1% /data/data2 [root@esdate_01_logserve ~]# fdisk -l |grep /dev/sd WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/sdm: 1199.6 GB, 1199638052864 bytes, 2343043072 sectors /dev/sdm1 2048 6143 2048 83 Linux /dev/sdm2 * 6144 4102143 2048000 83 Linux /dev/sdm3 4102144 2260645887 1128271872 8e Linux LVM Disk /dev/sdb: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sda: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdi: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdc: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdf: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdd: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdh: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sde: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdl: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdk: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdg: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors Disk /dev/sdj: 6001.2 GB, 6001175126016 bytes, 11721045168 sectors [root@esdate_01_logserve ~]# parted /dev/sdj GNU Parted 3.1 Using /dev/sdj Welcome to GNU Parted! Type 'help' to view a list of commands. (parted) mklabel gpt (parted) mkpart primary 0% 100% (parted) print Model: ATA ST6000NM0115-1YZ (scsi) Disk /dev/sdj: 6001GB Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags: Number Start End Size File system Name Flags 1 1049kB 6001GB 6001GB primary (parted) quit Information: You may need to update /etc/fstab. [root@esdate_01_logserve ~]# mkfs.ext4 /dev/sdj1 mke2fs 1.42.9 (28-Dec-2013) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) Stride=0 blocks, Stripe width=0 blocks 183144448 inodes, 1465130240 blocks 73256512 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=3613392896 44713 block groups 32768 blocks per group, 32768 fragments per group 4096 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000, 214990848, 512000000, 550731776, 644972544 Allocating group tables: done Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done [root@esdate_01_logserve ~]# partprobe -s /dev/sda: gpt partitions 1 /dev/sdb: gpt partitions 1 /dev/sdi: gpt partitions 1 /dev/sdj: gpt partitions 1 /dev/sdm: msdos partitions 1 2 3 [root@esdate_01_logserve ~]# mount -a [root@esdate_01_logserve ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg01-root 39G 2.6G 34G 7% / devtmpfs 126G 0 126G 0% /dev tmpfs 126G 0 126G 0% /dev/shm tmpfs 126G 9.2M 126G 1% /run tmpfs 126G 0 126G 0% /sys/fs/cgroup /dev/sdm2 1.9G 107M 1.7G 6% /boot /dev/mapper/vg01-app 296G 1.1G 280G 1% /app tmpfs 26G 0 26G 0% /run/user/0 tmpfs 26G 0 26G 0% /run/user/1003 /dev/sdb1 5.5T 89M 5.2T 1% /data/data1 tmpfs 26G 0 26G 0% /run/user/1000 /dev/sda1 5.5T 89M 5.2T 1% /data/data2 [root@esdate_01_logserve ~]# mount /dev/sdj1 /data/data12 [root@esdate_01_logserve ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg01-root 39G 2.6G 34G 7% / devtmpfs 126G 0 126G 0% /dev tmpfs 126G 0 126G 0% /dev/shm tmpfs 126G 9.2M 126G 1% /run tmpfs 126G 0 126G 0% /sys/fs/cgroup /dev/sdm2 1.9G 107M 1.7G 6% /boot /dev/mapper/vg01-app 296G 1.1G 280G 1% /app tmpfs 26G 0 26G 0% /run/user/0 tmpfs 26G 0 26G 0% /run/user/1003 /dev/sdb1 5.5T 89M 5.2T 1% /data/data1 tmpfs 26G 0 26G 0% /run/user/1000 /dev/sda1 5.5T 89M 5.2T 1% /data/data2 /dev/sdi1 5.5T 89M 5.2T 1% /data/data3 /dev/sdj1 5.5T 89M 5.2T 1% /data/data12