AIX - stale partition

Thread Tools Search this Thread
Operating Systems AIX AIX - stale partition
# 1  
Old 08-22-2019
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:           active                   PP SIZE:        1024 megabyte(s)
VG PERMISSION:      read/write               TOTAL PPs:      6142 (6289408 megabytes)
MAX LVs:            256                      FREE PPs:       441 (451584 megabytes)
LVs:                2                        USED PPs:       5701 (5837824 megabytes)
OPEN LVs:           2                        QUORUM:         2 (Enabled)
TOTAL PVs:          2                        VG DESCRIPTORS: 3
STALE PVs:          1                        STALE PPs:      108
ACTIVE PVs:         1                        AUTO ON:        no
Concurrent:         Enhanced-Capable         Auto-Concurrent: Disabled
VG Mode:            Concurrent
Node ID:            1                        Active Nodes:       2 3 4
MAX PPs per VG:     32768                    MAX PVs:        1024
LTG size (Dynamic): 256 kilobyte(s)          AUTO SYNC:      no
HOT SPARE:          no                       BB POLICY:      relocatable
PV RESTRICTION:     none                     INFINITE RETRY: no
DISK BLOCK SIZE:    512                      CRITICAL VG:    no

 # lspv
hdisk36         00fb518c4457e71a                    cpsdata2vg      concurrent
hdisk37         00fb518c4457f895                    cpsdata2vg      concurrent

 # lsvg -l cpsdata2vg
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
cpsabcd2lv          jfs2       2850    5700    2    open/stale    /cpsabcd2
loglv00             jfs2log    1       1       1    open/syncd    N/A

 # lsvg -p cpsdata2vg
hdisk36           active            3071        220         00..00..00..00..220
hdisk37           missing           3071        221         00..01..00..00..220

Normally I solve it by command varyonvg for non-concurrent LUNs. I cant find solutions for Enhanced-Capable concurrent LUNs.
I guess that the right way to solve this problem is command varyonvg too. With parameter '-c' for concurrent vary.

Does anyone have experience with this procedure? I cant umount this filesystem right now, so I am curious if I can do this without unavailability or other problem with filesystem.

Thank you.
# 2  
Old 08-22-2019
You have lost access to a disk, hdisk37

How is this provided? If it's a real disk, then it's broken. If it's SAN provided, then something has gone wrong in the provision.

If you can get the disk back online, you might get away with syncvg -l cpsabcd2lv to re-mirror, but you need the hardware (however provided) to be sorted first.

I notice that loglv00 is not mirrored. I would suggest getting that done. If you had lost hdisk36 then would be in real trouble. As it is, LVM is coping.

Kind regards,
This User Gave Thanks to rbatte1 For This Post:
# 3  
Old 08-23-2019
Thank you for advice.

It´s SAN provided. Each disk in mirror is from other DC/path. We lost path to one of the datacenters. It´s already repaired.

I know that

is called by

, which I´m used to use on stale partition. Is there significant difference between using these two commands?

I must definitely resolve loglv00 as soon as possible.
# 4  
Old 09-04-2019
My apologies for being away for a few days. There should be no difference with the process because they will both do the same thing. If the lost LUN is now available and visible to the volume group, then the sync, however it runs will have to read the appropriate physical partitions from the good side and copy them to the stale side if the PP has been updated. It will not copy the data if the PP has not updated, but for a large LV, this process can take some time to complete.

You should be able to monitor it from another session so you get an idea of progress and see the stale PP count reducing.

This User Gave Thanks to rbatte1 For This Post:
# 5  
Old 09-05-2019
I already repaired it. I ran the command
varyonvg -c cpsdata2vg
I saw the
in the processes while repairing.

# lsvg -l cpsdata2vg
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
cpsabcd2lv          jfs2       2850    5700    2    open/syncd    /cpsabcd2
loglv00             jfs2log    1       1       1    open/syncd    N/A

It is OK now.

Thank you very much.
# 6  
Old 09-11-2019
I would suggest mirroring your loglv00 now too.

Kind regards,
These 2 Users Gave Thanks to rbatte1 For This Post:
# 7  
Old 09-13-2019

I already made mirroring for the loglv00.

mklvcopy -e x loglv00 2 hdisk37

The parameter -e was probably a little extra here.

I tested this on test environment, if I dont need mapfile here. It always filled the same (free) PP on opposite disk.

