LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Solaris / OpenSolaris (http://www.linuxquestions.org/questions/solaris-opensolaris-20/)
-   -   SVM and bootsector on 2nd disk (http://www.linuxquestions.org/questions/solaris-opensolaris-20/svm-and-bootsector-on-2nd-disk-826758/)

czezz 08-17-2010 08:32 AM

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 ?

stuart_cherrington 08-17-2010 09:22 AM

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.

czezz 08-18-2010 02:56 AM

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 ?

stuart_cherrington 08-18-2010 06:04 AM

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.


All times are GMT -5. The time now is 02:45 AM.