Operating System - HP-UX
1834149 Members
2852 Online
110064 Solutions
New Discussion

Re: extend logical volume in raw device

 

extend logical volume in raw device

Hi Anyone,

need help. i need to extend logical volume resides in raw device. the allocated size of the logical volume is 4G. currently there is an oracle datafile resides in that volume and almost reach to 4G.

can i just extend the logical volume to 6G? what is the command?

for oracle datafile, can i just extend it to 6G once the logical volume has been extended?

thank you for advice..

best regards,
Nonie
3 REPLIES 3
Luk Vandenbussche
Honored Contributor

Re: extend logical volume in raw device

If you don't have onlineJFS you must stop the database and execute the following commands

umount /fs
lvextend -l 6000 /dev/vgxx/lvolx
extendfs -F vxfs /dev/vgxx/rlvolx
mount /fs

restart the database

Off course you need 2 GB free space in your volumegroup
Robert-Jan Goossens
Honored Contributor

Re: extend logical volume in raw device

add on to the previous post.

as this is a raw volume there is no need to umount and mount it, and you can not use the extendfs command because there is no filesystem.

# lvextend -l 6000 /dev/vgxx/lvolx

Regards,
Robert-Jan
Prasanth Vattoly
Frequent Advisor

Re: extend logical volume in raw device

yes . you can extend the size of logical volume to 6GB . but you have to resize the oracle datafile to 6GB after this. so that the oracle can use the extended size ...
prasanth.v.a