Mirror the root disk


 
Thread Tools Search this Thread
Operating Systems Solaris Mirror the root disk
# 8  
Old 02-03-2010
Quote:
Originally Posted by hergp
You should install a bootblock on the second disk. On a SPARC machine you use:
Code:
/usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0

I think the bootblock is not covered by the SVM sync process.

Hi, when i run this,
it show me
Code:
root@leo # /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0
/dev/rdsk/c1t1d0s0: Not writeable

# 9  
Old 02-03-2010
Can you please check the access mode on the physical device? It should be something like

Code:
$ ls -lL /dev/rdsk/c1t1d0s0
crw-r-----   1 root     sys      118,  8 Jan  7 09:11 /dev/rdsk/c1t1d0s0

If you have to change the access mode, find the target of the symbolic link

Code:
$ ls -l /dev/dsk/c1t1d0s0
lrwxrwxrwx   1 root     root          70 Nov 17 14:37 /dev/dsk/c1t1d0s0 -> ../../devices/pci@8,600000/SUNW,qlc@4/fp@0,0/ssd@w2100000c50ac8c6e,0:a

and change owner, group and access mode of that device to root, sys and 640. Then 'installboot' should work.
# 10  
Old 02-03-2010
Yes, the access mode is same as yours. =)
any idea ?
erm... this should run before the mirroring or after ?
coz i haven do the mirroring yet. =)

Code:
root@leo # ls -lL /dev/rdsk/c1t1d0s0
crw-r-----   1 root     sys      118,  8 Jun 13  2005 /dev/rdsk/c1t1d0s0
root@leo # ^C
root@leo # ls -l /dev/dsk/c1t1d0s0
lrwxrwxrwx   1 root     root          70 Jun  9  2005 /dev/dsk/c1t1d0s0 -> ../.. /devices/pci@9,600000/SUNW,qlc@2/fp@0,0/ssd@w21000011c6a75d1b,0:a

# 11  
Old 02-03-2010
Strange! 'installboot' is a simple shellscript and one line reads as:
Code:
test ! -w $DEVICE && away 1 "$DEVICE: Not writeable"

It seems 'test -w /dev/rdsk/c1t1d0s0' is 'false' on your system.

Are there any errors logged in '/var/adm/messages'? And is the new vtoc already installed on the second disk?
# 12  
Old 02-03-2010
Hi hergp

I think is the my PC and the server connection problem.
after I reconnect to the server again.

it able to run the shellscript
Code:
root@leo # /usr/sbin/installboot /usr/platform/`uname -i`/lib/fs/ufs/bootblk /dev/rdsk/c1t1d0s0
root@leo #

# 13  
Old 02-03-2010
Great !!
# 14  
Old 02-03-2010
Yup.. I forgot to update you on the bootblk installation on the mirror disk . Thanks hergpSmilie
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Solaris

Mirror root disk - V490

Got a V490 with one existing root disk. Other disk slot was never populated. Want to ensure we've got disk mirroring. Currently vfstab mounts the physical disk - no mirroring set up. Whats best way to achieve this without losing current disk? (1 Reply)
Discussion started by: psychocandy
1 Replies

2. Solaris

How to detach root mirror pool?

I have to do patching in single user mode in solaris 10 zfs root pool. Before that I have to detach the root mirror pool so that if patching fails then I can boot from detached root mirror pool. Please let me know how can I detach root pool bash-3.2# zpool status pool: rpool state: ONLINE... (5 Replies)
Discussion started by: hb00
5 Replies

3. HP-UX

What is the difference between DRD and Root Mirror Disk using LVM mirror ?

what is the difference between DRD and Root Mirror Disk using LVM mirror ? (3 Replies)
Discussion started by: maxim42
3 Replies

4. AIX

Clone or mirror your AIX OS larger disk to smaller disk ?

hello folks, I have a 300GB ROOTVG volume groups with one filesystem /backup having 200GB allocated space Now, I cannot alt disk clone or mirrorvg this hdisk with another smaller disk. The disk size has to be 300GB; I tried alt disk clone and mirrorvg , it doesn't work. you cannot copy LVs as... (9 Replies)
Discussion started by: filosophizer
9 Replies

5. Solaris

OBP - root / mirror disk syntax

Hi all Can someone explain to me the different syntax regarding how root / mirror disks are represented. I never truely understand the namely / device tress etc. Let me give you an example. On one my my servers, the root and mirror drives are :- A domain on a sunfire 6800 :- ... (6 Replies)
Discussion started by: sbk1972
6 Replies

6. Solaris

Root Mirror is broken

Hi all, Root mirror is broken under veritas control. so could you please help me how to boot the system now step by step procedure. i really thankful to all. regards krishna (3 Replies)
Discussion started by: murthy76
3 Replies

7. UNIX for Dummies Questions & Answers

why need to mirror disk if we had backups ?

hi.. newbie here, just wonder why there is a need for mirroring in some servers whereby we already had backups by cron jobs ? (4 Replies)
Discussion started by: Exposure
4 Replies

8. UNIX for Dummies Questions & Answers

disk suite to mirror both d0 and d2

I have 2 drives on a sun solaris 8 server that is a live server. I am putting in an additional 2 drives and want to mirror the the first 2. I was thinking of using disksuite but one drive is the root drive with 1 maybe 2 free paritions. The other is only one partition (36G). I was wondering... (2 Replies)
Discussion started by: csgonan
2 Replies

9. HP-UX

HP UX Disk Mirror

Being somewhat extremely new to Unix, I have just had a system crash One of my Volume Groups has crashed However, this Volume Group is actually mirrored How do I switch to use the mirrored copy? Any assistance greatly appreciated Thanks (1 Reply)
Discussion started by: cobdeng
1 Replies
Login or Register to Ask a Question