LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris, OpenSolaris, OpenIndiana, and illumos.
General Sun, SunOS and Sparc related questions also go here. Any Solaris fork or distribution is welcome.

Notices


Reply
  Search this Thread
Old 08-22-2008, 09:21 AM   #1
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Rep: Reputation: 43
Software Mirror - 2 issues


I have created Mirror like this:
Code:
/dev/md/dsk/d0  /dev/md/rdsk/d0 /       ufs     1       no      -
/dev/md/dsk/d4  /dev/md/rdsk/d4 /export/home    ufs     2       yes     -
/dev/md/dsk/d1  /dev/md/rdsk/d1 /opt    ufs     2       yes     -
/dev/md/dsk/d3  /dev/md/rdsk/d3 /opt2 ufs     2       yes     -
disk0 = c0t0d0
disk1 = c0t1d0

What I want to do is:
1. Power off system; Remove disk1 (c0t1d0) - will the system boot up (I expect not)?
2. No mater what is a result of point 1 if later I will P plugg disk1 back again - will the system boot normally with any errors ?

Last edited by czezz; 08-22-2008 at 09:28 AM.
 
Old 08-22-2008, 10:29 AM   #2
Rowley
Member
 
Registered: Jul 2008
Distribution: Solaris 10, OpenSolaris, CentOS 5
Posts: 40

Rep: Reputation: 15
Quote:
Originally Posted by czezz View Post
What I want to do is:
1. Power off system; Remove disk1 (c0t1d0) - will the system boot up (I expect not)?
2. No mater what is a result of point 1 if later I will P plugg disk1 back again - will the system boot normally with any errors ?
If your mirror is clean and and you've remembered to install the book block you should be able to boot off the backup disk by probably specifying the device in the boot menu and/or creating an alias of your backup disk and choosing that as your boot disk. Press 'e' at the grub menu I think, sorry this isn't that clear my experience of solaris on pc architecture is limited. Google for more info.

I imagine your mirror will be broken, you will need to re-sync your disks once you've replaced them using the metareplace -e command.
 
Old 08-22-2008, 03:38 PM   #3
czezz
Member
 
Registered: Nov 2004
Distribution: Slackware/Solaris
Posts: 924

Original Poster
Rep: Reputation: 43
The point is I'm still not sure what to do with piont 2.
When I plug disk back and start then what should I expect ?

Will it boot up normally or will it goes to single user mode ?
When should I do synhronization and how? When should I do metareplace and how ???

Any example looking at my /etc/vfstab ? (this is completly new to me)
 
Old 08-22-2008, 04:18 PM   #4
Rowley
Member
 
Registered: Jul 2008
Distribution: Solaris 10, OpenSolaris, CentOS 5
Posts: 40

Rep: Reputation: 15
- if the mirror is clean it should boot normally
- sync when your disks are out of sync - check http://docs.sun.com for more info, likewise with metareplace and google "vfstab"

If you're able to create a mirror, I assume you read up about it somewhere. If you want to experiment, install Virtualbox or something.

hth.
 
Old 08-30-2008, 07:48 AM   #5
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
Hi there:

It will not necessarily boot up properly if you remove the first disk. It is all dependent on how many state database replicas you have.

If you only have two disks and you put equal number of state database replicas on each disk, because of
the majority algorithm, solaris will not start svm if only 50% of the state database replicas are up.

You can bypass this algorithm by adding this line to /etc/system.

“set md:mirrored_root_flag=1

If you however have many disks and you put state database replicas on a bunch of disks AND removing the
first disk does not result in having 50% or less of the databases (check it with metadb -i), then you are ok.

For example, if I have 3 disks with 3 state databases each (9 total), removing the boot disk will result in losing 3. 9 - 3 = 6. You still have majority.

Regarding metareplace, you use that to replace a bad disk with a good one in a redundant configuration (mirrors and raid5s). Also, check out the man page for metasync.
 
Old 09-02-2008, 01:58 PM   #6
popowich
Member
 
Registered: Nov 2004
Location: Rochester, New York
Distribution: RHEL7
Posts: 53

Rep: Reputation: 15
Quote:
Originally Posted by javier.e.menendez View Post
“set md:mirrored_root_flag=1
Will this work after the fact if a disk has already failed?

-Raymond
 
Old 09-07-2008, 03:46 PM   #7
javier.e.menendez
Member
 
Registered: Jan 2006
Posts: 168

Rep: Reputation: 30
the setting in /etc/system works if you lose and drive and your machine either crashes or you reboot.

If your disk has failed and you are still running solaris, just remove the broken databases (metadb -df partition_name) and that way, you still have majority.

If your system is unable to boot, boot from the cdrom (boot cdrom -s) if it is a sparc system and either try to remove the broken databases or add the entry in /etc/system and then reboot.

I would need more info to help you more.

Cheers!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
adding drives to an existing software mirror shorun Linux - Software 3 09-15-2006 08:21 AM
Problem adding mirror site to 'Software Sourcer Media' with 'YaST. rlhanson Linux - Newbie 4 04-02-2006 01:50 PM
Creating software mirror raid during installation hq4ever Fedora 1 02-21-2006 09:09 AM
Recovering Software RAID Mirror rootking Linux - Software 1 11-01-2004 07:32 PM
software raid/mirror in MDK 9.1? basicaccess Mandriva 2 09-19-2003 04:03 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris

All times are GMT -5. The time now is 08:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration