Boot Solaris 10 from detached root mirrors


 
Thread Tools Search this Thread
Operating Systems Solaris Boot Solaris 10 from detached root mirrors
# 1  
Old 09-13-2010
Question Boot Solaris 10 from detached root mirrors

I recently ran some patching on a Solaris 10 server and as per normal procedure I detached the LVM root disk mirrors first to preserve the pre-patching copy of the OS.

During the patching, I ran into some issues which I managed to resolve and completed the patching. However, I was looking around to see if there is any online documents which state the procedure to get the system to boot from the detached sub-mirrors in the event of the roll-back becoming necessary.

Does anybody know of such a procedure to force Solaris 10 and Solaris10 x86 to boot from a detached set of mirrors?
# 2  
Old 09-13-2010
In SPARC, at the OK prompt "boot <New boot disk>" (ie Alias of the mirror)

Assuming that you have made the mirror bootable (bootblk)
# 3  
Old 09-13-2010
That's fine but the SVM config on the mirror disk still points to the old config when it was a mirror pair.

The bit that I would like to know is how do you reconfigure SVM and the system files so that when the system comes up off the secondary disk, it does not try to boot from the OS on the old primary disk?

Has nobody ever put together a step-by-step procedure on how to do this?
# 4  
Old 09-13-2010
Overall, you have to take SVM out of the picture. You'll need to make the changes to the /etc/vfstab file to boot off of the device name. Also, changes will need to be made in /etc/system. Then when you reboot the server from the "ok" prompt you can use the alias of the root mirror.
# 5  
Old 09-13-2010
I agree with what the guys just said.


Easy steps:

1. boot from CDROM in single user mode.

2. edit /etc/vfstab and put the root disk as a raw device again, put the disk you want to boot from.


3. remove the /etc/system entry of the SVM (or better commented ). It's one line usually towards the of the file, starts like this

* Begin MD
* End MD


(make sure you know which disk you are mounting and editing, as you have two copies of the files, one in each disk).


then from the OK prompt, just boot from the second disk.

---------- Post updated at 12:04 PM ---------- Previous update was at 12:03 PM ----------

Quote:
Originally Posted by Mack1982
In SPARC, at the OK prompt "boot <New boot disk>" (ie Alias of the mirror)

Assuming that you have made the mirror bootable (bootblk)
if you mirrored using SVM, then you don't need to install bootblk manually. When you backup or dump the root filesystem, then you need to install bootblk. But with SVM root mirrors, this step is not required.
# 6  
Old 09-14-2010
Here the steps I follow

- breaking the mirrors
Code:
metadetach d10 d12
metadetach d30 d32
metadetach d40 d42

- fsck the detached mirrors
Code:
fsck /dev/md/rdsk/d12
fsck /dev/md/rdsk/d32
fsck /dev/md/rdsk/d42

- Mount detached to modify /etc/system and /etc/vfstab
Code:
mount /dev/md/dsk/d12 /mnt

- Remove following line from /mnt/etc/system
Code:
rootdev:/pseudo/md@0:0,10...

- change following lines in /mnt/etc/vfstab
Code:
 /dev/md/dsk/d10  /dev/md/rdsk/d10  /     ufs  1  no
  /dev/md/dsk/d30  /dev/md/rdsk/d30  /var  ufs  1  no
  /dev/md/dsk/d40  /dev/md/rdsk/d40  /opt  ufs  1  no

To
Code:
 /dev/dsk/c2t500000E01998D020d0s0 /dev/rdsk/c2t500000E01998D020d0s0 /    ufs 1 no
  /dev/dsk/c2t500000E01998D020d0s3 /dev/rdsk/c2t500000E01998D020d0s3 /var ufs 1 no
  /dev/dsk/c2t500000E01998D020d0s4 /dev/rdsk/c2t500000E01998D020d0s4 /opt ufs 1 no

- Umount the Filesystem
Code:
umount /mnt

- Shut down the server for patching
- Patch the server
- Reboot the server
- a few days later attach the mirrors again

When the something happen during patching just boot from the mirror.

Last edited by gnom; 09-14-2010 at 08:50 PM.. Reason: Added boot
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Can a root role change the root password in Solaris 10?

i do not have root on a solairs 10 server , however i do have the root role, i was wondering if I can change the root password as a a role with the passwd command? I have not tried yet. and do i have to use the # chgkey -p afterwards? i need to patch is why i am asking. thanks (1 Reply)
Discussion started by: goya
1 Replies

2. Solaris

Solaris stuck during boot after reconfigure boot

Hello, I have a problem with my machine that won't boot properly. The story is that I installed a software called apcupsd, which is a control application for my APC battery UPS. I have used version 3.14.10 earlier, but as part of restoring my previously crashed os harddrive I wanted to... (18 Replies)
Discussion started by: Zorken
18 Replies

3. Solaris

Solaris x86 installation using jumpstart does not local boot ( boot from hdd)

I am trying to install Solaris x86 using the Jumpstart server. I run the add_install_client command with appropriate options, and reboot my x86 Target box. The installation starts fine and unattended. After the installation completes and the target goes for a re-boot, it does not boot from the HDD... (9 Replies)
Discussion started by: hemalsid
9 Replies

4. Solaris

flar restore with svm mirrors failing to create boot image

In a Solaris9 environment I'm trying to restore flash archive (flar) with SVM mirrored devices to same server via jumpstart server and it is failing to create boot file and drops down to a command prompt in single user mode, metastat -i and metastat -p output looks good when compared to the ones... (0 Replies)
Discussion started by: mbak
0 Replies

5. Solaris

Solaris DiskSuite, boot from detached disk

Hi, I am running Solaris 8 on Sun server with 2 hard drives. I have configured mirroring on the system using DiskSuite tool in order to have the same data on both disks. Now I want to perform some software upgrade and I would like to use the second disk as a backup disk. This means taking this... (3 Replies)
Discussion started by: carlossg
3 Replies

6. SCO

sco openserver 5.0.0 boot / root disk

Hi, I have an openserver 5.0.0 machine in the office. The sysad of that machine left years ago without leaving the password to anyone. I was wondering if someone has a copy of the boot / root diskettes (rescue) for this version? Or perhaps if anyone knows a download link / location in the... (0 Replies)
Discussion started by: marcpascual
0 Replies

7. Solaris

solaris boot problem boot error loading interpreter(misc/krtld)

When I installed the SOLARIS 10 OS first time, the desktop would not start up, this was because of network setup. Reinstalled worked. After a week due to some problem I had to reinstall OS, installation went fine and but when i reboot I get this error. cannot find mis/krtld boot error loading... (0 Replies)
Discussion started by: johncy_j
0 Replies

8. UNIX for Dummies Questions & Answers

Replacing root / boot files

Hi everybody, I am running SCO-V openserver platform running on P-100. How can I replace root / boot files ? I want to do this because, if my system is not getting booted or my root is corrupted, I want to just replace this with the back up taken or boot/root floppy. Usually I am restoring... (1 Reply)
Discussion started by: skant
1 Replies
Login or Register to Ask a Question