Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

setting up boot and mirror devalias

Status
Not open for further replies.

gallows

Technical User
Jun 12, 2004
223
0
0
US
I am in the process of mirroring the rootdisk with Solaris 9 VM on a SunFire280R. I only have 2 36GB drives that came with the system. I want to set it up so that if the boot disk fails, the mirror will take over for the boot. The output of format:
AVAILABLE DISK SELECTIONS:
0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0108fb591,0
1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0108fbc11,0

The device path:
# ls -l /dev/dsk/c1t0d0s0 /dev/dsk/c1t1d0s0
lrwxrwxrwx 1 root root 70 Oct 14 19:20 /dev/dsk/c1t0d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0108fb591,0:a
lrwxrwxrwx 1 root root 70 Oct 14 19:20 /dev/dsk/c1t1d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w500000e0108fbc11,0:a

The only thing that looks different is the ssd@w.... I don't think the world number is part of the device so how does the system know which is which?
How can I set up an alias called rootmirror and have it boot if the normal disk fails?

I'm confused as usual. Any help would be greatly appreciated.

Tks
 
Thanks Spamly. I looked at the url. I will check out the sdsinstall script. I never heard of it. In their example, it shows:
# eeprom "nvramrc=devalias sds-root /pci@1f,4000/scsi@3/disk@0,0
devalias sds-mirror /pci@1f,4000/scsi@3/disk@1,0"

Makes sense to me because of the disk@0,0 and disk@1,0. I don't know how to apply that to my case. That is actually what I am trying to figure out.
Thanks again!! I appreciate the response.

gallows
 
Gallow,
Don't forget to set-up NVRAM variable boot-device to your
new device names.

setenv boot-device sds-root sds-mirror
 
as long as you do not reboot a system, which root device is failed and is mirrored, you will never need the devicealiases and boot-devices, but it is ok to have them

Best Regards, Franz
--
Solaris System Manager from Munich, Germany
I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top