Sponsored Content
Full Discussion: Bypass stale PE ?
Operating Systems HP-UX Bypass stale PE ? Post 302905071 by port43 on Monday 9th of June 2014 12:51:09 PM
Old 06-09-2014
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.

Code:
# lvdisplay -v /dev/vg00/lvol5 | grep stale
LV Status                   available/stale
   00652 /dev/dsk/c9t3d0    00069 current  /dev/dsk/c9t5d0    01470 stale

# vgdisplay -v vg00
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      9
Open LV                     9
Max PV                      16
Cur PV                      6
Act PV                      6
Max PE per PV               2500
VGDA                        12
PE Size (Mbytes)            4
Total PE                    10725
Alloc PE                    10104
Free PE                     621
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

   --- Logical volumes ---
   ...
   LV Name                     /dev/vg00/lvol5
   LV Status                   available/stale
   LV Size (Mbytes)            3584
   Current LE                  896
   Allocated PE                1792
   Used PV                     3
   ...
   --- Physical volumes ---
   ...
   PV Name                     /dev/dsk/c9t5d0
   PV Status                   available
   Total PE                    2170
   Free PE                     56
   Autoswitch                  On

# diskinfo /dev/rdsk/c9t5d0
SCSI describe of /dev/rdsk/c9t5d0:
             vendor: SEAGATE
         product id: ST39175LC
               type: direct access
               size: 8891556 Kbytes
   bytes per sector: 512

I'm wondering if there isn't a way to mark that single PE bad so that LVM won't use it and reassign that LE to another PE since there are more available? I just find it hard to swallow that I have to replace the disk because of a 4Mb sliver.

Thank you for your attention.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Stale NFS file handle

Hi, I get an error saying "Stale NFS file handle" how can I solve this? Is it possible to do this with a umount/ mount command? (5 Replies)
Discussion started by: rein
5 Replies

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

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

4. HP-UX

lov4 stale found in lvdisplay

hi All I have one RP 3410 server with hp-ux 11.23 mirror disk it's lvdislay -v /dev/vg00/lvol4 shows stale in some location Actual is current pls help me to resolve the probem I have check with lvsync command and vgsync but not working re Rajesh (1 Reply)
Discussion started by: rajeshtt32
1 Replies

5. UNIX and Linux Applications

Stale NFS file handle

There are a filesystem /GWD/appbase/projects/GRIDDB Under this filesystem there is a directory called backup. But When I am trying to access the backup directory ,it is showing me the following error: # cd /GWD/appbase/projects/GRIDDB # cd backup -bash: cd: backup: Stale NFS file handle ... (3 Replies)
Discussion started by: alphasahoo
3 Replies

6. AIX

how to remove the stale entry without a reboot??

my AIX server used to have scsi disk hdisk4. Now i removed that disk. But still it is still listed in lspv. So how can i remove the stale entry of it ? (6 Replies)
Discussion started by: navadeep
6 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. Solaris

Stale lock installed for pkgadd

Any package that I try to install, is giving an error of 'lock': # pkgadd -d openssl-1.0.0g-sol10-sparc-local The following packages are available: 1 SMCossl openssl (sparc) 1.0.0g Select package(s) you wish to process (or 'all' to process all packages).... (2 Replies)
Discussion started by: poyato
2 Replies

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

10. 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
LVREDUCE(8)						      System Manager's Manual						       LVREDUCE(8)

NAME
lvreduce - reduce the size of a logical volume SYNOPSIS
lvreduce [-A|--autobackup y|n] [-d|--debug] [-f|--force] [-h|-?|--help] {-l|--extents [-]LogicalExtentsNumber[%{VG|LV|FREE}] | -L|--size [-]LogicalVolumeSize[kKmMgGtT]} [-t|--test] [-v|--verbose] LogicalVolume[Path] DESCRIPTION
lvreduce allows you to reduce the size of a logical volume. Be careful when reducing a logical volume's size, because data in the reduced part is lost!!! You should therefore ensure that any filesystem on the volume is resized before running lvreduce so that the extents that are to be removed are not in use. Shrinking snapshot logical volumes (see lvcreate(8) for information to create snapshots) is supported as well. But to change the number of copies in a mirrored logical volume use lvconvert (8). Sizes will be rounded if necessary - for example, the volume size must be an exact number of extents and the size of a striped segment must be a multiple of the number of stripes. OPTIONS
See lvm for common options. -f, --force Force size reduction without any question. -l, --extents [-]LogicalExtentsNumber[%{VG|LV|FREE}] Reduce or set the logical volume size in units of logical extents. With the - sign the value will be subtracted from the logical volume's actual size and without it the will be taken as an absolute size. The number can also be expressed as a percentage of the total space in the Volume Group with the suffix %VG or relative to the existing size of the Logical Volume with the suffix %LV or as a percentage of the remaining free space in the Volume Group with the suffix %FREE. -L, --size [-]LogicalVolumeSize[kKmMgGtTpPeE] Reduce or set the logical volume size in units of megabyte by default. A size suffix of k for kilobyte, m for megabyte, g for giga- bytes, t for terabytes, p for petabytes or e for exabytes is optional. With the - sign the value will be subtracted from the logi- cal volume's actual size and without it it will be taken as an absolute size. Example "lvreduce -l -3 vg00/lvol1" reduces the size of logical volume lvol1 in volume group vg00 by 3 logical extents. SEE ALSO
lvchange(8), lvconvert(8), lvcreate(8), lvextend(8), lvm(8), lvresize(8), vgreduce(8) Sistina Software UK LVM TOOLS 2.02.44-cvs (02-17-09) LVREDUCE(8)
All times are GMT -4. The time now is 12:50 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy