Operating System - HP-UX
1836617 Members
2112 Online
110102 Solutions
New Discussion

How do I configure a new disk using SAM

 
Cindy Wolford
Frequent Advisor

How do I configure a new disk using SAM

Hi there,

I'm hoping someone can help me out?

I have 2 "spare" disks that are currently unused. They are 4Gb each. I would like to create a new LVM 4GB with the other 4Gb as a mirror (this is how all of our others drives are setup).

(oh, and if you do a ioscan -funC disk I can see the 2 disks, ClAIMED)

When I go to Sam - Disk Devices, I see both 4Gb drives as "unused".

I selected one disk, hit Actions, typed in a new VG name (we have vg00 - vg07 so I typed vg08) and then the next line was PVG?

Looking at my vgdisplay -v output, I see my current drives like this:
Logical volumes, LV Name = /dev/vg05/lvol1
LV Size = 8184
etc etc
Physical Volumes, PV Name = /dev/dsk/c2t1d0
etc etc

so I typed in for the PVG = /dev/dsk/c1t9d0 which is from my ioscan output for that disk. Sam said this was invalid and hence where I've stopped.

Can someone shed some light on this?
TIA
Cin
6 REPLIES 6
S.K. Chan
Honored Contributor

Re: How do I configure a new disk using SAM

PVG is Physical Volume Group within a VG. For example I got 4 disks (A,B,C & D) I want to configure in vg05. I can choose to put those disks in 2 different PVG (say I call them pvg1 and pvg2, and I put A & B in pvg1; C & D in pvg2). When you do this /etc/lvmpvg file will be created. So in your case, you can give anyname to the PVG, it does not mean the device path of the disk.
Helen French
Honored Contributor

Re: How do I configure a new disk using SAM

Hi Cindy,

For your purpose, you dont need to configure a PVG ( Physical Volume Group). You can create the new VG, create LVs. Then extend the VG with other disk, and mirror the LVs.

HTH,
Shiju
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: How do I configure a new disk using SAM

Hi Cindy,

Do you want to try the command line options.

mkdir /dev/vg08
mknod /dev/vg08/group c 64 0x080000
pvcreate -f /dev/rdsk/first_disk
pvcreate -f /dev/rdsk/second_disk

Let us assume first disk is cxtydz and the second disk is cXtYdZ

no create a VG,

vgcreate /dev/vg08 /dev/dsk/cxtydz
vgextend /dev/vg08 /dev/dsk/cXtYdZ
lvcreate -n lv_name /dev/vg08
lvextend -L 200 /dev/vg08/lv_name /dev/dsk/cxtydz
lvextend -m 1 /dev/vg08/lv_name /dev/dsk/cXtYdZ

This will create the lv of size 200MB on 1st disk and will create the mirror on the 2nd disk. Now create the filesystem,

newfs -F vxfs -o largefiles /dev/vg08/rlv_name

You can repeat the lv creation steps to add more lv's and can also modify the size of the lv to suit your requirements.

Hope this helps.

Regds
harry d brown jr
Honored Contributor

Re: How do I configure a new disk using SAM

You don't need to create PHYSICAL VOLUME GROUPS - it's like making a bunch of disks look like one device. So skip it, besides, sma would never expect you (usually) to enter in an equation "PVG = /dev/dsk/blah" it would only want /dev/dsk/blah.


live free or die
harry
Live Free or Die
harry d brown jr
Honored Contributor

Re: How do I configure a new disk using SAM


Also, once you add the two disks to the volume group, which you created a new one, I believe vg08, create a logical volume (of 4gb I assume), but only select the first disk for that lvol. Then make it mirrored.

Remember, mirroring is at the Logical Volume level only, not at the Volume group level. Which means you could just as easily add these disks to an existing Volume group, like vg07, and then create your Logical volumes. When you create too many Volume groups (and 8 isn't many) it becomes an adminstrative nightmare. Volume groups should always have Logical volumes that belong grouped together, like databases, applications, etc...


live free or die
harry
Live Free or Die
Helen French
Honored Contributor

Re: How do I configure a new disk using SAM

Hi Cindy,

Again, the PV name which you are getting from 'ioscan' output is the Physical Volume device name (/dev/dsk/cxtydz). This is the file which the system uses to access the device.

A PVG (physical Volume Group) is different. It allows you to logically group disk devices within the same volume group together. The PVG configuration can be found from the /etc/lvmpvg file.

In your case, you can skip this option and create normal VGs and LVs and then mirror it. Check this for more information on PVG:

http://us-support.external.hp.com/cki/bin/doc.pl/sid=e522b1d70688edb699/screen=ckiDisplayDocument?docId=200000047257204

HTH,
Shiju

Life is a promise, fulfill it!