After that I again ran command:

varyonvg -c cpsdata2vg

loglv00 is mirrored now.

# lsvg -l cpsdata2vg
LV NAME             TYPE       LPs     PPs     PVs  LV STATE      MOUNT POINT
cpsabcd2lv          jfs2       2850    5700    2    open/syncd    /cpsabcd2
loglv00             jfs2log    1       2       2    open/syncd    N/A

# lslv -m loglv00
LP    PP1  PV1               PP2  PV2               PP3  PV3
0001  0617 hdisk36           0617 hdisk37

Hope that this will help somebody.

Have a nice day,
This User Gave Thanks to Necronomic For This Post:
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Stale PPs in AIX, failed disks.. how to replace?

I have a AIX 7.1 system that has 3 failed disks, 1 in rootvg and 2 in vg_usr1. Here is the output of lspv. # lspv hdisk0 00044d4dfbb11575 vg_usr1 active hdisk1 0000150179158027 vg_usr1 active hdisk2 ... (11 Replies)
Discussion started by: c3rb3rus
11 Replies

2. Red Hat

Shrink LVM partition & create new Linux Primary partition

Hello All, I have a Red Hat Linux 5.9 Server installed with one hard disk & 2 Partitions created on it as follows, /boot - Linux Partition & another is LVM - One VG & under that 5-6 Logical volumes(var,opt,home etc). Here my requirement is to take out 1GB of space from LVM ( Any logical... (5 Replies)
Discussion started by: gr8_usk
5 Replies

3. AIX

Hd6 is in stale condition

Hi friends, the paging lv hd6 is in stale condition hd6 paging 48 96 2 open/stale N/A And i'am getting the following alerts in the server 333BD283 0811044814 U S LVDD Bad block detected with no relocation al 333BD283 0811041114 U S LVDD ... (1 Reply)
Discussion started by: Mohamed Thamim
1 Replies

4. HP-UX

Bypass stale PE ?

Hello, I have an ancient HP-UX 11.11 system where I have a logical volume marked stale and I can't get it sync'd. I have tried lvsync and lvreduce/lvextend to no avail. It is just one 4Mb PE on the disk that I can't get current. # lvdisplay -v /dev/vg00/lvol5 | grep stale LV Status ... (17 Replies)
Discussion started by: port43
17 Replies

5. AIX

AIX 5.3 using raw partition for Oracle 10g

Hellow friends, We are having AIX 5.3 total memory allotted to /Backup directory is 700GB actual used memory is 250GB ..but when i issue df -gt command to check space it is showing /Backup directory is 70% full to identify root cause.? (1 Reply)
Discussion started by: umashankar1987
1 Replies

6. Solaris

Partition overlaps another partition while creating new parition in solaris

hi all while formatting hard disk i am getting following error. Partition 1 ends at 266338338 It must be between 34 and 143374704. label error: EFI Labels do not support overlapping partitions Partition 8 overlaps partition 1. Warning: error writing EFI. Label failed. I have formatted the... (2 Replies)
Discussion started by: nikhil kasar
2 Replies

7. HP-UX

Stale users and no process

HP-UX B.11.23 U ia64 I've got two users that show in "w" with long idle times but if I search for their processes I find nothing (ps -ef | grep username ) I'm not sure why "w" still sees them and if there is anything (short of a reboot) that I can do to clean them out. Ideas? (8 Replies)
Discussion started by: LisaS
8 Replies

8. UNIX for Dummies Questions & Answers

removing stale partitions

hi, i was trying to mirror root volume group and the command i was using didnt respond for a long time mirrorvg -m rootvg hdisk1 I was checking rootvg and it gives below. how do i fix stale partitions?? it seems to be on hdisk1 LV NAME TYPE LPs PPs PVs LV STATE ... (2 Replies)
Discussion started by: karthikosu
2 Replies

9. UNIX for Dummies Questions & Answers

I've created a partition with GNU Parted, how do I mount the partition?

I've created a partition with GNU Parted, how do I mount the partition? The manual information at is good, but I am sure about how I mount the partition afterwards. Thanks, --Todd (1 Reply)
Discussion started by: jtp51
1 Replies

10. UNIX for Dummies Questions & Answers

Unix Stale Mounts

Is there an easy way to find all stale mounts on a system? (2 Replies)
Discussion started by: derf912
2 Replies
Login or Register to Ask a Question

Featured Tech Videos