Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacing a bad hdisk in mirrored rootvg 3

Status
Not open for further replies.

adr1168

Technical User
Oct 13, 2005
4
HK
I need to replace a hdisk in rootvg. I need the detailed steps that would be involved. I am sceptic about the dump device. I have a dump device on hdisk0 and secondary dump on hdisk1, I need to replace hdisk1 which is currently working though but had errors.

I hve pasted a truncated output for ur ref.

rootvg:
LV NAME TYPE LPs PPs PVs LV STATE MOUNT POINT
hd6 paging 128 256 2 open/syncd N/A
hd5 boot 1 2 2 closed/syncd N/A
hd8 jfslog 1 2 2 open/syncd N/A
hd4 jfs 3 6 2 open/syncd /
hd2 jfs 65 130 2 open/syncd /usr
hd9var jfs 16 32 2 open/syncd /var
hd3 jfs 10 20 2 open/syncd /tmp
hd1 jfs 2 4 2 open/syncd /home
hd7x sysdump 6 6 1 open/syncd N/A
hd7 sysdump 6 6 1 open/syncd N/A

TIA for your valuable time.

adr1168
 
first of all create an mksysb


then
- unmirror rootvg: unmirrorvg rootvg hdiskXX

- remove the failling hdisk from rootvg: reducevg rootvg hdiskXX

- remove your disk from odm: rmdev -dl hdiskXX

- change the disk

- stop the system and replace with the new disk

- restart the system

- try lspv to get the new hdisk number

- add the new disk to rootvg: extendvg rootvg hdiskXX

- remiror rootvg: mirrorvg rootvg

- recreate the bootlist: bootlist -m normal hdiskX hdiskY cd0 ...




 
Wouldn't you stop the system before you change the disk?
 
It depends on the type of disks. If it's not hotswapable disk the you have to stop the system
 
There should be a scsi hot plug manager in diag under the task selection grouping. That is what you can use to replace the disk while the system is running if it is hot swappable. Also, you will need to either move that dump device to the good disk and then back after you replace the failing disk or just delete it and recreate it. If you want details for this method it would go something like this....

- move or remove dump device from failing disk
- unmirror rootvg from failing disk
- use scsi hot plug mgr to remove and replace disk (takes care of rmdev, cfgmgr, and mkdev for you)
- add new disk into rootvg and mirror
- move back or add that dump device

Again, this assumes you have hotplug disks that are accessable while the system is running and that you are using any of the supported versions of AIX. If not follow the steps listed by Gloups above.


Jim Hirschauer
 
You also need to run

bosboot -a -d /dev/hdiskX -l /dev/hd5

as a last step, after bootlist has been changed.


HTH,

p5wizard
 
Thank u guys and jim and gloups for ur time. One of my main concern was I have primary dump device hd7 on disk0 and secondary dump device hd7x on hdisk1. will system allow me to remove secondary dump device?

the steps that could be gathered from ur replies :
1. unmirorvg rootvg
2. remove the secondary dump dev /hd7x ? rmlv hd7x
3. reducevg rootvg hdisk1
4. rmdev -l hdisk1 -d
5. replace the disk (this is a hot sawp disk)
6. cfgmgr
7. lspv
8. extendvg rootvg hdiskN
9. create secondary dump dev ? on hdiskN
10. mirrorvg rootvg
11. bosboot

please can u guys confirm on this.

TIA
 
dont forget to recheck your bootllist after bosboot
 
sysdumpdev -s /dev/sysdumpnull

to close hd7x, then you can remove hd7x

Afterwards when you've created a new hd7x on the replaced disk (note LV type must be sysdump, size identical to hd7)

sysdumpdev -s /dev/hd7x

The dump device MAY NOT be mirrored - that's why there's a primary and secondary dump device. All other LVs in rootvg can be mirrored.


HTH,

p5wizard
 
Also, use the diag task "host swap" don't just pull the disk out without letting the system know you're doing that.


HTH,

p5wizard
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top