Sponsored Content
Operating Systems AIX Stale PPs in AIX, failed disks.. how to replace? Post 302922994 by bakunin on Wednesday 29th of October 2014 04:04:27 PM
Old 10-29-2014
Quote:
Originally Posted by c3rb3rus
I am following your 2nd suggestion as this machine is going to be out its door in about 2 months (its over 5+ years old) and is a DR/testing box so not a production machine, less critical. My goal now is to keep it going for the next 2 months.
OK, point taken.


Quote:
Originally Posted by c3rb3rus
I changed the policy to minimum, and tried to run reorgvg...
You may have read over it: i suggested to completely unmirror all the LVs (in the VG) first. From your lslv output i can see that at least "lv_usr1" is still mirrored - and most probably some mirror copies of certain LPs are already gone with the missing disks. I suppose the other LVs in the volume are mirrored too and their mirroring status is uncertain in the same way. Furthermore it makes no sense to reorganize a mirrored volume instead of unmirroring it, reorganize it and at last remirror it again. It simply doubles the work and limits the reorganization options.

Quote:
Originally Posted by c3rb3rus
Sounds like one of the pvs (hard drives) could be having an issue that is currently assigned to the vg?
No, not necessarily. A possible reason is that some PPs with mirror copies are not where the system expects them to be because the disks which used to provide these PPs are gone. Finally: you replaced two missing disks by one new one and most probably you lost raw diskspace. the VG was filled to capacity at the start and if you further reduced the available raw space you cannot mirror all the LVs any more.

Therefore:

- unmirror the VG completely. If you worry about possible data loss take a backup before but unmirror anyway. Do exhaustive fscks before to make sure the FSes are OK. (You will need downtimes for the fsck because the FSes must be unmounted.)

- After this is finished take stock of: how much raw space do you have and how much is used. If the space in your VG is already 50% or more used a complete mirror is not possible and you will have to select certain FSes/LVs which will get mirrors and others which don't. One way to circumvent this is to reduce the size of LVs/FSes to get usage below 50% again. Maybe some filesystems could do with a little less space?

If so, here is how to it: this command will reduce a FS "/some/where" and its underlying LV by 1GB. Notice that you can only assign whole PPs to a LV, therefore shrinking/expanding only takes place in steps of the PP size.

Code:
chfs -a "size=-1G" /some/where

- now do a reorgvg.

- set up mirrors again using the "mirrorvg" command. Notice that you might need to move a few LVs a second time because you have an odd number of PVs and mirrors are created on different disks (see your lslv output). You do this with the "migratepv" command, with which you can move around one or all the PPs of a LV to certain positions on certain PVs.

It might take considerably less time to get a second replacement disk and make the number of available PVs even again.

I hope this helps.

bakunin
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Disks on AIX

Hello I've been working on AIX 5.3 ML3 on IBM pSeries520. That server has 6 HDD drives in 3 volume groups (1+mirror in each group). I must check which phisical disk is which disk in the system. For ex. I want to know that disk in 4th slot in the machine is marked as hdisk5 on AIX. Does anybody... (2 Replies)
Discussion started by: piooooter
2 Replies

2. AIX

Replace a Failed Root Disk in AIX

My root disk is failed and how to replace the root disk in AIX. Can u give a detailed explanation in step wise. Pls give the answer taking different scenarios. Regards Praveen (1 Reply)
Discussion started by: chinnu_mulakala
1 Replies

3. AIX

system disks on aix 5.3

hello i'm running on P570 box aix 5.3 8 cpus 24G ram there are 1850 users loged in to this box the problem is that the two sysytem disks busy all the time hdisk0 100% busy hdisk1 100% busy some one have an idea what writing to this disks? thanks ariec (9 Replies)
Discussion started by: ariec
9 Replies

4. AIX

Configurin EMC SAN disks on AIX

This may sound like an absolute rookie question, and it is. I have been working on Migrating our HP and Solaris servers to the new EMC SAN and know the routines backwards. Now we've suddenly got a new IBM server and I don't even know how to check if it is connected to the switch. Can someone... (1 Reply)
Discussion started by: ronellevan
1 Replies

5. AIX

Configuring new disks on AIX cluster

We run two p5 nodes running AIX 5L in a cluster mode (HACMP), both the nodes share external disk arrays. Only the primary node can access the shared disks at a given point of time. We are in the process of adding two new disks to the disk arrays so as to make them available to the existing... (3 Replies)
Discussion started by: dnicky
3 Replies

6. Solaris

Command to find the failed disks in SVM and VxVM

How to find & replace bad disks in solaris & VXVM?plz explain step by step? (2 Replies)
Discussion started by: xtreams
2 Replies

7. AIX

Issue with increasing size of SAN disks on AIX

HI, I have had an issue last night while trying to extend a filesystsem . chvg -g <vg> command cameback with an error 0516-1790 chvg: Failed bootinfo -s hdisk9. Ensure the physical volume is available and try again. 0516-732 chvg: Unable to change volume group u01vg. the VG has 1... (1 Reply)
Discussion started by: xmen01
1 Replies

8. AIX

How to reclaim hard disks and IP's in AIX?

Hello I recently received a request to reclaim hard disks and IP addresses within an AIX system(s). THe file systems are no longer in use and the client has indicated that it is OK to remove them and reclaim the disks and release the IP's. Now, since the file systems belong to a Volume group I... (8 Replies)
Discussion started by: Joseph Sabo
8 Replies

9. AIX

AIX - stale partition

Hi everybody, I have a little problem with my AIX 6.1, PowerHA 6.1 LVM mirror. After problem with SAN pathing of our one Datacenter, I have LV at stale state. # lsvg cpsdata2vg VOLUME GROUP: cpsdata2vg VG IDENTIFIER: 00fb518c00004c0000000169445f4c2c VG STATE: ... (6 Replies)
Discussion started by: Necronomic
6 Replies

10. UNIX for Beginners Questions & Answers

DISKs are gone after shutting down and replace an FC card

Hi there, I had issue with one of MY FC cards on T4-2 servers so system team replace it and start the machine but when launch FORMAT command so I don't see my shared disks coming from storage controller. i have checked at the Fabric switch so WWN numbers are visible and zones are ok and after... (1 Reply)
Discussion started by: janakors
1 Replies
All times are GMT -4. The time now is 05:06 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy