Operating System - HP-UX
1838675 Members
4959 Online
110128 Solutions
New Discussion

Adding more drives to vg00

 
SOLVED
Go to solution
Tim Krego_1
Frequent Advisor

Adding more drives to vg00

I have a K460 development box that has four 4GB disks. In order to maximize space I would like to add the other 3 disks to vg00.

Is that possible? Is it a good idea?

Obviously I don't want to rebuild the OS if I lose one disk. With LVM could that happen?
HP/UX Newbie
7 REPLIES 7
Joseph C. Denman
Honored Contributor

Re: Adding more drives to vg00

Is there a reason for adding them to vg00. Why not create a new vg?

...jcd...
If I had only read the instructions first??
John Poff
Honored Contributor

Re: Adding more drives to vg00

Hello Tim,

Yes it is possible to add more disks, and yes it is a good idea. If you don't want to chance losing the OS, I'd suggest mirroring the root vg. If you have some logical volumes in vg00 that are part of a testing or development environment, you might want to move them into a separate volume group so that your vg00 is just your root os. That way, you could mirror the os, and if the other stuff is less important you could get by without mirroring it which would make better use of your disks.

JP
Tim Krego_1
Frequent Advisor

Re: Adding more drives to vg00

I did make a 12GB vg01 with the 3 disks. Since I am fairly new to unix I got stuck.

I wanted to make /p01, /p02, /p03 to duplicate our Oracle production machine. I couldn't figure out how to make those dirs on the vg01 group. Is that possible? If so I will recreate vg01.
HP/UX Newbie
A. Clay Stephenson
Acclaimed Contributor

Re: Adding more drives to vg00

Hi Tim,

If you are really needing the space and want to use all the free space of your 1 boot disk then yes you could add the three remaining disks to vg00. I would NOT use the space to extend a critical filesystem because then you could put yourself in a position to have to reload if you lost just 1 disk.

My preference, is that you use one disk to mirror the boot disk and the remianing two disks as a separate volume group. You have to realize in today's world that disks are cheap but developers' time is precious. If I were you, I would buy a few bigger disks and mirror them. You will sleep better.

Regards, Clay
If it ain't broke, I can fix that.
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: Adding more drives to vg00

Hi again,

Since you are new to HP-UX the easist method is to use SAM->Disks->logical Volumes.

This will step you through the entire process and create the mount points for you in vg01.

If you did this manually you may have forgotten to activate your volume group
using vgchange -a y /dev/vg01.

This time however I would use SAM.

Clay
If it ain't broke, I can fix that.
Joseph C. Denman
Honored Contributor

Re: Adding more drives to vg00

If you have not create any lvols on vg01. Here is a start for you.

lvcreate -n {lvol_name} /dev/vg00 {lvol_name} = name you want for the lvol {lvol1}

Creating without a size will allow you to extend to the disk you want rather than letting the system do it.

next;

lvextend -L {size in mb} /dev/vg00/{lvol_name} /dev/dsk/cXtXd0

create the file system structure by doing; newfs -F vxfs /dev/vg00/r{lvol_name} Use "r" for raw. If you want an HFS filesystem substitute hfs for vxfs.

create your mount point using mkdir mount your file system;

mount /dev/vg00/{lvol_name} /{mount point}

Add your file system to /etc/fstab so it will be mounted on the next boot.


Hope this helps

...jcd...

If I had only read the instructions first??
Deshpande Prashant
Honored Contributor

Re: Adding more drives to vg00

HI
To create seperate file systems for oracle in vg01, using sam will be one way to do it.
Use sam->disks & file systems ->Logical Volumes-> From Pull Down menu use Actions->Create ->Select the volume group (vg01) Then Define the new logical volumes, their sizes and mount point.
Kepping application file systems seperate from vg00 is a good idea.

Thanks.
Prashant.
Take it as it comes.