两个办法chdev -l hdisk -a pv=yes
odmget -q "name=hdisk1" CuAt >/tmp/1
vi /tmp/1
odmchange -o CuAt /tmp/1
现象:由于操作失误(chdev -l hdiskx -a pv=yes) 使得 hdiskx 的PVID发生改变, 硬盘上的内容尽管没被破坏,
但由于与VGDA区的描述不一致,造成卷组无法访问, 该怎么办? lspv
hdisk1 none None
mkvg -f -y testvg hdisk1
hdisk1 000bc93af21ffe79 testvg active
crfs -v jfs2 -g testvg -m /testfs01 -a size=100
hdisk1 000bc93af22f6aad None
些时,lqueryvg -Atp hdisk1
可以看到 ------- PV 0 ------
pv_id: 000bc93af21ffe79
还是之前的pvid
此时importvg会显示
# importvg -L testvg hdisk1
0516-306 getlvodm: Unable to find volume group testvg in the Device
Configuration Database.
0516-022 : Illegal parameter or structure value.
0516-780 importvg: Unable to import volume group from hdisk1.
用recreatevg解决这个问题
recreatevg -y testvg -l /tmp/lvname hdisk1
添加新评论0 条评论