Sponsored Content
Operating Systems AIX How to manually -re-attach AIX lv's to a mirror? Post 303028839 by bakunin on Wednesday 16th of January 2019 01:58:13 AM
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..
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
All times are GMT -4. The time now is 05:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy