快速业务通道

LVM磁盘管理技术案例讲解

作者 佚名技术 来源 Linux系统 浏览 发布时间 2012-05-06
his may take a while...
Couldn''t find device with uuid ''6T3gUb-fFdj-MMUL-wUTN-qdXG-8iEP-KsWbgb''.
Couldn''t find all physical volumes for volume group VolGroup00.
Couldn''t find device with uuid ''6T3gUb-fFdj-MMUL-wUTN-qdXG-8iEP-KsWbgb''.
Couldn''t find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found
[root@localhost /]# vgcreate vg0 /dev/sdb1 /dev/sdb2 #建立卷组,名字叫:vg0
Volume group "vg0" successfully created
[root@localhost /]#
[root@localhost /]# vgdisplay vg0 # 查看下卷组vg0得情况
--- Volume group ---
VG Name vg0
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 1
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 0
Open LV 0
Max PV 0
Cur PV 2
Act PV 2
VG Size 200.00 MB
PE Size 4.00 MB #默认PE 都是4M, 通过 vgcreate -s 8M 可修改.
Total PE 50
Alloc PE / Size 0 / 0
Free PE / Size 50 / 200.00 MB
VG UUID WKRPJT-MI6G-vGk9-vne2-Gfg2-sAry-llsF7B
请输入内容 OK,下面是建立逻辑卷了,在这不我添加了名字为data 的逻辑卷了. 注意:-L 和-l的区别,前面是根据大小来的,后面的是根据块数来的,也就是几个PE. [root@localhost /]# lvcreate -n data -L 10M vg0 #建立名为data,大小10M
/dev/cdrom: open failed: Read-only file system
Rounding up size to full physical extent 12.00 MB
Logical volume "data" created
[root@localhost /]# lvdisplay #查看下逻辑卷情况
--- Logical volume ---
LV Name /dev/vg0/data
VG Name vg0
LV UUID qrC9H4-iHWi-Si4m-hN7G-x6Cm-yupr-aXRBVi
LV Write Access read/write
LV Status available
# open 0
LV Size 12.00 MB #为什么是12M呢?我不是输入10M大小的吗?
Current LE 3 就当是个问题考考大家了,
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 253:2
Couldn''t find device with uuid ''6T3gUb-fFdj-MMUL-wUTN-qdXG-8iEP-KsWbgb''.
Couldn''t find all physical volumes for volume group VolGroup00.
Couldn''t find device with uuid ''6T3gUb-fFdj-MMUL-wUTN-qdXG-8iEP-KsWbgb''.
Couldn''t find all physical volumes for volume group VolGroup00.
Volume group "VolGroup00" not found
[root@localhost /]# mkfs.ext3 /dev/vg0/data #格式化成ext3格式.
mke2fs 1.35 (28-Feb-2004)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
3072 inodes, 12288 blocks
614 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=12582912
2 block groups
8192 blocks per group, 8192 fragments per group
1536 inodes per group
Superblock backups stored on blocks:
8193
Writing inode tables: done
Creating journal (1024 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 35 mounts or
180 days, which

凌众科技专业提供服务器租用、服务器托管、企业邮局、虚拟主机等服务,公司网站:http://www.lingzhong.cn 为了给广大客户了解更多的技术信息,本技术文章收集来源于网络,凌众科技尊重文章作者的版权,如果有涉及你的版权有必要删除你的文章,请和我们联系。以上信息与文章正文是不可分割的一部分,如果您要转载本文章,请保留以上信息,谢谢!

分享到: 更多

Copyright ©1999-2011 厦门凌众科技有限公司 厦门优通互联科技开发有限公司 All rights reserved

地址(ADD):厦门软件园二期望海路63号701E(东南融通旁) 邮编(ZIP):361008

电话:0592-5908028 传真:0592-5908039 咨询信箱:web@lingzhong.cn 咨询OICQ:173723134

《中华人民共和国增值电信业务经营许可证》闽B2-20100024  ICP备案:闽ICP备05037997号