实验
从两块磁盘中各取10G,组成20G的卷组。从卷组中划分一个16G的逻辑卷,将此逻辑卷格式化,并挂载到/mbox。
1。添加磁盘sdb并给磁盘划分一个10G的区出来
[root@localhost ~]# fdisk /dev/sdb
WARNING: DOS-compatible mode is deprecated. It‘s strongly recommended to
switch off the mode (command ‘c‘) and change display units to
sectors (command ‘u‘).
Command (m for help): p
Partition number (1-4): 1
First cylinder (1-10443, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-10443, default 10443): +10G
2.将划分出来的一个区格式改为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)
Command (m for help): p {输入p查看创建磁盘分区信息}
Disk /dev/sdb: 85.9 GB, 85899345920 bytes
255 heads, 63 sectors/track, 10443 cylinders</