replacing mirror disk


 
Thread Tools Search this Thread
Operating Systems AIX replacing mirror disk
# 1  
Old 09-15-2011
replacing mirror disk

Hi Admins,

I am new into aix.I was surfing aix pages and reading how to replace failed mirror disks.I read in one of the posts that we have to reboot the server to replace the disk. actually i was a HPUX admin and many times replaced root mirror disk online.Ofcourse it was hot swappable.

Now i have not checkd my aix disks are hot swappable or not.and OS version is 5.3. Need i reboot server to replace disk in aix 5.3.. please explain in detail.


Regards
newaix
# 2  
Old 09-16-2011
As far as I am concerned the simple answer is no you do not have to reboot! First you unmirror rootvg; then withdraw the offending disk with reducevg; delete the disk the rmdev; if the disk is hot swap then withdraw the disk and replace it, however if the disk is not hot swap the system will need to be shutdown and the disk replaced. Once the system is restarted add the new disk to rootvg with the extendvg command and remirror to the new drive. Once this is complete do not forget to set the bosboot and bootlist.

That is that!
# 3  
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..
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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