Operating System - HP-UX
1833758 Members
3613 Online
110063 Solutions
New Discussion

New disk Installation on HP-UX

 
SOLVED
Go to solution
Daniel_RP
Frequent Advisor

New disk Installation on HP-UX

Hi all,

I'm trying to add new disks on a HP-UX system. I have some problems with it.

Well, I have done next steps:

0.- Search new disks:

ioscan –fnC disk

1.- Initialize disks for use with LVM.

root@dumbo:/opt/omni/lbin> pvcreate -f /dev/rdsk/ch6t12d1
Physical volume "/dev/rdsk/ch6t12d1" has been successfully created.
root@dumbo:/opt/omni/lbin> pvcreate -f /dev/rdsk/ch6t12d2
Physical volume "/dev/rdsk/ch6t12d2" has been successfully created.
root@dumbo:/opt/omni/lbin> pvcreate -f /dev/rdsk/ch6t12d3
Physical volume "/dev/rdsk/ch6t12d3" has been successfully created.
root@dumbo:/opt/omni/lbin> pvcreate -f /dev/rdsk/ch6t12d4
Physical volume "/dev/rdsk/ch6t12d4" has been successfully created.


2.-Create device structure:

cd /dev
mkdir vgHITACHI_SI_6
cd vgHITACHI_SI_6
mknod group c 64 0x500000


3.- Create vg’s:

vgcreate vgHITACHI_SI_6 /dev/dsk/ch6t12d1
...


And I receive the error:

“#vgcreate vgHITACHI_SI_6 /dev/dsk/ch6t12d1
vgcreate: Cannot open the control file "/dev/vgHITACHI_SI_6/group":
No such device”

Any idea about this trouble?

Thanks in advance.

 

 

P.S. This thread has been moved from  Disk to HP-UX > LVM and VxVM. -HP Forum Moderator

13 REPLIES 13
Luk Vandenbussche
Honored Contributor

Re: New disk Installation on HP-UX

Carlos,

This is wrong

mknod group c 64 0x500000

Must be

mknod group c 54 0x050000
(I suppose the number 5 is unique in your system)
If have more then 10 VGs you need to increase the kernel parameter max_vgs
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

System has groups until number 49.

Ex:
0x480000
0x490000

Then, next unique number free is 0x50.
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

Minor numbers already used:

64 0x000000 Apr 18 2002 /dev/vg00/group
64 0x050000 Feb 25 2003 /dev/vg01/group
64 0x170000 Apr 10 2006 /dev/vgDES6i/group
64 0x010000 Sep 12 2003 /dev/vgDUMBO/group
64 0x060000 May 20 2004 /dev/vgHITACHI_1/group
64 0x160000 Mar 24 2006 /dev/vgHITACHI_10/group
64 0x120000 May 20 2004 /dev/vgHITACHI_2/group
64 0x090000 May 20 2004 /dev/vgHITACHI_3/group
64 0x110000 May 20 2004 /dev/vgHITACHI_4/group
64 0x100000 May 20 2004 /dev/vgHITACHI_5/group
64 0x080000 May 20 2004 /dev/vgHITACHI_6/group
64 0x130000 May 20 2004 /dev/vgHITACHI_7/group
64 0x140000 May 20 2004 /dev/vgHITACHI_8/group
64 0x150000 Mar 24 2006 /dev/vgHITACHI_9/group
64 0x190000 Jun 5 2004 /dev/vgHITACHI_P1/group
64 0x200000 Jun 5 2004 /dev/vgHITACHI_P2/group
64 0x210000 Jun 5 2004 /dev/vgHITACHI_P3/group
64 0x220000 Jun 5 2004 /dev/vgHITACHI_P4/group
64 0x350000 Oct 26 12:10 /dev/vgHITACHI_SI_1/group
64 0x360000 Oct 26 12:29 /dev/vgHITACHI_SI_2/group
64 0x370000 Oct 2 11:01 /dev/vgHITACHI_SI_3/group
64 0x380000 Oct 2 11:39 /dev/vgHITACHI_SI_4/group
64 0x410000 Feb 10 2006 /dev/vgHITACHI_SI_5/group
64 0x500000 Dec 12 09:40 /dev/vgHITACHI_SI_6/group
64 0x020000 May 25 2004 /dev/vgHITACHI_ofa/group
64 0x280000 Feb 21 2006 /dev/vgPRSCS/group
64 0x450000 Jun 2 2006 /dev/vgTSEBS_1/group
64 0x460000 Jun 2 2006 /dev/vgTSEBS_2/group
64 0x470000 Jun 2 2006 /dev/vgTSEBS_3/group
64 0x480000 Jun 2 2006 /dev/vgTSEBS_4/group
64 0x490000 Jun 2 2006 /dev/vgTSEBS_5/group
64 0x440000 Jun 2 2006 /dev/vgTSEBS_6/group

Thanks.
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

More info:

