Sponsored Content
Full Discussion: replacing mirror disk
Operating Systems AIX replacing mirror disk Post 302556073 by phobus on Friday 16th of September 2011 01:10:24 PM
Old 09-16-2011
I will use rootvg as an example with hdisk0 and hdisk1, where hdisk1 will be the failing one. This manual suppose that failing disk hdisk1 is still available and not in missing state and is hot swap-able and secondary dump device is used on hdisk1.

1. Unmirror rootvg
Quote:
unmirrorvg rootvg hdisk1
2. Check where your primary/secondary sysdump logical volume goes
Quote:
sysdumpdev -l
3. If it goes to lv which is on failing hdisk1 redirect it for time being to /dev/sysdumpnull, see sysdumpdev
Quote:
sysdumpdev -P -s /dev/sysdumpnull
4. Check if you have any logical volumes left on hdisk1
Quote:
lspv -l hdisk1
5. If you have any logical volumes left on failing disk you can move them to hdisk0, if you need to (if you have secondary dump device present you can remove it with rmlv -f secondary_dump_device_lv_name)
Quote:
migratepv hdisk1 hdisk0
6. Reduce hdisk1 from rootvg
Quote:
reducevg rootvg hdisk1
7. Take location code of failing hdisk1
Quote:
lscfg -vl hdisk1
8. Set hdisk1 in to define state
Quote:
rmdev -l hdisk1
9. Use diag to replace and identify failing hdisk1
Quote:
diag
10. Once done add new replaced hdisk1 to rootvg
Quote:
extendvg rootvg hdisk1
11. Create secondary dump device on hdisk1 if needed and point second dump device to it (xx represent the size which should be and it can be calculated with command sysdumpdev -e (in bytes))
Quote:
mklv -y your_second_dump_lv_name -t sysdump rootvg xx hdisk1
Quote:
sysdumpdev -P -s /dev/your_second_dump_lv_name
12. Mirror rootvg
Quote:
nohup mirrorvg '-S' rootvg hdisk1 &
13. Create boot image on hdisk1
Quote:
bosboot -ad /dev/hdisk1
14. Add hdisk1 to bootlist
Quote:
bootlist -m normal hdisk0 hdisk1
15. Check bootlist
Quote:
bootlist -m normal -o
That should be all. If I forgot something please advice me.

Thank you.

Last edited by phobus; 09-16-2011 at 02:23 PM..
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

10. Solaris

Replacing a Disk in a ODS/SVM Mirror

Hi All BAsed on the below I would like to verifu two things (1) The udnerlying mirroris for '/mnt' na dit onlcy contaisne 1 sub-mirror, with one sliceon is one disk and hence, data loss on the mount point (the mount point, '/mnt' is backed up) (2) the Procedure for renewal # df -kh /mnt... (2 Replies)
Discussion started by: stevie_velvet
2 Replies
All times are GMT -4. The time now is 08:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy