1834644 Members
3101 Online
110069 Solutions
New Discussion

OnLine JFS Not Working

 
SOLVED
Go to solution
Lee Abell
Frequent Advisor

OnLine JFS Not Working

I'm trying to extend a lv on and 11.11 box which has OnLine JFS Installed:

B3929CA B.11.11 HP OnLineJFS

I am getting the following error message:
hp72:/cbtprod/aegis # lvextend -l 1100 /dev/vg_db/lv_orabin /dev/dsk/c6t6d0
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg_db/lv_orabin" could not be extended.
Failure possibly caused by strict allocation policy

The disk has plenty of space:
PV Name /dev/dsk/c6t6d0
PV Name /dev/dsk/c7t6d0 Alternate Link
PV Status available
Total PE 8681
Free PE 7431
Autoswitch On

Any thoughts? Thanks!
14 REPLIES 14
Jeff Schussele
Honored Contributor

Re: OnLine JFS Not Working

Hi Paula,

The -l XXXX would be the new *total" logical extents. Same goes for -L XXXX - the new total MB. So if you want to *add* 1100 extents make it
lvextend -l 9781 .......
And if this is mirrored AND you want 1100 for each mirror pair then
lvextend -l 10881 .....

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Geoff Wild
Honored Contributor

Re: OnLine JFS Not Working

Try capital L

lvextend -L 1100 /dev/vg_db/lv_orabin /dev/dsk/c6t6d0

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
A. Clay Stephenson
Acclaimed Contributor

Re: OnLine JFS Not Working

This has nothing to do with OnlineJFS. The problem is that while you have plenty of total free extents available you don't have enough free extents left so that the PE's for mirrors can be allocated on SEPARATE physical disks. The strict allocation policy prevents mirror's of LVOL extents being allocated from the same physical devices so that the failure of any one disk might not clobber the LVOL.

The typical solution is to back up everything and reallocate the LVOL's -- doing the mirrored LVOL's first.
If it ain't broke, I can fix that.
Lee Abell
Frequent Advisor

Re: OnLine JFS Not Working

I would like it to have 1100 extents when I am done - it currently has 800.
Pete Randall
Outstanding Contributor
Solution

Re: OnLine JFS Not Working

Paula,

Most likely this is caused by a "strict allocation policy" as the message states. Take a look at the lvdisplay output with regard to allocation.


Pete

Pete
Jeff Schussele
Honored Contributor

Re: OnLine JFS Not Working

Hi Paula,

It would help if we could see lvdisplay on the LV & vgdisplay -v on the VG.

Thx,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Lee Abell
Frequent Advisor

Re: OnLine JFS Not Working

Clay - I;m confused. The mirror for this logical volume is on c4t6d0 and it has plenty of space too.

PV Name /dev/dsk/c4t6d0
PV Name /dev/dsk/c5t6d0 Alternate Link
PV Status available
Total PE 8681
Free PE 7431
Autoswitch On
Lee Abell
Frequent Advisor

Re: OnLine JFS Not Working

lvdisplay info:

hp72:/cbtprod/aegis # lvdisplay /dev/vg_db/lv_orabin
--- Logical volumes ---
LV Name /dev/vg_db/lv_orabin
VG Name /dev/vg_db
LV Permission read/write
LV Status available/syncd
Mirror copies 1
Consistency Recovery MWC
Schedule parallel
LV Size (Mbytes) 3200
Current LE 800
Allocated PE 1600
Stripes 0
Stripe Size (Kbytes) 0
Bad block on
Allocation strict
IO Timeout (Seconds) default


Vgdisplay info:
hp72:/cbtprod/aegis # vgdisplay /dev/vg_db
--- Volume groups ---
VG Name /dev/vg_db
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 13
Open LV 13
Max PV 16
Cur PV 12
Act PV 12
Max PE per PV 8683
VGDA 24
PE Size (Mbytes) 4
Total PE 104172
Alloc PE 24150
Free PE 80022
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
Jeff Schussele
Honored Contributor

Re: OnLine JFS Not Working

OK - that helped a lot.
Since it's mirrored - then you need to double the 1100 (1100 per mirror - note the allocated value)- so it'd be

lvextend -l 2200 ....
or
lvextend -L 4400 ....

HTH,
Jeff

P.S. you may want to do an lvdisplay -v on that LV to verify that indeed the extents are allocated on diff PVs.
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
Patrick Wallek
Honored Contributor

Re: OnLine JFS Not Working

I'm not so sure about that Jeff. I think that both the -l and the -L will automatically take the mirror into account.

Why don't you try using the -L switch instead.

# lvextend -L 4400

(since you have 4 MB physical extents, and you want 1100 extents total, then that is 4400 MB).

Sanjay_6
Honored Contributor

Re: OnLine JFS Not Working

Hi Paula,

do a vgdisplay -v /dev/vg_db and check the number of extents on each disk in the VG. the lv was proably creted with a strict allocation policy in which case you should have enough free extents on the disks to allow you to extend the size of this lv.

Try this link for more info on the allocation policies.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000066374062

The doc id is KBAN00000177

Hope this helps.

Regds
Lee Abell
Frequent Advisor

Re: OnLine JFS Not Working

I figured it out. The lvextend command wanted the drive for the primary and the mirror. Here is what worked:

lvextend -l 1100 /dev/vg_db/lv_orabin /dev/dsk/c6t6d0 /dev/dsk/c4t6d0
Logical volume "/dev/vg_db/lv_orabin" has been successfully extended.
Volume Group configuration for /dev/vg_db has been saved in /etc/lvmconf/vg_db.conf
Stuart Abramson_2
Honored Contributor

Re: OnLine JFS Not Working

Is this the first time you have ever done an "fsadm" on HP-UX 11.11?

You may need to enable your license:

9. Enable OnlineJFS.

a. Remember our licenses:

# vxlicense -p

vrts:vxlicense: INFO: Feature name: HP_OnlineJFS [50]
vrts:vxlicense: INFO: Number of licenses: 1 (non-floating)
vrts:vxlicense: INFO: Expiration date: Sun Jun 24 04:00:00 2007 (1370.6 days from now)
vrts:vxlicense: INFO: Release Level: 22
vrts:vxlicense: INFO: Machine Class: All
vrts:vxlicense: INFO: Site ID: 0

b. This is the Base VxVM license, which includes HP_OnlineJFS.

c. However, it WON'T WORK, unless you ENABLE the license:

/sbin/fs/vxfs/vxenablef -a

vi /etc/inittab
Add:
vxen::bootwait:/sbin/fs/vxfs/vxenablef -a
init q

d. As near as I can tell, this isn't documented anywhere.
Suresh Patoria
Super Advisor

Re: OnLine JFS Not Working

Hi ,

I think there is limited PE.

So i think had not used the -p optiong while creating the VG for to use the maximum PE

better to put the /etc/lvmtab file and vgdisplay output it may help us to understand.

Thanx