ceph存储 linux中fdisk分5个以上区Demo

注:
1、先要有三个主分区,然后是扩展分区(逻辑存在,实际不存在)
2、直接接着分区则为逻辑分区,实际为分割扩展分区

Command (m for help): p 

Disk /dev/sda: 750.2 GB, 750156374016 bytes, 1465149168 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 512 bytes / 512 bytes 
Disk label type: dos 
Disk identifier: 0x000d36b1 

Device Boot Start End Blocks Id System 
/dev/sda1 * 2048 409602047 204800000 83 Linux 
/dev/sda2 409602048 442361855 16379904 82 Linux swap / Solaris 

Command (m for help): n 
Partition type: 
p primary (2 primary, 0 extended, 2 free) 
e extended 
Select (default p): p 
Partition number (3,4, default 3): 
First sector (442361856-1465149167, default 442361856): 
Using default value 442361856 
Last sector, +sectors or +size{K,M,G} (442361856-1465149167, default 1465149167): +90^H 
Unsupported suffix: '. 
Supported: 10^N: KB (KiloByte), MB (MegaByte), GB (GigaByte) 
2^N: K (KibiByte), M (MebiByte), G (GibiByte) 
Last sector, +sectors or +size{K,M,G} (442361856-1465149167, default 1465149167): +96G 
Partition 3 of type Linux and of size 96 GiB is set 

Command (m for help): n 
Partition type: 
p primary (3 primary, 0 extended, 1 free) 
e extended 
Select (default e): e 
Selected partition 4 
First sector (643688448-1465149167, default 643688448): 
Using default value 643688448 
Last sector, +sectors or +size{K,M,G} (643688448-1465149167, default 1465149167): 
Using default value 1465149167 
Partition 4 of type Extended and of size 391.7 GiB is set 

Command (m for help): n 
All primary partitions are in use 
Adding logical partition 5 
First sector (643690496-1465149167, default 643690496): 
Using default value 643690496 
Last sector, +sectors or +size{K,M,G} (643690496-1465149167, default 1465149167): +96G 
Partition 5 of type Linux and of size 96 GiB is set 

Command (m for help): n 
All primary partitions are in use 
Adding logical partition 6 
First sector (845019136-1465149167, default 845019136): 
Using default value 845019136 
Last sector, +sectors or +size{K,M,G} (845019136-1465149167, default 1465149167): +96G 
Partition 6 of type Linux and of size 96 GiB is set 

Command (m for help): n 
All primary partitions are in use 
Adding logical partition 7 
First sector (1046347776-1465149167, default 1046347776): +96G 
Value out of range. 
First sector (1046347776-1465149167, default 1046347776): 
Using default value 1046347776 
Last sector, +sectors or +size{K,M,G} (1046347776-1465149167, default 1465149167): +96G 
Partition 7 of type Linux and of size 96 GiB is set 

Command (m for help): n 
All primary partitions are in use 
Adding logical partition 8 
First sector (1247676416-1465149167, default 1247676416): 
Using default value 1247676416 
Last sector, +sectors or +size{K,M,G} (1247676416-1465149167, default 1465149167): 
Using default value 1465149167 
Partition 8 of type Linux and of size 103.7 GiB is set 

Command (m for help): w 

The partition table has been altered! 

Calling ioctl() to re-read partition table. 

WARNING: Re-reading the partition table failed with error 16: Device or resource busy. 
The kernel still uses the old table. The new table will be used at 
the next reboot or after you run partprobe(8) or kpartx(8) 
Syncing disks. 
[root@skdkjzz ~]# partprobe 
[root@skdkjzz ~]# fdisk -l 


Disk /dev/sda: 750.2 GB, 750156374016 bytes, 1465149168 sectors 
Units = sectors of 1 * 512 = 512 bytes 
Sector size (logical/physical): 512 bytes / 512 bytes 
I/O size (minimum/optimal): 512 bytes / 512 bytes 
Disk label type: dos 
Disk identifier: 0x000d36b1 

Device Boot Start End Blocks Id System 
/dev/sda1 * 2048 409602047 204800000 83 Linux 
/dev/sda2 409602048 442361855 16379904 82 Linux swap / Solaris 
/dev/sda3 442361856 643688447 100663296 83 Linux 
/dev/sda4 643688448 1465149167 410730360 5 Extended 
/dev/sda5 643690496 845017087 100663296 83 Linux 
/dev/sda6 845019136 1046345727 100663296 83 Linux 
/dev/sda7 1046347776 1247674367 100663296 83 Linux 
/dev/sda8 1247676416 1465149167 108736376 83 Linux 
[root@skdkjzz ~]# partx /dev/sda 
NR START END SECTORS SIZE NAME UUID 
1 2048 409602047 409600000 195.3G 
2 409602048 442361855 32759808 15.6G 
3 442361856 643688447 201326592 96G 
4 643688448 1465149167 821460720 391.7G 
5 643690496 845017087 201326592 96G 
6 845019136 1046345727 201326592 96G 
7 1046347776 1247674367 201326592 96G 
8 1247676416 1465149167 217472752 103.7G

你可能感兴趣的:(ceph存储 linux中fdisk分5个以上区Demo)