Operating System - HP-UX
1830133 Members
2341 Online
109999 Solutions
New Discussion

adding new logical volume to an existing lun

 
Tom_HPUX
Advisor

adding new logical volume to an existing lun

how do you add a new logical volume on the same lun that has no free space. example:

have 2 logical volume: lvol1, lvol2.
there is no free space on lvol1, but 4-gb free space on lvol2.

how to create a new lvol3 with 3-gb that used lun on lvol1. thanks
14 REPLIES 14
Rajeev  Shukla
Honored Contributor

Re: adding new logical volume to an existing lun

you can create a new lvol3 with lvcreate command
lvcreate -L 3000 -n lvol3 /dev/vg???
But unfortunately you can not attach it or span it to lvol1. What you could do is identify a directory that is large or is growing and mount this lvol3 on that diretcory and move the data across.
First create a filesystem on lvol3 and mount it on a temporary directory, then move the data from the diretcory to it and unmount and mount it as the original directory.
But i hope its not the lvol1 on root VG (vg00) coz this for that this is not the right way.
Jeeshan
Honored Contributor

Re: adding new logical volume to an existing lun

just do the lvol creation steps u did earlier

#lvcreate -L 3000 -n lvol3 /dev/
a warrior never quits
Asif Sharif
Honored Contributor

Re: adding new logical volume to an existing lun

Robert Salter
Respected Contributor

Re: adding new logical volume to an existing lun



You can't, there is no space.

You should be looking at the vg and seeing if there's any free space there. If you have a lvol that has available space you could reduce the size of the lvol, but be aware, the space could come from anywhere in the lun that the lvol resides on and possibly wipe out some data.

If there's free space available in another vg, use that to create your lvol3. Why does it have to be on the same lun as lvol1?
Time to smoke and joke
Torsten.
Acclaimed Contributor

Re: adding new logical volume to an existing lun

"how to create a new lvol3 with 3-gb that used lun on lvol1"

Do you really want to create a new lvol3
or
do you want to increase lvol1?

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tom_HPUX
Advisor

Re: adding new logical volume to an existing lun

thanks all for the reply... Current allocation of the lvol::

lvol1 - disk_01 No Free Space
lvol2 - disk_02 has 3 gb free
lvol3 - disk_03 has 3 gb free

objective to create a new logical volume on disk_01

thanks for any advise
Jeeshan
Honored Contributor

Re: adding new logical volume to an existing lun

so now assign points. :-)
a warrior never quits
Torsten.
Acclaimed Contributor

Re: adding new logical volume to an existing lun

Still not clear.

objective to create a new logical volume on disk_01 - no free space left.

How about extending lvol1 to disk_03???

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tom_HPUX
Advisor

Re: adding new logical volume to an existing lun

Like Torsten mentioned,does anyone has the step-by-step on lvextend vol1 to disk3?


thanks
Robert Salter
Respected Contributor

Re: adding new logical volume to an existing lun

You can try looking here;
http://docs.hp.com/en/B2355-90950/ch06s02.html#bficeaha
Time to smoke and joke
Robert Salter
Respected Contributor

Re: adding new logical volume to an existing lun

OR you could do a man on lvextend
Time to smoke and joke
Torsten.
Acclaimed Contributor

Re: adding new logical volume to an existing lun

Let's start by posting a vgdisplay -v for this VG.

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!   
Tom_HPUX
Advisor

Re: adding new logical volume to an existing lun

thanks all. I have found my solution
Torsten.
Acclaimed Contributor

Re: adding new logical volume to an existing lun

You are welcome.

Did you already read this?

http://forums12.itrc.hp.com/service/forums/helptips.do?#33

Hope this helps!
Regards
Torsten.

__________________________________________________
There are only 10 types of people in the world -
those who understand binary, and those who don't.

__________________________________________________
No support by private messages. Please ask the forum!

If you feel this was helpful please click the KUDOS! thumb below!