Bypass stale PE ?


Login to Reply

Thread Tools Search this Thread
# 8  
Old 06-10-2014
From what I see you are in mirror using 2 controllers : 0/10/0... and 1/10/0...
If you look, all your LV are like :
   Current LE                  256
   Allocated PE                512

PE is twice the value of LE ... except the one giving you trouble... only Im a bit stressed now at work, will try to finish rapidly and if no one else had helped you, join back from my laptop at home...

All the best
# 9  
Old 06-10-2014
Ah, yes, there are three disks in use on each controller. Whoever initially set this up wasn't thinking and didn't keep the mirrors on distinct controllers since some volumes have data on both sides but the mirror on the other. For instance:
 # lvdisplay -v /dev/vg00/lvol5
--- Logical volumes ---
LV Name                     /dev/vg00/lvol5
VG Name                     /dev/vg00
LV Permission               read/write
LV Status                   available/stale
Mirror copies               1
Consistency Recovery        MWC
Schedule                    parallel
LV Size (Mbytes)            3584
Current LE                  896
Allocated PE                1792
Stripes                     0
Stripe Size (Kbytes)        0
Bad block                   on
Allocation                  strict
IO Timeout (Seconds)        default

   --- Distribution of logical volume ---
   PV Name            LE on PV  PE on PV
   /dev/dsk/c5t5d0    583       583
   /dev/dsk/c9t3d0    313       313
   /dev/dsk/c9t5d0    896       896

   --- Logical extents ---
   LE    PV1                PE1   Status 1 PV2                PE2   Status 2
   00000 /dev/dsk/c5t5d0    00818 current  /dev/dsk/c9t5d0    00818 current
   00001 /dev/dsk/c5t5d0    00819 current  /dev/dsk/c9t5d0    00819 current
   00002 /dev/dsk/c5t5d0    00820 current  /dev/dsk/c9t5d0    00820 current
   00003 /dev/dsk/c5t5d0    00821 current  /dev/dsk/c9t5d0    00821 current
   ... (more of the same until)
   00579 /dev/dsk/c5t5d0    02165 current  /dev/dsk/c9t5d0    01397 current
   00580 /dev/dsk/c5t5d0    02166 current  /dev/dsk/c9t5d0    01398 current
   00581 /dev/dsk/c5t5d0    02167 current  /dev/dsk/c9t5d0    01399 current
   00582 /dev/dsk/c5t5d0    02168 current  /dev/dsk/c9t5d0    01400 current
   00583 /dev/dsk/c9t3d0    00000 current  /dev/dsk/c9t5d0    01401 current
   00584 /dev/dsk/c9t3d0    00001 current  /dev/dsk/c9t5d0    01402 current
   00585 /dev/dsk/c9t3d0    00002 current  /dev/dsk/c9t5d0    01403 current
   00586 /dev/dsk/c9t3d0    00003 current  /dev/dsk/c9t5d0    01404 current
   ... (and still more up to the stale PE)
   00650 /dev/dsk/c9t3d0    00067 current  /dev/dsk/c9t5d0    01468 current
   00651 /dev/dsk/c9t3d0    00068 current  /dev/dsk/c9t5d0    01469 current
   00652 /dev/dsk/c9t3d0    00069 current  /dev/dsk/c9t5d0    01470 stale
   00653 /dev/dsk/c9t3d0    00070 current  /dev/dsk/c9t5d0    01471 current
   00654 /dev/dsk/c9t3d0    00071 current  /dev/dsk/c9t5d0    01472 current
   ... (and on until the bottom)
   00893 /dev/dsk/c9t3d0    00710 current  /dev/dsk/c9t5d0    01711 current
   00894 /dev/dsk/c9t3d0    00711 current  /dev/dsk/c9t5d0    01712 current
   00895 /dev/dsk/c9t3d0    00712 current  /dev/dsk/c9t5d0    01713 current

So if I lose controller 1/10/0 I lose lvol5. But that's a whole other issue.
# 10  
Old 06-10-2014
I wonder if its not because the strict allocation, that is not truly suitable when using 3 disks… Doesn't pvdisplay show anything?
# 11  
Old 06-11-2014
The pvdisplay is on the first page of this thread and looks fine to me, except for the one stale part.

