1829905 Members
1543 Online
109993 Solutions
New Discussion

Seting new hard drives

 
SOLVED
Go to solution
Marty Metras
Super Advisor

Seting new hard drives

Will, I got a Christmas gift. They let me buy some more disk space finely.
It has been 2-3 years since I have set up and I need some to boost my memory how it is done.
This is an HP-UX 11.0 "N" class server. I have 8-36GB drives that are in a JOBD on one SCSI card. This if fine because I am going to use the for low volume usage. Test area and backup for now. I can see all of them are claimed in ioscan so I'm ready to do the software stuff.
I want to make 4 Volume groups with 4 pairs of mirrored drives with each vg having a 2 drives mirrored. If memory servers and I were using "sam" I would create the Volume group putting one drive in it.
I do not remember how to set up the mirror.
Can you help with this?
Marty
The only thing that always remain the same are the changes.
7 REPLIES 7
Gary L. Paveza, Jr.
Trusted Contributor
Solution

Re: Seting new hard drives

You don't mirror the volume group, you mirror the logical volumes within the volume group. Create 4 volume groups, each with 2 disks. When you create the logical volumes, use the -m 1 option to create one mirror.
Pete Randall
Outstanding Contributor

Re: Seting new hard drives

Marty,

First, pvcreate the disks. Then vgcreate the VG, followed by lvcreate for the primary lvols. Now lvextend -m 1 to create each primary's mirror.


Pete

Pete
ian Dennison
Regular Advisor

Re: Seting new hard drives

Hmmm, I must be missing something obvious because it seems like an easy solution.

vgextend /dev/vg[VGNAME] /dev/dsk/[DEVICE]

lvextend /dev/vg[VGNAME]/lvol1 -n 1 /dev/dsk/[DEVICE]

you can specify multiple devices to send it on if there is more than 1 required.

Is this what you were after? Share and Enjoy! Ian
Lets do it to them before they do it to us! www.fred.net.nz
ian Dennison
Regular Advisor

Re: Seting new hard drives

Thats 'lvextend -m 1'

Doh! Homer
Lets do it to them before they do it to us! www.fred.net.nz
Patrick Wallek
Honored Contributor

Re: Seting new hard drives

When you create the LVOLs, be sure to use the '-s y' to enable "strict" mirroring. This will make sure that the mirror copy resides on the other disk.

# lvcreate -L size-in-MB -m 1 -s y /dev/vg??
A. Clay Stephenson
Acclaimed Contributor

Re: Seting new hard drives

In SAM, you create the volume groups with at least two physical disks per VG. Next under Logical Volumes --> Add New Logical Volume -- > Modify LV Defaults --> Mirroring, you are allowed to select the number of mirror copies. Enter 1 there are you are set.

Remember, mirroring is done at the LVOL level not at the disk level.


Of course, you really don't need no stinkin' SAM to do this. An lvcreate, followed by an lvextend -m 1 will do it.
If it ain't broke, I can fix that.
Marty Metras
Super Advisor

Re: Seting new hard drives

Thank guys.
Drives are mounted mirrored and ready for stuff.
Even documented so I don't forget again.
Thanks again and have safe holidays.
Marty
The only thing that always remain the same are the changes.