Chinaunix首页 | 论坛 | 博客
  • 博客访问: 754982
  • 博文数量: 130
  • 博客积分: 2951
  • 博客等级: 少校
  • 技术积分: 1875
  • 用 户 组: 普通用户
  • 注册时间: 2010-03-04 18:32
文章分类

全部博文(130)

文章存档

2013年(1)

2012年(129)

分类: 系统运维

2012-09-07 14:21:18

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


阅读(12353) | 评论(0) | 转发(0) |
0

上一篇:从V7000删除vdisk

下一篇:镜像写一致性

给主人留下些什么吧!~~