How to manually -re-attach AIX lv's to a mirror?


 
Thread Tools Search this Thread
Operating Systems AIX How to manually -re-attach AIX lv's to a mirror?
# 8  
Old 01-16-2019
Quote:
Originally Posted by mrmurdock
so migratepv -l hd2 hdisk1 hdisk6 (yes I found a spare unused disk allocated, but I can delete the lv and vg on it. Smilie).
Yes, either that or migratelp or - as i said before - simply remove the LVs copy to empty the disk, then remove the disk, add a new disk to the VG and then remirror.

Quote:
Originally Posted by mrmurdock
My only concern would be since it cannot read the bad block to finish the mirror, is migratepv smart enough to move the stuck lv?
Actually the migratelp process can read the LP in question - just not its bad copy. And again, you do not need to have this copy at all! Just remove it, then recreate it again on the new disk.

Furthermore, lspv does not show the "online" disks, it just shows the relation of disks and VGs. Do a lsdev -Cc disk to see all disk devices and their status. "Available" is good, "Defined" means missing. It means the system has some device definition that once described an existing device, but this device is not there at the moment. If this does not reveal anything do a rmdev on all hdisk devices, then run cfgmgr to re-add the disk devices again. This is, as bad as it may sound, actually non-disruptive.

I think that, as the disk is alread in the status "missing" in the VGs display, you may have to rely on the procedure to get a missing disk out of the system. Again, this involves some odmget and odmdelete gymnastics which are non-trivial and possibly disruptive too. Do that only when the system is down AND after having made absolutely sure you have a working backup!

I hope this helps.

bakunin

/PS: you may also want to read this old thread for further information

Last edited by bakunin; 01-16-2019 at 03:46 AM..
# 9  
Old 01-22-2019
Well, thankfully the system came up, after a remote admin rebooted the box (yes I admit it was my fault for not informing the IT group). IBM support is looking to make sure the hd2 is truly mirrored.
the LVM has somehow corrected itself, or finally bypassed the bad spot for the hd2 now shows sync'd. Thank you so much for your timely help and responses on this. If no one else ever appreciates your help, you have one person who does.Smilie

Code:
 rootvg:
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
hd5                 boot       1       1       1    closed/syncd  N/A
hd6                 paging     4       4       1    open/syncd    N/A
hd8                 jfs2log    1       1       1    open/syncd    N/A
hd4                 jfs2       60      60      1    open/syncd    /
0516-1147 : Warning - logical volume hd2 may be partially mirrored.
hd2                 jfs2       40      40      2    open/syncd    /usr
hd9var              jfs2       16      16      1    open/syncd    /var
hd3                 jfs2       20      20      1    open/syncd    /tmp
hd1                 jfs2       40      40      1    open/syncd    /home
hd10opt             jfs2       40      40      1    open/syncd    /opt
hd11admin           jfs2       1       1       1    open/syncd    /admin
livedump            jfs2       1       1       1    open/syncd    /var/adm/ras/livedump
lvol1               jfs2       60      60      1    open/syncd    /usr/sys/inst.images

# 10  
Old 01-28-2019
Just for completeness, did you manage to get hd2 properly mirrored? If so, can you post your command for anyone hitting finding this thread with a similar issue.



Thanks, in advance,
Robin
# 11  
Old 01-28-2019
Initially the mirror was successfully initiated and all the other volumes became mirrored and sync'd. it attached hd2 and was in process of syncing then during the sync it hit a bad sector (sector sparing failed on the hard disk) on the original disk. IBM is saying the VGDA is messed up on the original disk for whatever reason. They are rebuilding the hdisk1 vgda and hopefully this will get the hd2 in sync. One thing that surprises me is hd2 is now reporting open/sync whereas before it is was open/stale before IBM is rebuilding the vgda. Can lvm lie to me? IBM did a vgda map of hdisk1 with dd.
# 12  
Old 01-29-2019
Quote:
Originally Posted by mrmurdock
IBM did a vgda map of hdisk1 with dd.
There is a little-known tool called readvgda which does what its name suggests - read the VGDA and print its content out to screen. I use it regularly when working on (to me) unknown systems when i need to find out about the VG type (classic, big or scalable) because otherwise there is no direct way to get that information elsewhere. You can use it for any other purposes too, though. The format is:

