Hi All,
I have to remove the disk from SVM.
Kindly guide me or suggest me some link where in I can steps to remove SVM from Solaris 10 .Also I have one metaset which require deletion.
Thanks in anticipation!
Experts
Is it okay if I use metaclear -a to clear all the volumes? As I said in above post I do have one metaset , will it be ok to run metaclear -a in the above case also ?
Kindly suggest
Thanks for the link Duke!
However i just have small concern, that is to do with metaset
i removed the volume whcih was used in metaet with below command
#metaset �s pretest �f �d d150
Volume was deleted however once I am trying to remove the metaset as below
# metaset �s pretest -d �h unixtest
i am getting foll error
metaset: unixtest: pretest: unable to delete set, it still has drives
Please see the output from metastat, volume which was part of metaset is not listing however i am unable to delete the same
bash-3.00# metastat
d30: Mirror
Submirror 0: d31
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 8395200 blocks (4.0 GB)
d31: Submirror of d30
State: Okay
Size: 8395200 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s3 0 No Okay Yes
d20: Mirror
Submirror 0: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 6298944 blocks (3.0 GB)
d21: Submirror of d20
State: Okay
Size: 6298944 blocks (3.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s1 0 No Okay Yes
d10: Mirror
Submirror 0: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780224 blocks (8.0 GB)
d11: Submirror of d10
State: Okay
Size: 16780224 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s0 0 No Okay Yes
d100: Soft Partition
Device: d60
State: Okay
Size: 20971520 blocks (10 GB)
Extent Start Block Block count
0 32 20971520
d60: Mirror
Submirror 0: d61
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 111763008 blocks (53 GB)
d61: Submirror of d60
State: Okay
Size: 111763008 blocks (53 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s6 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SSEAGATE_ST373307LSUN72G_3HZ9S1P200007523H7M1
pupp
December 1, 2008, 10:42am
7
metaclear -a will tear down all local metadevices and host spare pools on the system.
have you attempted to do this?
No I have not as I was not sure about the consequences !
should i try ?
pupp
December 1, 2008, 1:38pm
9
if your intent is to remove all metadevices then yes.
Thanks
I tried clearing the volume with metaclear �a , however I believe its only going to work on unmounted volumes.
Root is mount on d10 and var is mount on d30 as I cant take this file system offline , can you please suggest as what need to be done?
Please see the output of df
And metastat output as foll
bash-3.00# metastat
d30: Mirror
Submirror 0: d31
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 8395200 blocks (4.0 GB)
d31: Submirror of d30
State: Okay
Size: 8395200 blocks (4.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s3 0 No Okay Yes
d20: Mirror
Submirror 0: d21
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 6298944 blocks (3.0 GB)
d21: Submirror of d20
State: Okay
Size: 6298944 blocks (3.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s1 0 No Okay Yes
d10: Mirror
Submirror 0: d11
State: Okay
Pass: 1
Read option: roundrobin (default)
Write option: parallel (default)
Size: 16780224 blocks (8.0 GB)
d11: Submirror of d10
State: Okay
Size: 16780224 blocks (8.0 GB)
Stripe 0:
Device Start Block Dbase State Reloc Hot Spare
c0t0d0s0 0 No Okay Yes
Device Relocation Information:
Device Reloc Device ID
c0t0d0 Yes id1,sd@SSEAGATE_ST373307LSUN72G_3HZ9S1P200007523H7M1
When i tried to execute metaclear -a i am getting below error
metaclear: unixtest: d30: metadevice is open
pupp
December 2, 2008, 10:21am
11
Solaris Volume Manager Administration Guide
this article is very clear and should take you down the right path. sun has some of the better documentation out there so use this to your advantage.
you will want to run metaroot on root slice, init 6, metaclear -r d10 and then metaclear d11. do the same for /var just not the metaroot.
make sure you check /etc/system and /etc/vfstab. you'll need to clean up vfstab.