Server - 2 disks - How to mirror


 
Thread Tools Search this Thread
Operating Systems Solaris Server - 2 disks - How to mirror
# 8  
Old 05-17-2005
With only two disks, you use disk suite ONLY to mirror them. This will run fine. If one disk fails, mirroring won't work anymore. If you reboot, you are right, disk suite is hosed, but the system is usable anyway. When you replace a disk, you need to rebuild the mirrors.

The only real challenge is arranging to boot automaticly from the secondary submirror if the primary submirror dies. To do that, from the ok prompt, build an alias for your 2nd disk and call it disk2 or something. Then set the boot-device variable to "disk disk2".
# 9  
Old 05-17-2005
If you put three metadbs on both disks, then you can still run if one disk fails - this has worked for over 5 years on servers I admin today. And you are right, the documentation states 3 disks.
Example from Solaris 2.6 server build:
metadb -f -c 3 -a /dev/rdsk/c0t0d0s7 /dev/rdsk/c0t1d0s7
metainit -f d10 1 1 c0t0d0s0
metainit d11 1 1 c0t1d0s0
(You can add other partitions - this is only showing /)
metaroot d1
(if you add other partitions - add them into /etc/vfstab here)
lockfs -fa (then reboot)

After reboot,
metattach d1 d11
# 10  
Old 05-17-2005
And on Perderabo's steps, install a boot block to insure disk2 will boot.
# 11  
Old 05-17-2005
There is no need to install a boot block on the second disk of a mirror (I´m speaking of Solaris 8/9 SPARC)

You must also (on a SPARC System) modify some OBP variables , so the server can boot automatically from the second half of the mirror. You must also specifiy the second half of the mirror as a diag device which means that coredumps are being saved there.

ok setenv boot-device disk disk1

ok setenv diag-device disk disk1

try it with

ok boot disk1
# 12  
Old 05-17-2005
sorry Perderabo, I didn´t noticed that you ´ve already posted the OBP Stuff

networkfreak
# 13  
Old 05-17-2005
Quote:
Originally Posted by networkfre@k
There is no need to install a boot block on the second disk of a mirror (I´m speaking of Solaris 8/9 SPARC)
I'm not sure why you added that Solaris 8/9 qualifier? I'm not really a Sun guy, but my understanding is as follows... The boot block is the first block on the disk. If a partition starts on Cylinder 0, the boot block is in it. If you use that partition for swap or for a filesystem, solaris knows to skip over the boot block. (Not sure about using that partition as a replica data base.) And when you mirror that partition, the boot block will get copied. I believe that this is the case with any version of solaris. I guess you probably would need to install a boot block if you didn't include include cylinder 0 in a partition. (And we have seen stranger setups Smilie )
# 14  
Old 05-18-2005
I had always heard you need to install a boot block -
4.2 installboot
or
4.2.1 installboot (Just search for installboot on the page)
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. 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

2. Solaris

Unable to boot from mirror disk on x86 server configured under VxVM

Hi, Can you help me on booting x86 server configured under VxVM. Server boots fine normally from both the disks but if I try to boot server from mirror disk without starting veritas, then it does not boot. vxplex -g rootdg dis var-02 vxplex -g rootdg dis swapvol-02 vxplex -g rootdg dis... (2 Replies)
Discussion started by: milindphanse604
2 Replies

3. AIX

Safe Number of Disks Assigned to a VIO Server

Is there any sort of best practice as to how many disks should be assigned to a VIO server? I currently have around 190-ish. All of my VIO servers can see those disks. Can anyone tell me how many you have on your VIO servers? (3 Replies)
Discussion started by: kah00na
3 Replies

4. Solaris

Do I need a pool before I can mirror my disks?

Hi! I would also like to know if I need first to create a pool before I can mirror my disks inside that pool. My first disk is c7t0d0s0 and my second disk is c7t2d0s0 as seen in the figure below. I would create a pool named rpool1 for this 2 disks. # zpool create rpool1 c7t0d0p0 c7t2d0p0 ... (18 Replies)
Discussion started by: CarlosP
18 Replies

5. Emergency UNIX and Linux Support

Dedicated Server - Linux Mirror

Hi guys. I am gonna buy a dedicated server and make it a public mirror for some distributions. but how much RAM, Hard Disk, Band Width, ... will suffice? It will be a mirror for CentOS and Ubuntu both. (3 Replies)
Discussion started by: majid.merkava
3 Replies

6. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

7. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

8. Solaris

Some Details from my server like mirror

Hello, I need to get some details from my server like Internal hard disk details for my UNIX (Solaris 9) server like whether OS is mirrored or not, what type of mirror is used. Which hard disk are used for mirror ? Regards (1 Reply)
Discussion started by: adel8483
1 Replies

9. UNIX for Advanced & Expert Users

sync mirror disks

Does anyone know how to force these rogue logical volumes to mirror to there respective disks? DISK:Logical Volumes 03:cw_p05,cw_p01_01,cw_p01_02,lv00 09:cw_p05,cw_p01_01,cw_p01_02 04:cw_p01_phyldbs,cw_p01_03,cw_op01_01,cw_od01 10:cw_p01_phyldbs,cw_p01_03,cw_op01_01 (1 Reply)
Discussion started by: Optimus_P
1 Replies
Login or Register to Ask a Question