Changed type of partition ‘Linux‘ to ‘Linux LVM‘
Command (m for help): t //修改
Partition number (1-7, default 7): 6 //第6个分区
Hex code (type L to list all codes): 8e //类型为8e(LVM)
Changed type of partition ‘Linux‘ to ‘Linux LVM‘
Command (m for help): t //修改
Partition number (1-7, default 7): 7 //第7个分区
Hex code (type L to list all codes): 82 //类型为82(交换分区)
Changed type of partition ‘Linux‘ to ‘Linux swap / Solaris‘
确认分区结果并保存:
Command (m for help): p
.. ..
Device Boot Start End Blocks Id System
/dev/vdb1 2048 411647 204800 8e Linux LVM
/dev/vdb2 411648 4507647 2048000 83 Linux
/dev/vdb3 4507648 6555647 1024000 83 Linux
/dev/vdb4 6555648 20971519 7207936 5 Extended
/dev/vdb5 6557696 7581695 512000 8e Linux LVM
/dev/vdb6 7583744 11679743 2048000 8e Linux LVM
/dev/vdb7 11681792 12730367 524288 82 Linux swap / Solaris
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. //提示重启
3)刷新分区表
[root@server0 ~]# partprobe /dev/vdb
[root@server0 ~]# reboot
步骤二:新建卷组、逻辑卷
1)新建卷组datastore,指定PE大小为16MiB
[root@server0 ~]# vgcreate -s 16MiB datastore /dev/vdb6
Volume group "datastore" successfully created
[root@server0 ~]# vgscan //确认新建的卷组
Reading all physical volumes. This may take a while...
Found volume group "systemvg" using metadata type lvm2
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/jisuanjixue/article-58984-6.html
淘宝上买小米4
公关了
想去存