SUMMARY: Sun Cluster: metaclear: metadevice is open

From: Aleks Feltin <aleks.feltin_at_sunsetwireless.fi>
Date: Thu Apr 24 2008 - 10:24:12 EDT
Many thanks to those, who sent me replies.

I was able to get the answer on opensolaris #ohac IRC channel.

That was the fix:

=======================
# metaset -s qfsset -w
# metaset -q qfsset -j
=======================
# metaclear -s qffset -a
...

fuser and lsof didn't report that metadevice files were held by the processes.
In fact I didn't try to reboot, but I believe after reboot I would be able to
get rid of metadevices without help of these 2 additional commands.

original message:
>Hi,
>
>I had QFS on my cluster (3.2u1 SPARC). I wanted to remove it after testing.
>
>1. unmounted samfs type filesystems
>2. deleted entries from vfstab
>3. deleted NFS resource group, containing QFS resource
>4. Removed SUNW qfs pakcages
>
>Now I want to remove multi-owner SVM diskset from a cluster.
>
>[root@callisto:~]# metaset
>
>Multi-owner Set name = qfsset, Set number = 1, Master = callisto
>
>Host                Owner          Member
>  callisto           multi-owner   Yes
>  leda               multi-owner   Yes
>
>Drive Dbase
>
>d18   Yes
>
>d41   Yes
>
>[root@callisto:~]# cldg show
>
>=== Device Groups ===
>
>Device Group Name:                              qfsset
>  Type:                                            Multi-owner_SVM
>  failback:                                        false
>  Node List:                                       callisto, leda
>  preferenced:                                     false
>  numsecondaries:                                  0
>  diskset name:                                    qfsset
>
>When trying to remove all diskset metadevices:
>
>[root@callisto:~]# metaclear -s qfsset -a
>Proxy command to: leda
>metaclear: leda: qfsset/d411: metadevice is open
>
>This fails for every metadevice while trying do delete one by one. I checked
>with lsof and found no references for metadevices.
>I want to get rid of this SVM multi-master diskset without rebooting the
node.
>Please advise, what should I do.
>
>--
>A
>
>[demime 1.01b removed an attachment of type application/pgp-signature which
had a name of signature.asc]
>_______________________________________________
>sunmanagers mailing list
>sunmanagers@sunmanagers.org
>http://www.sunmanagers.org/mailman/listinfo/sunmanagers

--
A

[demime 1.01b removed an attachment of type application/pgp-signature which had a name of signature.asc]
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers
Received on Thu Apr 24 10:24:56 2008

This archive was generated by hypermail 2.1.8 : Thu Mar 03 2016 - 06:44:10 EST