Operating System - HP-UX
1834900 Members
3028 Online
110071 Solutions
New Discussion

Re: How in increase size of logical volume?

 
SOLVED
Go to solution
Aftab Sadiq
Advisor

How in increase size of logical volume?

we have HP-UX 11.0(64-bit) installed on HP900(N4000) server. I want to increase the size of logical volume /dev/vg00/lvol9 (filesystem: /m01) to 3260M. This volume has mirrored copy on other disk. Here are the steps I am going to follow:

lvextend -L 3260 /dev/vg00/lvol9
unmount /m01
extendfs vxfs /dev/vg00/lvol9
mount /m01

please coreect me if I am missing anything.

Thanks

Aftab
6 REPLIES 6
Steffi Jones_1
Esteemed Contributor

Re: How in increase size of logical volume?

it looks fine, but you need to specify one option with the extendfs command:

extendfs -F vxfs /dev/vg...

That should do it,

Steffi Jones
John Palmer
Honored Contributor

Re: How in increase size of logical volume?

Hi,

lvextend -L 3260 /dev/vg00/lvol9

If you have more than two disks in the volume group (primary and mirror) then you might want to specify the specific disks to extend onto.

extendfs vxfs /dev/vg00/lvol9

shoul read:-
extendfs -F vxfs /dev/vg00/rlvol9

Regards,
John
Dan Hetzel
Honored Contributor

Re: How in increase size of logical volume?

Hi,

Steffi is right, you'll need the -F flag for extenfs.

OK, go for it !


Dan
Everybody knows at least one thing worth sharing -- mailto:dan.hetzel@wildcroft.com
Aftab Sadiq
Advisor

Re: How in increase size of logical volume?

I forgot -F siwtch, thanks for correcting me.
This logical volume has only one mirror copy, Do I need to specify the second disk with extendfs command.
Rob Mallard
Valued Contributor

Re: How in increase size of logical volume?

..and it is umount not unmount.
Kenneth Platz
Esteemed Contributor
Solution

Re: How in increase size of logical volume?

Aftab,

There are a couple of things that you may want to add to your procedure:

# fuser -k /m01
# umount /m01
# lvextend -L 3260 /dev/vg00/lvol9
# extendfs -F vxfs /dev/vg00/rlvol9
# mount /m01

The steps you were missing or incomplete were:
You need to kill all processes accessing any file mounted on /m01
You should unmount the filesystem before you extend it.
You need to make sure you use the RAW (character) device for the volume group in question.

I hope this helps.

I think, therefore I am... I think!