免费注册 查看新帖 |

Chinaunix

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

[故障求助] 0516-1008错误的处理过程-原创 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-06-05 15:17 |只看该作者 |倒序浏览
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
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP