Unable To Extend the Size of a Logical Volume File System


 
Thread Tools Search this Thread
Operating Systems HP-UX Unable To Extend the Size of a Logical Volume File System
# 1  
Old 04-25-2011
Unable To Extend the Size of a Logical Volume File System

Background:

Code:
# uname -a
HP-UX deedee B.11.23 U ia64 4294967295 unlimited-user license
deedee.rsn.hp.com:/

Code:
# bdf /opt
Filesystem              kbytes     used      avail     %used          Mounted on
/dev/vg00/lvol6     6553600   6394216   158144   98%             /opt

/opt is almost full and so lvol6 needs to be extended in size

When I try to extend lvol6 from 400 PE's to a new size of 493 PE's, I get the following:

Code:
# lvextend -l 493 /dev/vg00/lvol6
lvextend: Not enough free physical extents available.
Logical volume "/dev/vg00/lvol6" could not be extended.



I did a "pvdisplay -v" and discovered that all of the PE's in lvol6 are located on disk /dev/dsk/c8t0d1s2 /dev/dsk/c8t0d1s2 is part of
a SAN environment.

Running "pvdisplay -v /dev/dsk/c8t0d1s2"
shows that there are now zero Free PE available.

Code:
# pvdisplay -v /dev/dsk/c8t0d1s2 | more

--- Physical volumes ---
PV Name /dev/dsk/c8t0d1s2
PV Name /dev/dsk/c10t0d1s2 Alternate Link
VG Name /dev/vg00
PV Status available
Allocatable yes
VGDA 2
Cur LV 9
PE Size (Mbytes) 16
Total PE 3463
Free PE 0
Allocated PE 3463
Stale PE 0
IO Timeout (Seconds) default
Autoswitch On
Proactive Polling On

--- Distribution of physical volume ---
LV                            Name LE of LV       PE for LV
/dev/vg00/lvol1                 19                    19
/dev/vg00/lvol2                256                   256
/dev/vg00/lvol3                 33                    33
/dev/vg00/lvol4                 32                    32
/dev/vg00/lvol5                   2                     2
/dev/vg00/lvol6                400                   400
/dev/vg00/lvol7                384                   384
/dev/vg00/lvol8                288                   288
/dev/vg00/lvol9               2049                  2049 

My question is this: Is it somehow possible to free up the extents shown for one of the other file systems, specifically, /dev/vg00/lvol9, and make them available for /dev/vg00/lvol6 ?

Thanks in advance!

Rob S.

Last edited by Neo; 04-25-2011 at 08:54 PM.. Reason: added code tags
# 2  
Old 04-26-2011
Dunno about exact disk layout (stripe or non-stripe, probably not striped since it's root VG).

For these operations you must have online JFS option/depot installed (resizing mount points without umounting them).
As you probably know, root lvm's cannot be umounted during runtime.

Commands you will be using are :
Code:
bdf <mountpoint of lvol9> ## check how many free space you have here.
fsadm <options> ## to reduce free space on <mountpoint> and return it as Free PE to lvol9.
lvreduce <options> on lvol9 # to reduce lvol9 and return Free PE's to vg00
vgdisplay /dev/vg00 # will now show Free PE's avalible.
lvextend <options> /dev/vg00/lvol6
lvdisplay /dev/vg00/lvol6 should now show added extents.
fsadm <options> to increase mountpoint size of lvol6

Remember be careful when looking PE have their size, so if you are using fsadm be sure calculate first for reduction/increase and use appropriate switches (-l and -L). Also, after adding PE's to your LV, fsadm operation requires complete size (old + added) of LV.

Also take backups Smilie (ignite is kewl here).

Here is a nice link.
HP-UX Logical Volume Manager (LVM)
# 3  
Old 05-01-2011
1. Do you have OnlineJFS installed? (License required)

Secondly, we need to understand the fact that most of the things specified on books does not work when it comes to production environment. There are steps to do a lot of things, but, sometimes its a pain. Like, migrating a server from 11.11 to 11.31, its possible. But, again, you need to go through a lot of pain.

If I was going to do this, I would take a ignite backup (ignite is free), plan a downtime, restore it with the modified sizes. Should not take much time, no
confusions, no data loss, no pain. Smilie

Alternatively, you can also add up a lun / extend it from storage install DLE and work, or, extend your lvol on another disk under vg00 and proceed, but, again complicated.

Again, your scenario is possible. But, ignite would do a charm! Smilie

-DB
# 4  
Old 05-03-2011
I fixed the problem by running:

pvmove -n /dev/vg00/lvol9 /dev/dsk/c8t0d1s2 /dev/dsk/c8t0d3


Thanks for your help and pointers!

Rob S.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Unable to extend file system

Hi, I have inherited this AIX 5.3 host. I'm unable to increase the /usr file system. It gives me this error. What needs to be done to remove this error? vios:/home/padmin$ chfs -a size=+128M /usr 0516-304 lquerypv: Unable to find device id 0002ef4df616f9690000000000000000 in the Device ... (14 Replies)
Discussion started by: dn888
14 Replies

2. AIX

Cannot extend logical volume

Dear All, We have an Oracle running on AIX 6.1, now there have an disk spaces issue and we found that we cannot perform to extend the logical volume. Could help to review and make some suggestions. Status: we already provisioned some disks to the host, new disks can be scan and add into the... (11 Replies)
Discussion started by: lckdanny
11 Replies

3. Red Hat

No space in volume group. How to create a file system using existing logical volume

Hello Guys, I want to create a file system dedicated for an application installation. But there is no space in volume group to create a new logical volume. There is enough space in other logical volume which is being mounted on /var. I know we can use that logical volume and create a virtual... (2 Replies)
Discussion started by: vamshigvk475
2 Replies

4. AIX

/usr/sbin/extendvg: Unable to extend volume group

Dear Expret, Help me about my issue, I trying add new disk to volume Group but error: step add new disk to volume group. 1. ~Change a Volume Group Add a Physical Volume to a Volume Group Remove a Physical Volume from a Volume Group Reorganize a Volume Group... (6 Replies)
Discussion started by: williamen
6 Replies

5. AIX

Unable to extend volume group(VG)

Would some help me on this below I am trying to extend file system on AIX and however unable to extend the file system. 0516-306 extendvg: Unable to find physical volume 20 in the Device Configuration Database. 0516-321 extendvg: Physical volume u01-lv is not configured. 0516-792... (15 Replies)
Discussion started by: murali969
15 Replies

6. UNIX for Dummies Questions & Answers

How to create a volume group, logical volume group and file system?

hi, I want to create a volume group of 200 GB and then create different file systems on that. please help me out. Its becomes confusing when the PP calculating PP. I don't understand this concept. (2 Replies)
Discussion started by: kamaldev
2 Replies

7. HP-UX

[Solved] How to extend a mirrored logical volume?

Want to extend the /home filesystem: Filesystem kbytes used avail %used Mounted on /dev/vg00/lvol4 262144 260088 2056 99% /home root@server:./root # vgdisplay vg00 --- Volume groups --- VG Name /dev/vg00 VG Write Access read/write VG Status available Max LV 255 Cur LV 11 Open... (4 Replies)
Discussion started by: proactiveaditya
4 Replies

8. AIX

Help - can't extend logical volume ?

Hi, Smit "Increase the Size of a Logical Volume" command failed. Output: ---------------------------------------------------------- Command: failed stdout: yes stderr: no Before command completion, additional instructions may appear below. The distribution of this command (111) failed on... (2 Replies)
Discussion started by: vilius
2 Replies

9. AIX

Extend one Logical Volume

Hi All, I am new to AIX. I need to extend one Logical Volume it is jfs type on On AIX 5.1. I have enough free space on the volume group for this extension Can I use smitty chjfs , will this do it without interruptions to the application that is using this Logical Volume. Thanks Scampi (1 Reply)
Discussion started by: scampi
1 Replies

10. Solaris

How to reduce the size of a logical volume in solaris 9

Hi, I have the following problem. I just have a new machine with mirroring. The logical volume for /opt is dimensionned to 75 GB which is to much. I want a volume of 10 GB. How can I reduce the size ? I tried to reduce the size of the slice from 75 GB to 10 GB, but the size of the logical volume... (6 Replies)
Discussion started by: aribault
6 Replies
Login or Register to Ask a Question