Disk Mirror Question


 
Thread Tools Search this Thread
Operating Systems Solaris Disk Mirror Question
# 1  
Old 04-12-2011
Disk Mirror Question

Long time Linux, relatively new to Solaris.

Currently I have a Solaris 9 machine which has a mirrored root disk. We will be running some tests on this machine, and when those tests are done we want to restore it to "pre-test" status.

What I would like to do is break the mirror, pull the first drive, boot to second drive and do the testing. Then when it is over, put the first drive back in and rebuild mirror to second disk.

Thus, I am looking at using metadetach to break each mirror, and then shutting down the box, and removing the first disk, and then booting the machine up to do testing, then I intend on shutting it back down, putting first drive in, and booting then doing a metattach to rebuild mirror.

Essentially, my question is this: is this the "best" way to go about it? Is this even going to work as I intend?

I don't have a way to test this beforehand, so I was hoping to get some words of wisdom from some folks with more experience.
# 2  
Old 04-15-2011
mirror

detach the medb and try to boot with that mirrored volume
# 3  
Old 05-12-2011
try running command below

confirm primary & secondary
# metastat -p

detach mirror
# metadetach d## d##

confirm detachment ( u will se concat/stripe)
# metastat

change vfstab and system file in mirror disk
# mount /dev/dsk/c#t#d#s0 /mnt
# vi /mnt/etc/vfstab
# vi /mnt/etc/system

# umount /mnt

confirm boot paths in case, u don't have in eeprom

# prtconf -vp | grep -i bootpaths
# /etc/vx/bin/vxeeprom devalias
# cd /dev/rdsk/
# ls -l | grep c#t#d#s0
# ls -l | grep c#t#d#s0

# sync;sync
# halt

Verify both disks are bootable.

ok> boot primary-disk
ok> boot secon-disk
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Mirror disk problem

Hello all, i have the mirror disk problem with SunOS 5.10. here's the message: # metastat d15 d15: Mirror Submirror 0: d16 State: Needs maintenance Submirror 1: d17 State: Okay Pass: 1 Read option: roundrobin (default) Write option: parallel... (4 Replies)
Discussion started by: rwprabowo
4 Replies

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

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

4. Solaris

Mirror the root disk

Hi all I wish to mirror for the root disk, but last time i do, make the server cannot boot up. :p So this time, hope you guys can assist me on it. =) At the last code, is the step i wish to do. Please help to check and correct me if got any wrong. root@leo # format </dev/null Searching for... (17 Replies)
Discussion started by: SmartAntz
17 Replies

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

6. Filesystems, Disks and Memory

Mirror system disk

I have a SUN 440 running Solaris 8 that is generating funny errors on /dev/dsk/c1t0d0 and I would like to dupe the drive(the non offending drives are removed for this process), swap it with the dupe and reboot. From what I have read, the process seems simple: dd if=/dev/dsk/c1t0d0... (1 Reply)
Discussion started by: hardyj
1 Replies

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

8. Solaris

zfs mirror disk

Is it possible to create a Mirror with zfs ?? I'm experimented user with Solstice Disk suite. Or Sun Volume manager or veritas volume manager. But, i would like switch from Disksuite to Zfs. All my mirrored disks. (1 Reply)
Discussion started by: simquest
1 Replies

9. Solaris

Mirror data disk????

Hi, need some help. I’m new to solaris and trying to find out how to mirror a data disk (not the root disk). In AIX it is easy but with solaris 5.8 I don’t find my way even with the SUN docs (disk/suide is installed). What is behind is I want to migrate a disk from 1 storage system to... (7 Replies)
Discussion started by: ccTester
7 Replies

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