Visit Our UNIX and Linux User Community


root disk mirroring in solaris volume manager for solaris 10


 
Thread Tools Search this Thread
Operating Systems Solaris root disk mirroring in solaris volume manager for solaris 10
# 1  
Old 09-16-2011
root disk mirroring in solaris volume manager for solaris 10

Need a procedure document to do "root disk mirroring in solaris volume manager for solaris 10". I hope some one will help me asap. I need to do it production environment.

Let me know if you need any deatils on this.

Thanks,
Rama
# 2  
Old 09-16-2011
Hi,

Hope this helps you.

Root Mirroring

Root disk - c1t8d0
Mirror disk - c0t8d0

Transfer the partition table
prtvtoc /dev/rdsk/c1t8d0s2 | fmthard -s - /dev/rdsk/c0t8d0s2

We don’t need to run newfs on the partitions as syncing will automatically take care of this later

Creation of meta databases
metadb -c2 -a -f /dev/dsk/c1t8d0s7 /dev/dsk/c0t8d0s7
Since its the initial creation of the metadbs, we need to force it with -f, -a adds the metadbs , and -c tells it how many to create

Initialising the meta devices
metainit -f d10 1 1 c1t8d0s0
metainit d20 1 1 c0t8d0s0
metainit -f d11 1 1 c1t8d0s1
metainit d21 1 1 c0t8d0s1
metainit -f d13 1 1 c1t8d0s3
metainit d23 1 1 c0t8d0s3
metainit -f d15 1 1 c1t8d0s5
metainit d25 1 1 c0t8d0s5

When we work on mounted file systems then we need to use -f option, above root disk is mounted and mirror is notWe are creating a one way concatenation of our actual slices and forming the needed sub mirrors

Creating the mirrors
metainit -f d0 -m d10
metainit d1 -m d11
metainit d3 -m d13
metainit d5 -m d15

Here the mirroring is initialised, -m says build a mirror as in column 1 with sub mirror as in column 3But this mirror is not active till now

Activating the mirror - this will change the system and vfstab file
cp /etc/vfstab /etc/vfstab.premirr
cp /etc/system /etc/system.premirr
metaroot d0

The vfstab and system files will be updated automatically for using metadevices as root disk

Modify the vfstab for other metadevice entries
We need to manually modify the entries for other metadevices to be used

Modify the system file

echo "set md:mirrored_root_flag=1" >> /etc/system

The above entry is added to system file to boot the system in case of root disk failureWhen the root disk will fail, then the meta dbs on that disk will also become unavailable, in that case Solaris will boot since the aboveentry in system file makes it to ignore the quota on metadbs [ atleast 50 % of the copies ]

Modify the OBP boot device to boot with the mirror
Add the correct physical paths for root and mirror disk to boot successfully

Install the boot block on the mirror disk
cd /usr/platform/`uname -i`/lib/fs/ufsinstallboot bootblk /dev/rdsk/c0t8d0s0

Reboot the system

Attaching the mirror disk sub mirrors
metattach d0 d20
metattach d1 d21
metattach d3 d23
metattach d5 d25

Regards,
Vishal

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Solaris

Root disk mirroring in Solaris 10

I would like to perform root disk mirroring task. Can someone please help me out on this. Thanks !! Regards, Rama (2 Replies)
Discussion started by: ramagore85
2 Replies

2. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% /... (4 Replies)
Discussion started by: fretagi
4 Replies

3. Solaris

Convert from raw disk to solaris volume manager disk

I have a solaris 10 system configured using NetApp as its storage, and the file systems are already configured as you can see from the example below: root@moneta # df -h Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 9.8G 513M 9.3G 6% / ... (0 Replies)
Discussion started by: fretagi
0 Replies

4. Solaris

Disk Mirroring on solaris 5.8

Hi Friends, I am having Sun Solaris 5.8 OS installed having 2 different size hard disk, sizes are c0t0d0s0(160 GB) and c0t2d0s0 (40GB). I have installed Sun Solaris 5.8 OS in c0t0d0s0 (160GB) harddisk. I have configured all the parameters required for disk mirroring. But when executing... (4 Replies)
Discussion started by: Vijayakumarpc
4 Replies

5. Solaris

Solaris 10 Disk Mirroring

Has anyone managed to set up disk mirroring in Solaris 10 yet? If so can you point me in the direction of some useful documentation please. Cheers (25 Replies)
Discussion started by: korfnz
25 Replies

6. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

7. Solaris

Disk Mirror in Solaris 9 via Solaris Volume Manager

Hello, I am trying to do mirror in solaris 9. I have total 0-7 disks 4 5 6 7 0 1 2 3 Drive 0 and Drive 4 = Boot Drives Need to Mirror following drives. Drive 1 and Drive 5 = Need to mirror Drive 1 was mounted on: /prod1, /prod2, /prod3, /prod4, /prod5. Then i... (3 Replies)
Discussion started by: deal732
3 Replies

8. Solaris

Solaris mirroring / non-root disk

Hi Guys, Need to add 2 disks into a JBOD array (3310). Does anyone see anything wrong with my Procedure / Doco below? 1> Logon to system, check system logs for abnormal entries. 2> Make backups of related system files: A>cp -p /etc/system /etc/system.backup.081505 B>cp -p /etc/vfstab... (3 Replies)
Discussion started by: BG_JrAdmin
3 Replies

Featured Tech Videos