Operating System - HP-UX
1752488 Members
5568 Online
108788 Solutions
New Discussion юеВ

Re: Can create new LV without rebooting?

 
SOLVED
Go to solution
G. Knight
Occasional Contributor

Can create new LV without rebooting?

We have an HP rp2470 running 11i. It has two 73.4GB drives and one volume group. there are multiple logical volumes already in this volume group. The application staff need another logical volume but this server as usual has to be up most all of the time. Can a logical volume be added either by using the LVM utility in SAM or command line without requiring a reboot or at least can the LV be added then the reboot be done later so that the downtime is much shorter?
7 REPLIES 7
singh sanjeev
Trusted Contributor

Re: Can create new LV without rebooting?

yes ...you can create a LV online...

check your vg have free pe.

#vgdisplay
#lvcreate -L -n /dev/

#newfs -F vxfs -o largefiles -o 8192 /dev//r

#mkdir

#mount /dev//


edit the /etc/fstab.


Sanjeev Singh
Steven E. Protter
Exalted Contributor

Re: Can create new LV without rebooting?

Shalom,

The answer is, it depends.

vgdisplay -v

You need to know if there is room for additional disks in the volume group.

SAM uses lvm commands and is prone to make bad decisions, so you are better off using the following process.

pvcreate
vgextend

This will let you know if you have any problems with utilizing the disk.

No reboot is required for any of this, unless you are talking about vg00 the boot volume group.

I recommend strongly against storing data in that volume group.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
James R. Ferguson
Acclaimed Contributor
Solution

Re: Can create new LV without rebooting?

Hi:

> Can a logical volume be added either by using the LVM utility in SAM or command line without requiring a reboot or at least can the LV be added then the reboot be done later so that the downtime is much shorter?

Yes, absolutely.

Regards!

...JRF...
stephen peng
Valued Contributor

Re: Can create new LV without rebooting?

so your application staff need "another" logical volume, so just check out whether there were free spaces at that volume group(I think it should be vg00), and them use lvcreate to create a new logical volume, and use newfs to create filesystem, use lvextend to mirror this new logical volume, if it is necessary(and i do think this should be),just read the manpage of every command you will need to use to get familiar to them.

regards
stephen
Tingli
Esteemed Contributor

Re: Can create new LV without rebooting?

Assuming the vg00 is already mirrored and you don't need to mirror the logical volume any more. Only thing need to do is just create a lv from vg (make sure there is still space available.) by using lvcreate command.
James R. Ferguson
Acclaimed Contributor

Re: Can create new LV without rebooting?

Hi (again):

Out of curiosity, what part of your original question that I answered failed to satisfy you?

(You wanted to know if a reboot was required to add a logical volume, and I answered "no".)

...JRF...
G. Knight
Occasional Contributor

Re: Can create new LV without rebooting?

My apologizes, JRF. You did answer my question as asked. Your answer was so to the point I simply over looked it. I will post appropriate points.