ubuntu下擴充套件LVM磁碟的方法分享
[email protected] :~# fdisk /dev/sdb \\對硬碟sdb進行分割槽
Command (m for help): n \\建立新的分割槽
Command action
e extended
p primary partition (1-4)
p \\建立主分割槽
Partition number (1-4): 1
First cylinder (1-522, default 1): \\預設值
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-522, default 522): \\預設值
Using default value 522
Command (m for help): p //檢視當前分割槽
Disk /dev/sdb: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x542e4b15
Device Boot Start End Blocks Id System
/dev/sdb1 1 522 4192933+ 83 Linux
Command (m for help): t \\改變分割槽型別
Selected partition 1
Hex code (type L to list codes): 8e \\更改為LVM型別分割槽
Changed system type of partition 1 to 8e (Linux LVM)
Command (m for help): w \\ 保持退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.