The 4 new SAN disks are:

/dev/dsk/ch6t12d1
/dev/dsk/ch6t12d2
/dev/dsk/ch6t12d3
/dev/dsk/ch6t12d4

--> #ioscan -fnC disk:

Result:
disk 622 0/4/2/0.97.4.19.0.12.1 dlmfdrv CLAIMED DEVICE HITACHI DF600F
/dev/dlm/c6t12d1 /dev/dsk/ch6t12d1 /dev/rdsk/ch6t12d1
disk 623 0/4/2/0.97.4.19.0.12.2 dlmfdrv CLAIMED DEVICE HITACHI DF600F
/dev/dlm/c6t12d2 /dev/dsk/ch6t12d2 /dev/rdsk/ch6t12d2
disk 624 0/4/2/0.97.4.19.0.12.3 dlmfdrv CLAIMED DEVICE HITACHI DF600F
/dev/dlm/c6t12d3 /dev/dsk/ch6t12d3 /dev/rdsk/ch6t12d3
disk 548 0/4/2/0.97.4.19.0.12.4 dlmfdrv CLAIMED DEVICE HITACHI DF600F
/dev/dlm/c6t12d4 /dev/dsk/ch6t12d4 /dev/rdsk/ch6t12d4



--> #pvdisplay /dev/dsk/ch6t12d1

Result:
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/ch6t12d1" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/ch6t12d1"
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

#diskinfo /dev/rdsk/ch6t12d1
SCSI describe of /dev/rdsk/ch6t12d1:
vendor: HITACHI
product id: DF600F
type: direct access
size: 24576000 Kbytes
bytes per sector: 512


#diskinfo /dev/rdsk/ch6t12d2
SCSI describe of /dev/rdsk/ch6t12d2:
vendor: HITACHI
product id: DF600F
type: direct access
size: 24576000 Kbytes
bytes per sector: 512


#diskinfo /dev/rdsk/ch6t12d3
SCSI describe of /dev/rdsk/ch6t12d3:
vendor: HITACHI
product id: DF600F
type: direct access
size: 24576000 Kbytes
bytes per sector: 512


#diskinfo /dev/rdsk/ch6t12d4
SCSI describe of /dev/rdsk/ch6t12d4:
vendor: HITACHI
product id: DF600F
type: direct access
size: 24576000 Kbytes
bytes per sector: 512
Luk Vandenbussche
Honored Contributor

Re: New disk Installation on HP-UX

What is the value of the kernel parameter maxvgs
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

MAXVGS is 80.

Any idea?

Thanks.
Sameer_Nirmal
Honored Contributor
Solution

Re: New disk Installation on HP-UX

The "0x50" in hex is equal to 80 in decimal.
MAXVGS is at 80. So LVM will give you that error.

In order to create more VGs in this case, you need to increase maxvgs kernel parameter value, rebuild the kernel and reboot the system.
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

Ok, thanks.

Now, the highest number used is 49.

But I have some numbers that are smaller and that are not been used.

Can I use this smaller numbers? number 42 or 43 for example?

This might cause any error?

Thanks in advance.

I prefer not to increase MAXVGS, because it involves reboot the machine.

Luk Vandenbussche
Honored Contributor

Re: New disk Installation on HP-UX

You can perfectly use this number.

Each Volumegroup must have a unique number.

Ps : points are always appreciated
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

I recreate de Vg, now:

root@dumbo:/dev/vgHITACHI_SI_6> ll
total 0
crw-rw-rw- 1 root sys 64 0x430000 Dec 18 11:23 group


But when I create de VG:

# vgcreate vgHITACHI_SI_6 /dev/dsk/ch6t12d1 /dev/dsk/ch6t12d2 /dev/dsk/ch6t12d3 /dev/dsk/ch6t12d4
Increased the number of physical extents per physical volume to 5999.
vgcreate: Volume group "/dev/vgHITACHI_SI_6" could not be created:
Device busy


Any idea for "device busy" error?

Thanks.
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

OK, resolved:

#pvcreate -f /dev/rdsk/ch6t12d1
Physical volume "/dev/rdsk/ch6t12d1" has been successfully created.
#pvcreate -f /dev/rdsk/ch6t12d2
Physical volume "/dev/rdsk/ch6t12d2" has been successfully created.
#pvcreate -f /dev/rdsk/ch6t12d3
Physical volume "/dev/rdsk/ch6t12d3" has been successfully created.
#pvcreate -f /dev/rdsk/ch6t12d4
Physical volume "/dev/rdsk/ch6t12d4" has been successfully created.


#vgcreate vgHITACHI_SI_6 /dev/dsk/ch6t12d1 /dev/dsk/ch6t12d2 /dev/dsk/ch6t12d3 /dev/dsk/ch6t12d4


It was a confusion with dsk and rdsk.

Thanks.
Daniel_RP
Frequent Advisor

Re: New disk Installation on HP-UX

Closed