免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3531 | 回复: 6
打印 上一主题 下一主题

请教个创建vg时不创建group的问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2010-12-10 14:56 |只看该作者 |倒序浏览
本帖最后由 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
这两个步骤去掉,这两个步骤根本起不到任何作用?

论坛徽章:
0
2 [报告]
发表于 2010-12-10 16:37 |只看该作者
31确实如此。。。

论坛徽章:
0
3 [报告]
发表于 2010-12-11 20:57 |只看该作者
一个自动一个手动。

论坛徽章:
0
4 [报告]
发表于 2010-12-12 13:57 |只看该作者
新的版本都自动创建

论坛徽章:
0
5 [报告]
发表于 2010-12-13 20:36 |只看该作者
自动创建的是按照group的顺序创建的

论坛徽章:
0
6 [报告]
发表于 2010-12-13 20:37 |只看该作者
自动创建的是按照group的顺序创建的

论坛徽章:
0
7 [报告]
发表于 2010-12-13 20:39 |只看该作者
自动创建的是按照group的顺序创建的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP