同事做了个镜像,最后删除swap镜像的时候提示in use.一直没想明白为什么,于是打算用cfgadm直接把这块盘从系统里踢出去.
-bash-3.00# cfgadm -c unconfigure c0::dsk/c0t1d0
cfgadm: Component system is busy, try again: failed to offline:
Resource Information
------------------ -------------------------------------
/dev/dsk/c0t1d0s1 component of concat "/dev/md/dsk/d21"
/dev/md/dsk/d21 submirror of "/dev/md/dsk/d1"
/dev/md/dsk/d1 dump device (dedicated)
/dev/dsk/c0t1d0s7 contains metadb(s)
该操作没有成功,按照提示检察dump device
-bash-3.00# dumpadm
Dump content: kernel pages
Dump device: /dev/md/dsk/d1 (dedicated)
Savecore directory: /var/crash/u60
Savecore enabled: yes
原来这才是凶手!将dump设置更改好,swap镜像正常删除.
-bash-3.00# dumpadm -d /dev/dsk/c0t0d0s1
Dump content: kernel pages
Dump device: /dev/dsk/c0t0d0s1 (swap)
Savecore directory: /var/crash/u60
Savecore enabled: yes
-bash-3.00# metaclear -f d21
metaclear: u60: d21: metadevice in use
-bash-3.00# metaclear -f d1
d1: Mirror is cleared
-bash-3.00# metaclear -f d21
d21: Concat/Stripe is cleared
-bash-3.00# metastat
阅读(1815) | 评论(0) | 转发(0) |