1752649 Members
5781 Online
108788 Solutions
New Discussion юеВ

Re: Extending vg01

 
mrlowprofile
Occasional Contributor

Extending vg01

Hi ...

Currently 86% of /dev/vg01/lvg011 have been used ..
I wanted to extend the size of the space ...

I did my homework ...

#vgdisplay -v
..
Free PE 249
..

#bdf
..
/dev/vg01/lvg011 8192000 7016990 1101636 86% /mydata
..

the thing is ...

when i tried to "lvextend -L 9188 /dev/vg01/lvg011" in single user mode .. it prompted error message "lvextend : Couldn't query fron LVM device driver the current setting of the logical volume "/dev/vg01/lvg011 : Volume Group not activated" "

Can someone help me with this ??

Can I use the Free PE from vg00 to extend my /dev/vg01/lvg011 ?

Or would i consider on buying new hdisk for this situation ?

Pls advice me on this ...

TQ
4 REPLIES 4
James R. Ferguson
Acclaimed Contributor

Re: Extending vg01

Hi:

You will need to activate 'vg01' in order to use 'lvextend':

# vgchange -a y vg01

> Can I use the Free PE from vg00 to extend my /dev/vg01/lvg011 ?

No, logical volumes are pieces of a volume group and cannot span different groups.

> Or would i consider on buying new hdisk for this situation

If you have free physical extents in *vg01* then you can enlarge '/dev/vg01/lvg011'. If you don't then you will need to add another (unused) physical volume to vg01 with 'vgextend' before you can 'lvextend' the logical volume and subsequently grow the filesystem within with 'fsadm' or with 'extendfs'.

Regards!

...JRF...
Rita C Workman
Honored Contributor

Re: Extending vg01

If your in single user mode (and I have no clue why...) then you would have to activate the vg:
vgchange -a y /dev/vg01

BUT...........if your in single user you would probably need to mount up the rest of vg00. OK...Q&A

Q:
1. Does your box have OnlineJFS so you can extend disk live?

A:
Can I use the Free PE from vg00 to extend my /dev/vg01?
>>>>>>>>NO! You can only use disk that belongs to vg01

A: Or would I consider on buying new hdisk for this situation?
>>>>>>>>If you have available space on vg01 disk, then you can use that. Buy storage when you need to or in anticipation of growth.

Hope this helps you,
Rgrds,
Rita
Asif Sharif
Honored Contributor

Re: Extending vg01

Hi TQ,

Volume Group not activated" "

Activate the vg01 first using this command.

#vgchange -a y vg01

lvextend -L 9188 /dev/vg01/lvg011

Check the syntax of your command. If you are using "L", you specify the size in MB.

lvextend -L 9188M /dev/vg01/lvg011

Can I use the Free PE from vg00 to extend my /dev/vg01/lvg011 ?

--> NO

http://forums11.itrc.hp.com/service/forums/questionanswer.do?admit=109447626+1216055321894+28353475&threadId=110476
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1165719

Regards,
Asif Sharif
Regards,
Asif Sharif
Sajjad Sahir
Honored Contributor

Re: Extending vg01

Dear


u have to activate the volume group first

vgchange -a y /dev/vg01

second thing why u are saying about single
usermod
if u want to extend a volume no need of single usermod.
regarding free pe can i use u can't
the more explanation u can see from the above thread.

thanks and regards

Sajjad Sahir