Code:
readvgda hdiskN [ | more]

where hdiskN is any hdisk device in the VG. Here is a longer article about it but knowing what to search for you find many others too.

The VGDA is stored in (at least) two different locations of the disk and if one is broken you may still read the other one and use that. You can easily do that with dd so you won't need IBM to do that for you. Of course this is a potentially risky operation so my suggestion is to test it first on a throwaway system/disk to get acquainted.

I hope this helps.

bakunin
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

AIX - mirror a jfs2log

Hi everybody, I have a little problem with my AIX 6.1, PowerHA 6.1 LVM mirroring. I accidentally created logical volume cpsabcd2lv with external jfs2log loglv00 in the same volume group cpsdata2vg. Then I mirrored LV cpsabcd2lv on the second LUN in VG cpsdata2vg. My journal is unmirrored and... (0 Replies)
Discussion started by: Necronomic
0 Replies

2. AIX

AIX hdisk Mirror vs alt_clone

Hello, I have two hdisk in Power7 machine, the rootvg on hdisk0. So to make a disk redundancy should make mirror or alt_clone and what is the different. Appreciate your help Thanks (1 Reply)
Discussion started by: moudmm
1 Replies

3. AIX

AIX break rootvg mirror from system down

Hello, aix 5.2, mirrored rootvg on hdisk0 and hdisk1. hdisk0 is dead. I can boot to cd, into sms, into maintenance mode. I can fsck all the various partitions on hdisk1 (the hd4 hd2 hd3, etc...) all is fine. But without the hdisk0 part of the mirror I cannot get the system to boot. ystem hangs on... (6 Replies)
Discussion started by: sshapiro
6 Replies

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

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

6. AIX

Attach HP EVA to IBM AIX powerpc singlepath

Dear all. We have a very big issue on Attach HP EVA to IBM AIX powerpc singlepath. the configurations on lscfg -vl fcs2 fcs2 U789C.001.DQD8D74-P1-C2-T1 4Gb FC PCI Express Adapter (df1000fe) Part Number.................10N7249 Serial... (3 Replies)
Discussion started by: Juri_al
3 Replies

7. AIX

AIX Rootvg mirror and sysdumplv

Guys, In my AIX 6.1 box the rootvg was on hdisk2, I tried to migrated it to hdisk0 Added hisk0 to rootvg , mirrored rootvg and changed bootlist and and sucessfully rebooted from hdisk0 Now I tried to remove the hdisk2 from rootvg so breaked mirror -bash-3.00# unmirrorvg rootvg hdisk2... (3 Replies)
Discussion started by: kkeng808
3 Replies

8. Solaris

What is mirror and sub mirror in RAID -1 SVM

Hi , I am new to SVM .when i try to learn RAID 1 , first they are creating two RAID 0 strips through metainit d51 1 1 c0t0d0s2 metainit d52 1 1 c1t0d0s2 In the next step metainit d50 -m d51 d50: Mirror is setup next step is metaattach d50 d52 d50 : submirror d52 is... (7 Replies)
Discussion started by: vr_mari
7 Replies

9. Solaris

ZFS Mirror versus Hardware Mirror

I've looked a little but haven't found a solid answer, assuming there is one. What's better, hardware mirroring or ZFS mirroring? Common practice for us was to use the raid controllers on the Sun x86 servers. Now we've been using ZFS mirroring since U6. Any performance difference? Any other... (3 Replies)
Discussion started by: Lespaul20
3 Replies

10. UNIX for Dummies Questions & Answers

Display Mirror State AIX

Hello, how can i see easily the state of a mirrored disk on a AIX 4.3.3. I try followed command: lslv -m >lvname> but for me is not enough information. thanx in advance fenomen (2 Replies)
Discussion started by: fenomen
2 Replies
Login or Register to Ask a Question