请教个创建vg时不创建group的问题
本帖最后由 yyf0363 于 2010-12-10 15:09 编辑
我有个同事,在一块新盘上创建lv时,执行了以下步骤:
# pvcreate /dev/rdsk/c7t3d4
Physical volume "/dev/rdsk/c7t3d4" has been successfully created.
# vgcreate vgggs /dev/dsk/c7t3d4
Increased the number of physical extents per physical volume to 7679.
Volume group "/dev/vgggs" has been successfully created.
Volume Group configuration for /dev/vgggs has been saved in /etc/lvmconf/vgggs.conf
# vgdisplay -v vgggs
--- Volume groups ---
VG Name /dev/vgggs
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 0
Open LV 0
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 7679
VGDA 2
PE Size (Mbytes) 4
Total PE 7678
Alloc PE 0
Free PE 7678
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Physical volumes ---
PV Name /dev/dsk/c7t3d4
PV Status available
Total PE 7678
Free PE 7678
Autoswitch On
Proactive Polling On
# lvcreate -L 30712 -n golengatelv vgggs
Logical volume "/dev/vgggs/golengatelv" has been successfully created with
character device "/dev/vgggs/rgolengatelv".
Logical volume "/dev/vgggs/golengatelv" has been successfully extended.
Volume Group configuration for /dev/vgggs has been saved in /etc/lvmconf/vgggs.conf
# vgdisplay -v vgggs
--- Volume groups ---
VG Name /dev/vgggs
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 1
Act PV 1
Max PE per PV 7679
VGDA 2
PE Size (Mbytes) 4
Total PE 7678
Alloc PE 7678
Free PE 0
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vgggs/golengatelv
LV Status available/syncd
LV Size (Mbytes) 30712
Current LE 7678
Allocated PE 7678
Used PV 1
--- Physical volumes ---
PV Name /dev/dsk/c7t3d4
PV Status available
Total PE 7678
Free PE 0
Autoswitch On
Proactive Polling On
# newfs -F vxfs /dev/vgggs/rgolengatelv
version 5 layout
31449088 sectors, 31449088 blocks of size 1024, log size 16384 blocks
unlimited inodes, largefiles not supported
31449088 data blocks, 31424720 free data blocks
960 allocation units of 32768 blocks, 32768 data blocks
last allocation unit has 24576 data blocks
# mkdir /goldengate
#mount /dev/vgggs/golengatelv /goldengate
# ll /dev/*
crw-r----- 1 root sys 64 0x000000 Jun 20 2008 /dev/vg00/group
crw------- 1 root sys 64 0x030000 Oct 10 2009 /dev/vgarch1/group
crw------- 1 root sys 64 0x040000 Dec 7 10:50 /dev/vgggs/group
crw-rw-rw- 1 root sys 64 0x020000 Jun 24 2008 /dev/vglock/group
crw-rw-rw- 1 root sys 64 0x010000 Jun 23 2008 /dev/vgora/group
# bdf
Filesystem kbytes used avail %used Mounted on
/dev/vgggs/golengatelv
31449088 24178 29460861 0% /goldengate
以上是操作步骤,但是这里有个疑问,就是在创建vg时,按照常规的操作步骤是:
#pvcreate -f
#mkdir /dev/vgggs
#mknod /dev/vgggs/group c 64 0x040000
# vgcreate vgggs /dev/dsk/c7t3d4
然后下面的操作步骤和上面一致,所以这里我的同事在创建vg的时候少了
#mkdir /dev/vgggs
#mknod /dev/vgggs/group c 64 0x040000
这两个步骤,但是少了这两个步骤,创建vg也能成功。
所以想请教各位
1、这样创建的结果会不会有问题?(目前往文件系统里写数据没问题)
2、如果这样创建的结果正常的话,那么是不是可以理解为:可以把
#mkdir /dev/vgggs
#mknod /dev/vgggs/group c 64 0x040000
这两个步骤去掉,这两个步骤根本起不到任何作用?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
自动创建的是按照group的顺序创建的
自动创建的是按照group的顺序创建的
自动创建的是按照group的顺序创建的
新的版本都自动创建
一个自动一个手动。
31确实如此。。。