LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Solaris / OpenSolaris
User Name
Password
Solaris / OpenSolaris This forum is for the discussion of Solaris and OpenSolaris.
General Sun, SunOS and Sparc related questions also go here.

Notices

Reply
 
Search this Thread
Old 08-17-2010, 08:32 AM   #1
czezz
Member
 
Registered: Nov 2004
Location: Poland/Warsaw
Distribution: Slackware/Solaris
Posts: 552

Rep: Reputation: 30
SVM and bootsector on 2nd disk


I just wonder is it necessary to install bootsector on second disk after I create metadevice on /(root) slice ?

Both halfs of /(root) slice go into sync mode. Boot sector is written in 1st sectors of /(root) slice... therefor it seems to me unnecessary as sync should rewrite it on another disk. Am I right ?
 
Old 08-17-2010, 09:22 AM   #2
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
OK - you installed your OS, then used metaroot to convert the c*t*d*s* device into a /dev/dsk/md mountpoint, rebooted and you're now running on a metadevice with one component. You then attach the second disk/slice to this metadevice, it then mirrors up as you;d hope.

Bootsectors don't come into it.

Stuart.
 
Old 08-18-2010, 02:56 AM   #3
czezz
Member
 
Registered: Nov 2004
Location: Poland/Warsaw
Distribution: Slackware/Solaris
Posts: 552

Original Poster
Rep: Reputation: 30
So assuming 1st half of /(root) fs is on c0t0d0s0 and attached disk is c0t1d0s0.

I should now install boot block on second disk:
Code:
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk  /dev/rdsk/c0t1d0s0
and then set alternate disk to boot in case emergency. Like that:
Code:
setenv boot-device disk0 disk1 
OR
eeprom "boot-device=disk0 disk1"
Is that correct ?

Last edited by czezz; 08-18-2010 at 08:31 AM.
 
Old 08-18-2010, 06:04 AM   #4
stuart_cherrington
Member
 
Registered: Aug 2008
Location: Get back in your Cube Unix Boy!
Distribution: rh5, oel5, debian etch, solaris
Posts: 228

Rep: Reputation: 36
Don't think you need the alternate boot block, in fact trying to install it on c0t1d0s0 and then making this part of a mirror to c0t0d0s0 will just wipe its content anyway.

Hmm - possibly I'm barking up the wrong tree, when in your OP you mentioned 'metadevice' did you mean Metadevices found in SDS/SVM or are you using the 'metadevice' word in another context?

My host is using Mirroed SVM Disks c0t0d0 and c0t1d0, then the host 'eeprom' have 'boot-device: disk0' and I have a 'devalias rootmirror /pci@9,600000/SUNW,qlc@2/fp@0,0/disk@1,0' so I should be able to boot off that if c0t0d0 dies on me.

HTH

Stuart.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mount 2nd Hard disk bjlatt Linux - Newbie 5 01-26-2010 03:22 PM
Added a 2nd disk -- did I do it right? vhcg Linux - Newbie 3 03-09-2008 11:44 AM
Mounting and using 2nd hard disk daveturnbull Linux - Hardware 1 11-30-2007 05:41 AM
Booting to 2nd Disk Stingray Linux - Software 2 01-09-2005 10:21 AM
RH 7.1 , 2nd disk will not install mlevi Linux - Software 1 08-06-2001 07:57 AM


All times are GMT -5. The time now is 12:48 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration