Operating System - HP-UX
1827336 Members
6022 Online
109963 Solutions
New Discussion

Urgent !!! PV status : unavailable

 
SOLVED
Go to solution
praveen..
Super Advisor

Urgent !!! PV status : unavailable

Hi,
I was installing some patches on 11iv1 system,
then i got this disk space error that i dont have free space in "/stand".

so i tried to extend it.
# swlist | grep -i JFS
B3929CA B.11.11 HP OnLineJFS

# lvextend -L 250 /dev/vg00/lvol1 (it is mounted on /stand)
Warning: rounding up logical volume size to extent boundary at size "256" MB.
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol1" could not be extended.
Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy


then I check vg status of vg00.

#vgdisplay -v /dev/vg00
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 13
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 7890
Free PE 858
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/stale
LV Size (Mbytes) 128
Current LE 8
Allocated PE 16
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 24576
Current LE 1536
Allocated PE 3072
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/stale
LV Size (Mbytes) 256
Current LE 16
Allocated PE 32
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/stale
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/stale
LV Size (Mbytes) 2320
Current LE 145
Allocated PE 290
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/stale
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/stale
LV Size (Mbytes) 3072
Current LE 192
Allocated PE 384
Used PV 2

LV Name /dev/vg00/lvol9
LV Status available/stale
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/oracle
LV Status available/stale
LV Name /dev/vg00/oracle
LV Status available/stale
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/ora
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/laoracle
LV Status available/syncd
LV Size (Mbytes) 8192
Current LE 512
Allocated PE 1024
Used PV 2

LV Name /dev/vg00/home
LV Status available/stale
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 429
Autoswitch On

PV Name /dev/dsk/c3t6d0
PV Status unavailable
Total PE 4374
Free PE 429
Autoswitch On


why it showing PV status unavailable?

please suggest, i need to restart my server, will i get all the partitions up,
this is very critical for me, please try to suggest me?

#bdf | more
Filesystem kbytes used avail %used Mounted on
/dev/vg00/lvol3 262144 223296 38592 85% /
/dev/vg00/lvol1 125808 77640 35584 69% /stand
/dev/vg00/lvol8 3145728 937696 2191736 30% /var
/dev/vg00/lvol9 4194304 145298 3800417 4% /var/adm/crash
/dev/vg00/lvol7 4194304 1459440 2713536 35% /usr
/dev/vg00/lvol6 2359296 66392 2275656 3% /tmp
/dev/vg00/oracle 8388608 6840194 1500714 82% /oracle
/dev/vg00/lvol5 4194304 2024952 2152632 48% /opt
/dev/vg00/home 1048576 493828 520133 49% /home


please suggest

12 REPLIES 12
sysadm_1
Valued Contributor
Solution

Re: Urgent !!! PV status : unavailable

You cannot increase the /stand without reinstalling using ignite backup.Because /stand need contiguous space allocation.

TO do a ignite backup recovery,

1.Check you have ignite ux installed in yuor system.If no,install from aplication cd or download and install latest vwersion of ignite-ux from hp site.

2.make a tape recovery backup using command

make_tape_recovery -A -a /dev/rmt/your-tape-drive -I -x inc_entire=vg00


3.restart your system

4.halt the boot sequence when it display "press any key in 10 seconds to STOP boot process"
search bootable devices (sea command at menu)
find tape and boot from tape

5.when it comes up, you need to select the disk/filesystem option and increase the size (HERE YOU ENTER NEW SIZE YOU WANT)of your /stand filesystem.

6.Start restore.


Robert-Jan Goossens_1
Honored Contributor

Re: Urgent !!! PV status : unavailable

Praveen,

You can not extend /stand online, even if you have OnlineJFS installed.

First check the status of the "failing" disk.

# pvdisplay -v /dev/dsk/c3t6d0

# dd if=/dev/rdsk/c3t6d0 of=/dev/null bs=1024k

second lvreduce vg00/lvol1 back to the original size.

# lvreduce -L 128 /dev/vg00/lvol1

Regards,
Robert-Jan
sysadm_1
Valued Contributor

Re: Urgent !!! PV status : unavailable

inventsekar_1
Respected Contributor

Re: Urgent !!! PV status : unavailable

Praveen,

to know When a Volume Group Will Not Activate, what cause that problem, vgchange:

http://docs.hp.com/en/B2355-90950/ch06s01.html

in this page, find (CNTL F)for "When a Volume Group Will Not Activate"

Be Tomorrow, Today.
praveen..
Super Advisor

Re: Urgent !!! PV status : unavailable

Hi all,
thanks for your suggestions,

now I am clening-up /stand directory sothat i can install the desired patch,

if i reboot the server then what will happen?

will i get all the file systems up? (bcoz i think these are mirrored disks)

I will install the ignite later for reinstalling the OS.

but 1-weeek before, i had extended the "/tmp" partition.

/dev/vg00/lvol6 2359296 66440 2275608 3% /tmp

i was able to extend the /tmp partition.

then why i am not able to extend /stand partition?

inventsekar_1
Respected Contributor

Re: Urgent !!! PV status : unavailable

"Failure possibly caused by contiguous allocation policy.
Failure possibly caused by strict allocation policy"

/stand need contiguous space allocation.
no problem about /tmp.
Be Tomorrow, Today.
praveen..
Super Advisor

Re: Urgent !!! PV status : unavailable

patch installation is asking for reboot the system...

if i reboot the server then what will happen?

will i get all the file systems up?
IT_2007
Honored Contributor

Re: Urgent !!! PV status : unavailable

Praveen,

You may boot with primary disk since alternate disk shows unavailable and may be bad. Once system comesup, make sure that your alternate disk is available, if not, replace it.

Thanks,
Srini
Robert-Jan Goossens_1
Honored Contributor

Re: Urgent !!! PV status : unavailable

Before you reboot, try to "vgsync /dev/vg00".

This will take a while.

Regards,
Robert-Jan

Enzo Genuardi
Advisor

Re: Urgent !!! PV status : unavailable

Hi Praveen,

You are mixing problems!
a)I hope the first problem that you need to face on is the faulty disk. You can confirm that by using the command:
# ioscan -fnCdisk
You may have the disk device /dev/dsk/c3t6d0 referenced has: "NO_HW".
If it says: "CLAIMED" then just do a:
# vgchange -a y vg00
Just to refresh your kernel VG entry.
If not replace or ask your support for replacing the disk!

b)Your second problem is the stand extention. First I'm surprise about your /stand file system! Just do the command:
# cat /etc/mnttab | grep stand
For most installation we can see that /stand is a HFS instead of a VXFS filesystem, due to the boot handler(ISL) like here below!
/dev/vg00/lvol1 /stand hfs defaults 0 0 1154174415
In that condition you could not extend /stand in oder way that Igniting the server and reinstalling it with changes into the space allocation!
If you have an VXFS file system you can reboot in Volume Group maintenance and remove your swap space (in your case /dev/vg00/lvol2) then increase your /stand and recreate your swap space with the good OPTIONS into the that space left!

But if you are not an expert, I will not recommend that solution because you could of course loose your data and time spend is really growing for nothing!

My conclusion is do the disk replacement and do some cleanup in your /stand after that if is still not enough then do a recovery and reinstall your system with bigest /stand.

Cheers.

Adisuria Wangsadinata_1
Honored Contributor

Re: Urgent !!! PV status : unavailable

Hi Praveen,

First, I would like to inform to you that you have a problem for disk /dev/dsk/c3t6d0. Because the status is unavailable.

Can check with the commands below :

# ioscan -nfCdisk
Check whether the particular disk with NO_HW status or not

# diskinfo -v /dev/rdsk/c3t6d0
Check whether the disk still can give you the information

# dd if=/dev/rdsk/c3t6d0 of=/dev/null bs=1024k
Check if the disk gives you the IO errors

Second, you cannot extend the / and /stand on HP-UX since these file systems need a contigous space. Use Ignite/UX features OR re-install the OS to extend the file system. Meanwhile, you can try to housekeeping the /stand first.

So you need to fix the problem on the disk first meanwhile you can try to do a housekeeping on /stand (dont forget to backup first before housekeeping).

Hope this information can help.

Cheers,
AW
now working, next not working ... that's unix
praveen..
Super Advisor

Re: Urgent !!! PV status : unavailable

I have cleaned-up the /stand.

and for PV status uavailable, I have opened a new thread "one disk of vg00 is unavailable.".


Thanks everybody.