I looked into the fact that it has a "strict" allocation policy and from what I glean from the lvchange command documentation, that just means that the mirror copies of extents cannot share the same physical volume, which makes sense because you wouldn't want your data mirrored on the same disk because if it failed ...

         -s strict                Set the strict allocation policy.
                                    Mirror copies of a logical extent can be
                                    allocated to share or not share the same
                                    physical volume or physical volume
                                    group.  This option only makes sense
                                    when the physical volumes of the volume
                                    group that owns the specified logical
                                    volume reside on different physical
                                    disks.  strict can have one of the
                                    following values:

                                    y    Set a strict allocation policy.
                                         Mirrors of a logical extent cannot
                                         share the same physical volume.

                                    g    Set a PVG-strict allocation policy.
                                         Mirrors of a logical extent cannot
                                         share the same physical volume

                                    n    Do not set a strict or a PVG-strict
                                         allocation policy.  Mirrors of a
                                         logical extent can share the same
                                         physical volume.

                                    When a logical volume is mirrored, the
                                    following changes are not allowed:

                                    +    From nonstrict to strict
                                    +    From nonstrict to PVG-strict
                                    +    From strict to PVG-strict

I thought I was onto something when I saw the -C contiguous option so I could skip the bad extent but that's not available for the root volume group.
# 12  
Old 06-11-2014
I never had stale on HP-UX... (cant say that of the aix's I was in charge...) So I am trying to interpolate from my bad AIX experience... About Contiguous - You do have some... HP-UX11.11 have in vg00 3 Lvols that use contiguous: the swap, root and stand, but its not the case here, how did you change disk? (what commands were passed...) because I think I did have something of the sort with a D class when I forgot to do a ??? forgot.. trying hard to remember you can help since I have no more documentation, you should do a ioscan ( full in doubt, not funC...) to update devs but there is something else I wonder if its not insf -e can you check what that does? because my idea would be to remove the disk if you are sure it is good with no bad blocks etc.. the rm all associated files /dev/rdsk/c.... then add the disk do an insf if its the right command and see if that changes after mirroring again
# 13  
Old 06-11-2014
I always use the HP doc ""When Good Disks Go Bad"
and my steps boil down to:
  1. lvreduce
  2. vgreduce
  3. mv /etc/lvmtab
  4. pull disk
  5. rmsf -H 1/10/0/0.5.0
  6. put in new disk
  7. ioscan to verify disk is there
  8. insf
  9. vgscan
  10. pvcreate
  11. vgextend
  12. lvextend

I'm going to call HP and see if I can't beg my way to some help.
# 14  
Old 06-11-2014
You do have a disk that is not like the others: c5t5d0 which has 2169 instead of 2170 so there is a bad block there and I wonder if that is not what is giving trouble
Login to Reply

Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Bypass crontab?? MuntyScrunt UNIX for Beginners Questions & Answers 6 09-17-2018 01:33 PM
Stale PPs in AIX, failed disks.. how to replace? c3rb3rus AIX 11 11-21-2014 03:27 AM
Hd6 is in stale condition Mohamed Thamim AIX 1 08-11-2014 05:58 AM
awk Division By Zero Bypass jacobs.smith Shell Programming and Scripting 6 08-08-2013 05:53 PM
What is a file handle? for NFS troubleshooting stale issue. rveri UNIX for Advanced & Expert Users 3 05-24-2013 12:02 AM
Stale lock installed for pkgadd poyato Solaris 2 04-05-2012 08:57 AM
Stale users and no process LisaS HP-UX 8 10-06-2010 02:29 PM
can't bypass password authentication vijill Solaris 3 07-10-2010 06:50 AM
How can I bypass the Prompt in SFTP pierluigi22 Shell Programming and Scripting 2 04-21-2009 03:05 PM
how to remove the stale entry without a reboot?? navadeep AIX 6 03-26-2009 11:53 PM
Stale NFS file handle alphasahoo UNIX and Linux Applications 3 05-12-2008 01:31 PM
lov4 stale found in lvdisplay rajeshtt32 HP-UX 1 01-10-2008 05:49 PM
removing stale partitions karthikosu UNIX for Dummies Questions & Answers 2 11-21-2006 03:54 AM
Unix Stale Mounts derf912 UNIX for Dummies Questions & Answers 2 08-01-2006 03:15 PM
Stale NFS file handle rein UNIX for Advanced & Expert Users 5 01-30-2005 01:30 PM
All times are GMT -4. The time now is 04:31 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
Show Password

Not a Forum Member?
Forgot Password?