[root@MyVPS ~]# fdisk /dev/xvdb The number of cylinders for this disk is set to 2871. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) 输入n新建分区 Command (m for help): n Command action e extended p primary partition (1-4) p
/dev/xvdb中第1个分区 Partition number (1-4): 1 First cylinder (1-2871, default 1): Using default value 1 Last cylinder or +size or +sizeM or +sizeK (1-2871, default 2871): Using default value 2871
输入t,改变分区格式为8e (LVM格式) Command (m for help): t selected partition 1 Hex code (type L to list codes): 8e Changed system type of partition 1 to 8e (Linux LVM)
输入w保存退出 Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. Syncing disks.