- 论坛徽章:
- 0
|
lspv
hdisk0 00cf2e9b542c5f60 rootvg active
hdisk1 00cf2f1b97af0786 rootvg
active
想将hdisk1从rootvg 卷组里面剔除
1.当执行
/usr/sbin/reducevg '-d' rootvg hdisk1
0516-1008 rmlv: Logical volume loglv00 must be closed. If the logical volume
contains a filesystem, the umount command will close the LV device.
2.检查
# lspv -l hdisk1
hdisk1:
LV NAME LPs PPs DISTRIBUTION MOUNT POINT
loglv00 1 1 00..01..00..00..00 N/A
lv00 1 1 00..01..00..00..00 /var/adm/csd
hd3 16 16 00..00..16..00..00 /tmp
发现有三个逻辑卷在hdisk1,导致无法删除
3.处理 lv00
# umount /var/adm/csd
# /usr/sbin/rmlv -f 'loglv00'
执行# reducevg -d rootvg hdisk1
0516-914 rmlv: Warning, all data belonging to logical volume
lv00 on physical volume hdisk1 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)?
y
rmlv: Logical volume lv00 is removed.
0516-914 rmlv: Warning, all data belonging to logical volume
hd3 on physical volume hdisk1 will be destroyed.
rmlv: Do you wish to continue? y(es) n(o)?
y
0516-1008 rmlv: Logical volume hd3 must be closed. If the logical volume
contains a filesystem, the umount command will close the LV device.
0516-884 reducevg: Unable to remove physical volume hdisk1.
4.处理hd3
umount /tmp
系统报:umount: error unmounting /dev/hd3: Device busy
tmp 是无法umount
/usr/sbin/migratepv -l'hd3' hdisk1 hdisk0
将hdisk1上的/tmp目录移到hdisk0的/tmp
成功。且检查hd3/tmp数据依旧在
/usr/sbin/reducevg '-d' rootvg hdisk1
不再报0516-1008错。
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/17749/showart_123528.html |
|