Remove Solaris Volume Manager Information

Breaking Solaris SVM is easy, but sometimes if we type wrong command it will become a big trouble and wasting time to troubleshoot, like what I did  yesterday, I’m stuck!;-).  so, if you stuck with SVM, just remove or clear the whole SVM information on the disk (both mirror and submirror).

CLEAR / Remove Solaris Volume Manager Information:
———————————————————————-
1. All of the Solaris Volume Manager information is stored in three files:
/kernel/drv/md.conf
/etc/lvm/mddb.cf
/etc/lvm/md.cf

So to clear out Solaris Volume Manager, overwrite these files with the files from a system without Solaris Volume Manager or just remove the last entry configuration.

your three files configuration become like this:

bash-3.00# more /kernel/drv/md.conf
#
#pragma ident   “@(#)md.conf    2.2     04/04/02 SMI”
#
# Copyright 2004 Sun Microsystems, Inc.  All rights reserved.
# Use is subject to license terms.
#
# The parameters nmd and md_nsets are obsolete.  The values for these
# parameters no longer have any meaning.
name=”md” parent=”pseudo” nmd=128 md_nsets=4;

bash-3.00# more /etc/lvm/mddb.cf
#pragma ident   “@(#)mddb.cf    2.1     00/07/07 SMI”
#
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.
#metadevice database location file do not hand edit
#driver minor_t daddr_t checksum

bash-3.00# more /etc/lvm/md.cf
#pragma ident   “@(#)md.cf      2.1     00/07/07 SMI”
#
# Copyright (c) 2000 by Sun Microsystems, Inc.
# All rights reserved.
#
# metadevice database configuration file
# do not hand edit

2. and also, there is an entry similar to “rootdev:/pseudo/md@0:0,0,blk” in the “/etc/system” file, dont forget to remove this entry. Do not just comment it out.

3. edit “/etc/vfstab” configuration, then reboot.

4. now,  perform mirroring disk again;-)

One response to “Remove Solaris Volume Manager Information

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s