System Administration
cancel
Showing results for 
Search instead for 
Did you mean: 

vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

SOLVED
Go to solution
David Willams
Super Advisor

vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

what does the below two commands mean. How do I expand then so that I can understand the shortcut in the command

vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

vgextend /dev/vgpkg1 /dev/dsk/c[79]t0d[12] \
/dev/dsk/c1[13579]t0d[12]
7 REPLIES
melvyn burnard
Honored Contributor
Solution

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

Expand them?

Essentially the first command i screating a Volume group with it's first PV, using the block device special file for the disk which is in the format of:
/dev/dsk/c[x]t[y]d[z]
where c=HBA instance number
where t=target number and
where d=LUN number
You can use ioscan -funCdisk to locate these,
unless you have HP-UX 11iv3 where you can use the new Agile addressing

The second command is simply adding another two PV's to the VG, using the same addressing as above.

You could also just do:
vgcreate /dev/vgpkg1 /dev/dsk/c[x]t[y]d[z] /dev/dsk/c[x]t[y]d[z].......
substituting the relevant numbers for each PV
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Dennis Handly
Acclaimed Contributor

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

>vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

This is shell Pattern Matching Notation. If these files exist, it should be expanded to:
vgcreate /dev/vgpkg1 /dev/dsk/c5t0d1 /dev/dsk/c5t0d2

You can use echo to check:
echo vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

>vgextend /dev/vgpkg1 /dev/dsk/c[79]t0d[12] \
/dev/dsk/c1[13579]t0d[12]

This would be the 2*2 combinations of the first and the 5*2 of the latter.
David Willams
Super Advisor

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

my ioscan like this:

/dev/disk/disk80 /dev/rdisk/disk80
disk 81 64000/0xfa00/0x6 esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk81 /dev/rdisk/disk81
disk 82 64000/0xfa00/0x7 esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk82 /dev/rdisk/disk82
disk 83 64000/0xfa00/0x8 esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk83 /dev/rdisk/disk83
disk 84 64000/0xfa00/0x9 esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk84 /dev/rdisk/disk84
disk 85 64000/0xfa00/0xa esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk85 /dev/rdisk/disk85
disk 86 64000/0xfa00/0xb esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk86 /dev/rdisk/disk86
disk 87 64000/0xfa00/0xc esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk87 /dev/rdisk/disk87
disk 88 64000/0xfa00/0xd esdisk CLAIMED DEVICE HP HSV200
/dev/disk/disk88 /dev/rdisk/disk88



the first command I have created bye

vgcreate /dev/vgpkg1 /dev/disk/disk81 /dev/disk/disk82

how do I do the second one...

vgextend /dev/vgpkg1 /dev/dsk/c[79]t0d[12] \
/dev/dsk/c1[13579]t0d[12]

like

vgextend /dev/vgpkg1 /dev/disk/disk[83848586????]

or
vgextend /dev/vgpkg1 /dev/disk/disk83 /dev/disk/disk84 /dev/disk/disk85 ....????


melvyn burnard
Honored Contributor

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

>
vgextend /dev/vgpkg1 /dev/disk/disk[83848586????]

or
vgextend /dev/vgpkg1 /dev/disk/disk83 /dev/disk/disk84 /dev/disk/disk85 ....????

>
Well the second option is the more usual step, and is very specific.
The first option if you want to try would look like:
vgextend /dev/vgpkg1 /dev/disk/disk8[3456]

But I prefer th emore specific option as you KNOW which device you are going to use.
Just my opinion
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
David Willams
Super Advisor

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

How do I create an Alternative link in the new format and not legacy...

vgextend /dev/vgpkg2 /dev/dsk/c[79]t0d[34] \
/dev/dsk/c1[13579]t0d[34] will be creating Alternative links

How do I create the same in /dev/disk/ ??? format

melvyn burnard
Honored Contributor

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

You don't.
The new agile format is multipath aware, so in fact if there are multiple paths to the same LUN, then th ekernel will address it as /dev/disk/disk82, and transparently know it can use any of the healthy paths to the LUN, IF it has multiple paths.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
David Willams
Super Advisor

Re: vgcreate /dev/vgpkg1 /dev/dsk/c5t0d[12]

that clears my doubt,,

Thank you