datavg包含一个pv, hdisk31 , pvid=00f7903c71cbf453
- # lspv | grep datavg
- hdisk31 00f7903c71cbf453 datavg active
hdisk31的VGDA信息
- # lqueryvg -Atp hdisk31
- Max LVs: 256
- PP Size: 24
- Free PPs: 75
- LV count: 2
- PV count: 1
- Total VGDAs: 2
- Conc Allowed: 0
- MAX PPs per PV: 1016
- MAX PVs: 32
- Quorum (disk): 1
- Quorum (dd): 1
- Auto Varyon ?: 1
- Conc Autovaryon 0
- Varied on Conc: 0
- Logical: 00f7903c00004c000000013871cbf4f5.1 loglv00 1
- 00f7903c00004c000000013871cbf4f5.2 fslv00 1
- Physical: 00f7903c71cbf453 2 0
- Total PPs: 639
- LTG size: 128
- HOT SPARE: 0
- AUTO SYNC: 0
- VG PERMISSION: 0
- SNAPSHOT VG: 0
- IS_PRIMARY VG: 0
- PSNFSTPP: 4352
- VARYON MODE: 0
- VG Type: 0
- Max PPs: 32512
- Mirror Pool Str n
- Sys Mgt Mode: 0
- VG Reserved: 1
- PV RESTRICTION: 0
- Infinite Retry: 2
查看hdisk31上拥有的LV
- # lspv -l hdisk31
- hdisk31:
- LV NAME LPs PPs DISTRIBUTION MOUNT POINT
- loglv00 1 1 00..01..00..00..00 N/A
- fslv00 563 563 128..127..127..128..53 /mnt/m
卸载文件系统
把datavg信息从ODM中删除
- # varyoffvg datavg
- # exportvg datavg
- #
修改PVID
- # chdev -l hdisk31 -a pv=clear
- hdisk31 changed
查看hdisk31的pvid已经为null
- # lspv | grep hdisk31
- hdisk31 none None
尝试import datavg
- # importvg -y datavg hdisk31
- 0516-1939 : PV identifier not found in VGDA.
- 0516-780 importvg: Unable to import volume group from hdisk31.
创建逻辑卷名对应文件
- # vi lvname
- # cat lvname
- loglv00:loglv00
- fslv00:fslv00
重新创建卷组
- # recreatevg -y datavg -l lvname hdisk31
- datavg
recreate后,所有在hdisk31上的fs都挂在了/fs/....下,比如原来挂在/mnt/m下的现在挂在了/fs/mnt/m下,
- # lsfs
- Name Nodename Mount Pt VFS Size Options Auto Accounting
- /dev/hd4 -- / jfs2 524288 rw yes no
- /dev/hd1 -- /home jfs2 20971520 rw yes no
- /dev/hd2 -- /usr jfs2 10485760 rw yes no
- /dev/hd9var -- /var jfs2 2097152 rw yes no
- /dev/hd3 -- /tmp jfs2 9961472 rw yes no
- /dev/hd11admin -- /admin jfs2 524288 rw yes no
- /proc -- /proc procfs -- rw yes no
- /dev/hd10opt -- /opt jfs2 2621440 rw yes no
- /dev/livedump -- /var/adm/ras/livedump jfs2 524288 rw yes no
- /dev/VMLibrary -- /var/vio/VMLibrary jfs2 524288 rw yes no
- /dev/fslv00 -- /fs/mnt/m jfs2 18448384 rw no no
修改/etc/filesystems
- from:
- /fs/mnt/m:
- dev = /dev/fslv00
- vfs = jfs2
- log = /dev/loglv00
- mount = false
- check = false
- options = rw
- account = false
- to:
- /mnt/m:
- dev = /dev/fslv00
- vfs = jfs2
- log = /dev/loglv00
- mount = false
- check = false
- options = rw
- account = false
然后用smit chlv把fslv00的logical volume lable改为/mnt/m
再次查看
- # lsfs
- Name Nodename Mount Pt VFS Size Options Auto Accounting
- /dev/hd4 -- / jfs2 524288 rw yes no
- /dev/hd1 -- /home jfs2 20971520 rw yes no
- /dev/hd2 -- /usr jfs2 10485760 rw yes no
- /dev/hd9var -- /var jfs2 2097152 rw yes no
- /dev/hd3 -- /tmp jfs2 9961472 rw yes no
- /dev/hd11admin -- /admin jfs2 524288 rw yes no
- /proc -- /proc procfs -- rw yes no
- /dev/hd10opt -- /opt jfs2 2621440 rw yes no
- /dev/livedump -- /var/adm/ras/livedump jfs2 524288 rw yes no
- /dev/VMLibrary -- /var/vio/VMLibrary jfs2 524288 rw yes no
- /dev/fslv00 -- /mnt/m jfs2 18448384 rw no no
挂在文件系统
- # mount /mnt/m
- # ls
- AIXfp VIOS2.2.1.4fp25 storagecontrol4.2.1.1.tar systemdirector0049
- SysDir6_3_Server_AIX_a.tar software storagecontrol4.2.2.95 testfile
- #
阅读(12353) | 评论(0) | 转发(0) |