Boot from Mirrored disk


 
Thread Tools Search this Thread
Operating Systems Solaris Boot from Mirrored disk
# 1  
Old 03-16-2012
Boot from Mirrored disk

So I have mirrored disk already set up from c1t0d0 to c1t1d0. Is there some special procedures that I need to do before I do and then try to boot from the mirrored disk? I am using a V490 if that helps...
# 2  
Old 03-16-2012
it depends on how you mirrored the disks... we need ALL information on what you've done to answer your question!
# 3  
Old 03-16-2012
I ran a script that copied the first disk to the second disk. Can I just comment out c1t0d0 in the vfstab, add in c1t1d0 and reboot?
# 4  
Old 03-16-2012
I think you should show us the script's code, so we can verify if it is really mirroring the disks in a proper way.
# 5  
Old 03-16-2012
Code:
# setup all values #
src=c1t0d0
dst=c1t1d0
root=0
slices="0 3 4 5 6 7"
####################
# create tmp dir for mountpoints
rm -rf /tmp/$$
mkdir /tmp/$$
chmod 700 /tmp/$$
# copy the source partition table to the dst disk
# if the src and dst disks are different sizes, comment out this
# line and set the dst layout manually.. BUT, make sure that
# each slice has sufficient space!
prtvtoc /dev/rdsk/$src\s0 | fmthard -s - /dev/rdsk/$dst\s0
# create new filesystems and copy
for a in $slices
do
 newfs /dev/rdsk/$dst\s$a </dev/null
 mkdir /tmp/$$/$a
 mount /dev/dsk/$dst\s$a /tmp/$$/$a
 cd /tmp/$$/$a
 sync   # try to flush fs buffers
 ufsdump 0f - /dev/rdsk/$src\s$a | ufsrestore rf -
 rm restoresymtable
 cd ..
 umount /tmp/$$/$a
 fsck -y /dev/rdsk/$dst\s$a
done
# install bootblk
installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk\
 /dev/rdsk/$dst\s$root
# change vfstab
mkdir /tmp/$$/root
mount /dev/dsk/$dst\s$root /tmp/$$/root
sed "s/$src/$dst/g" </tmp/$$/root/etc/vfstab >/tmp/$$/root/etc/vfstab1
mv /tmp/$$/root/etc/vfstab1 /tmp/$$/root/etc/vfstab
cd /
umount /tmp/$$/root
rm -rf /tmp/$$


Last edited by DukeNuke2; 03-16-2012 at 04:26 PM..
# 6  
Old 03-16-2012
It seems OK. You now have to shutdown the system into OBP (init 0) and select second disk for the boot command. Run devalias in OBP to check if you already have both of the boot disks aliased (you can post the output here if you are not sure).
# 7  
Old 03-16-2012
Ok.. thanks allot for the help. I will have to do it tomorrow because users are on the servers right now.

---------- Post updated at 02:44 PM ---------- Previous update was at 02:44 PM ----------

I will deffinately post the output tomorrow, although I am sure alot of people may not be on the site since its a weekend.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Use 'dd' to copy boot disk to larger target disk

Hi, I'm looking to copy a boot disk on an old Solaris 8 system using dd. I'll bring the system down to single user mode and begin from there. I'm copying my source disk to a larger target disk. Do I need to do anything other than the 'dd' command below because the target disk is bigger? ... (2 Replies)
Discussion started by: sparcman
2 Replies

2. Solaris

How to specify local boot up disk in CD boot Grub?

Hi Solaris 10 Experts, I am wondering what is the correct syntax to edit in Grub when trying to specify the local ZFS boot disk while booting up from a Solaris 10 x86 64bits DVD installation disk. In other word, I try to boot up from local disk without removing the Solaris installation disk... (0 Replies)
Discussion started by: gjackson123
0 Replies

3. Red Hat

Booting 2nd mirrored boot disk

Hi guys, thanks for helping out. If you have two boot disk mirrored and your primary boot disk fails, how will you boot the system from the second disk? Thank you very much for your assistance on this matter. Arrey (5 Replies)
Discussion started by: cjashu
5 Replies

4. Solaris

Need help replacing a mirrored boot disk

I have a v480 with a mirrored boot disk c1t0 and c1t1. The drives themselves don't show a failure but the mirror's need maintenance. This is my plan for replacing the drive. I would love feedback to point out what I"m missing or where my steps are incorrect. Two things I believe I'm... (3 Replies)
Discussion started by: pcoffey
3 Replies

5. UNIX for Advanced & Expert Users

how to create multiple-boot system with disks mirrored(RAID1+0) and disk alone

I have a HP proliant ML 570 G3 with two 146GB disk drives mirrored(RAID1+0) windows server 2003 was installed on that disk. I will add a disk.(scsi 300GB) I will install Linux on that additional disk. I want to create multiple-boot system. Is it possible? I wanna know how to create... (0 Replies)
Discussion started by: lifegeek
0 Replies

6. Solaris

Remove os mirrored disk Solaris 10

Hello once again seeking your help, I have a mirrored disk and need to unmirror it to mount it as a new file system (/export) but could not find the correct steps to do it with out affecting the original disk. can anybody point me out on how to get this done. Thanks!! (3 Replies)
Discussion started by: AQG
3 Replies

7. UNIX for Dummies Questions & Answers

Solaris 10 not booting with mirrored disk

Hi all, I have a V490 running with Solaris 10. The OS disk was mirrored. I wanted to break the mirror, boot with the secondary mirror, and re-mirror the OS with a new disk. This is what I did, detached the metadevices of the secondary mirror disk (disk 1) metaclear-ed the metadevices,... (1 Reply)
Discussion started by: nitinp82
1 Replies

8. UNIX for Dummies Questions & Answers

Creating create mirrored disk files systems using mkfs command

What is the correct mkfs syntax to create mirrored disk files systems? I need to make the file system 20gb. For example: machine# mkfs -F ufs /dev/md/dsk/d40 size not specified ufs usage: mkfs special size(sectors) \ -m : dump fs cmd line used to make this partition -V : print this... (4 Replies)
Discussion started by: GLJ@USC
4 Replies

9. AIX

Mirrored disk.....

How do I know, which all disks are mirrored? any command? Bala (7 Replies)
Discussion started by: balaji_prk
7 Replies

10. HP-UX

Number of Disk Mirrored in HP-UX

In HP-UX 11.00 How can i check if there are disks mirrored (2 Replies)
Discussion started by: cgege
2 Replies
Login or Register to Ask a Question