Solaris / OpenSolarisThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
- 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.
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.