how to get back a SVM volume to solaris control


 
Thread Tools Search this Thread
Operating Systems Solaris how to get back a SVM volume to solaris control
# 1  
Old 04-13-2008
how to get back a SVM volume to solaris control

hi.., help me in this case...

1) now the disk is under disksuite, its have some mirrored volume.

how can i get back this disk to OS control.

2) how can i know the a SVM volume avalable,used space.
and the filesystem size on tht volume

please help in this i am bigginer...
# 2  
Old 04-14-2008
Quote:
Originally Posted by b.janardhanguru
hi.., help me in this case...

1) now the disk is under disksuite, its have some mirrored volume.

how can i get back this disk to OS control.

2) how can i know the a SVM volume avalable,used space.
and the filesystem size on tht volume

please help in this i am bigginer...


If you're a beginner I advice you don't try to undo anything, SDS is very easy but if you dunno what you are doing you can mess up system just as easily.


To see what metadevices you have run

metastat -p

df -k

then compare which metadevice is used for which filesystem, df -k will also show you what is being mounted and how much used, metadevice for swap will not show up in df.

before you do anything, do yourself a favor goto /etc and backup the following

cp -p system system.ORG.APRIL
cp -p vfstab vfstab.ORG.APRIL
metastat -p > metastat.p.APRIL
# 3  
Old 04-14-2008
many thanks for ur advice...,

and here i am not going to impliment. its asking for my knowledge.

how do get back the SVM volume to OS level..,

plse help me..,
# 4  
Old 04-14-2008
Is quite easy. But before undoing anything. You need to compare metadevices to filesystem.

If your metadevices are concatted or striped across more than 1 disk, that filesystem cannot undo, if you undo you will lose data. To fix this I guess you have to backup the data to tape or create a new non-sds single disk slice filesystem large enough to hold that data, it can be time consuming depending on the size of your data.

But if once you established 1 metadevice --> 1 disk slice then next thing is to rewrite your vfstab file to mount block devices change the /dev/md/dsk to /dev/dsk, it helps if you had the original before the OS was under SDS otherwise you have to write it yourself.

Lastly you need to edit out or delete the following in /etc/system.

* Begin MDD root info (do not edit)
forceload: misc/md_trans
forceload: misc/md_raid
forceload: misc/md_hotspares
forceload: misc/md_sp
forceload: misc/md_stripe
forceload: misc/md_mirror
forceload: drv/pcisch
forceload: drv/qlc
forceload: drv/fp
forceload: drv/ssd
rootdev:/pseudo/md@0:0,0,blk
* End MDD root info (do not edit)

If you fail to do this and reboot the system, the system may start to go into a looping panic.

Once you are sure re-configured everything properly do the reboot. BUT DO NOT DO METACLEAR on any metadevice until you have rebooted the system at least once and the system able to come up properly.

Make sure you backup those files like I told you to. In case the whole thing screw up you can at least have a fall back.
# 5  
Old 04-15-2008
thankq..,
it is very help full to me...,

as well as if i wanna take a SVM disk back to OS.

1) i need to detach the mirroring volumes,
2) metaclear the all volumes
3) delete the all replicas on tht disk.

then we can say the disk is under OS control.

is this correct. or did i missed anything..,

thanks once again

Last edited by b.janardhanguru; 03-11-2009 at 10:22 PM..
# 6  
Old 04-15-2008
Quote:
Originally Posted by b.janardhanguru
thankq..,
it is very help full to me...,

as well as if i wanna take a SVM disk back to OS.

1) i need to detach the mirroring volumes,
2) metaclear the all volumes
3) delete the all replicas on tht disk.

then we can say the disk is under OS control.

is this correct. or did i missed anything..,

thanks once again

no no no ... there is no need to detach any mirror DO NOT DETACH ANY MIRROR AND DO NOT DO ANY METACLEAR

Configure your /etc/vfstab file to first boot up in block device, hash off those entries in /etc/system then reboot server. until you are sure the server can boot up properly in block device then only do metaclear.

This is because in the event some thing screw up you can still fall back, if something bad happens just
cp /etc/vfstab.ORG.APRIL /etc/vfstab
cp /etc/system.ORG.APRIL /etc/system

I don't want to lecture you but when you do something like this you must ALWAYS think where is your way out, what is the fall back plan in case something goes wrong, don't do something without any planning then when things go wrong and you start to regret, it will be too late by then.

Last edited by sparcguy; 04-15-2008 at 11:50 PM..
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Passing control back to the shell script

Hi All, I have a shell script(test_abc.sh) with the following shell commands, which are invoking the same shell script with different parameters. test_abc.sh . ./test.sh abc >> test.log . ./test.sh xyz >> test.log . ./test.sh pys >> test.log . ./test.sh abc >> test.log . . ... (4 Replies)
Discussion started by: dev.devil.1983
4 Replies

2. Solaris

Help with installing SVM on solaris 10

Hello Gurus, I am setting up a V240 with solaris 10 for learning purpose. I have 4 x 36Gb disk installed and I now want to install SVM just tp learn this disk management utility. What I want to know is where do I look for the SVM pkg ? is this the right command pkgchk -L SUNWsvm . Can anyone... (3 Replies)
Discussion started by: Moh
3 Replies

3. Solaris

How to extend an existing file system using SVM in solaris 10

Hi All I want to extend this file system to 120Gb: df -h /xyz Filesystem size used avail capacity Mounted on /dev/md/dsk/d80 98G 35G 62G 37% /xyzand the NetApp admin is going to give me an LUN with 22Gb. This file system is mounted on: metastat d80... (1 Reply)
Discussion started by: fretagi
1 Replies

4. Shell Programming and Scripting

Ampersand not giving back the control (Korn shell)

OS version : AIX 6.1 Shell : Korn When you 'postfix' a command with ampersand (&) , it is supposed to run in the background and give you back the control. I tested this with ping command (by default it pings every 1 second ) After I ran the below ping command with ampersand, I pressed... (3 Replies)
Discussion started by: polavan
3 Replies

5. Solaris

How to check SVM version Solaris 9 and 10?

How to check Solaris Volume Manager Version in 9 & 10? Which are the packages that are installed in the SVM? (1 Reply)
Discussion started by: ajhal04
1 Replies

6. Solaris

SVM metaset on 2 node Solaris cluster storage replicated to non-clustered Solaris node

Hi, Is it possible to have a Solaris cluster of 2 nodes at SITE-A using SVM and creating metaset using say 2 LUNs (on SAN). Then replicating these 2 LUNs to remote site SITE-B via storage based replication and then using these LUNs by importing them as a metaset on a server at SITE-B which is... (0 Replies)
Discussion started by: dn2011
0 Replies

7. Solaris

ZFS and SVM - volume management

pupp, thanks for the information. but is its integrated volume management better than SVM that we use (with ufs i believe)? (2 Replies)
Discussion started by: StarSol
2 Replies

8. Solaris

How can i grow Raid 5 volume in SVM..?

Hello experts.. How can i grow Raid 5 volume in SVM? Thanks in advance.. (2 Replies)
Discussion started by: younus_syed
2 Replies

9. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies
Login or Register to Ask a Question