Operating System - HP-UX
1834450 Members
2278 Online
110067 Solutions
New Discussion

Re: Problem Creating volume for 500GB on HP-UX

 
SOLVED
Go to solution
Zulfiqar Hanif
Advisor

Problem Creating volume for 500GB on HP-UX

we have rx3600 2 servers installed hp-ux 11.23
and EVA 3000.
oracle 10g ASM installed on the system.


1. I create the vdisk in HP EVA3000 of 500GB and present to HP-UX 11.23i
2. I issue this command in HP-UX
# mkdir /dev/vgarchlog
# mknod /dev/vgarchlog/group c 64 0x010000
# pvcreate /dev/rdsk/c12t0d3
Physical volume "/dev/rdsk/c12t0d3" has been successfully created
# vgcreate -e 8192000 -s 16 /dev/vgarchlog /dev/rdsk/c12t0d3
no divice file exist in /dev.

can someone help me please.
9 REPLIES 9
Johnson Punniyalingam
Honored Contributor

Re: Problem Creating volume for 500GB on HP-UX

-e max_pe Set the maximum number of physical extents
that can be allocated from any of the
physical volumes in the volume group. The
default value for max_pe is 1016. However,
if the size of any physical volume exceeds
1016 times the pe_size, the default value for
max_pe is adjusted to match the physical
volume size. The maximum number of physical
extents can be a value in the range 1 to
65535.
Problems are common to all, but attitude makes the difference
Ganesan R
Honored Contributor
Solution

Re: Problem Creating volume for 500GB on HP-UX

Hi,

Confirm the minor number is unique. 0x010000 should not be used by any other VG.

#ll /dev/*/group -> will list the existing group files.

Other one is maximum PE per PV. It should be maximum of 65535. Also specify block device file for the disk.

#vgcreate -s 65535 -e 16 /dev/vgarchlog /dev/dsk/c12t0d3

Best wishes,

Ganesh.
rajv
Advisor

Re: Problem Creating volume for 500GB on HP-UX

Hi

As per Ganesh pls check ur minor number.


#mkdir /dev/vgarchlog

# ll /dev/*/group --> It lists how many vg's in your server

# mknod dev/vgarchlog/group c 64 0x010000 Give the new minor no

Ex:
0x100000 if this is not exists inside /dev/*/group


#vgcreate -s 32 /dev/vgarchlog /dev/rdsk/c12t0d3

This is per PE size is 32

after you can create LV as per your requirement.

-e for max_pe. This maximum value is 65535.

Regards
-VRS-
rajv
Advisor

Re: Problem Creating volume for 500GB on HP-UX

If you want u can change PE size.

Ex:

Max Pe is 65535
Per PE is 64

U can able create 65535*64 = 4194240


Regards
-VRS-
Mohamed Saleem_1
Occasional Advisor

Re: Problem Creating volume for 500GB on HP-UX

The command you are using seems to be wrong..

try this..

vgcreate -e 8192000 -s 16 /dev/vgarchlog /dev/dsk/c12t0d3
LynnG
Advisor

Re: Problem Creating volume for 500GB on HP-UX

Agreed, seems you tried to tell it to go to the /dev/rdsk, when it should actually be the /dev/dsk

vgcreate -e 8192000 -s 16 /dev/vgarchlog /dev/dsk/c12t0d3

I have always created mine with -e 2157 and also put a sizing on the number of max PV allowed in the volume group, because I find if you take the default (16) client will always need more. My command would look something like this, but also understand those settings can be adjusted to whatever YOU need:

vgcreate -e 2157 -p 99 -s 16 /dev/vgarchlog /dev/dsk/c12t0d3
freddy_21
Respected Contributor

Re: Problem Creating volume for 500GB on HP-UX

hi..

I read your step:
# mkdir /dev/vgarchlog -->OK
# mknod /dev/vgarchlog/group c 64 0x010000 --> OK
# pvcreate /dev/rdsk/c12t0d3 --> ok but you can use -f option ( pvcreate -f /dev/rdsk/c12t0d3)
# vgcreate -e 8192000 -s 16 /dev/vgarchlog /dev/rdsk/c12t0d3 --> not ok because:
1. for create volume group must use physical disk ( /dev/dsk/cxtydz) not raw disk ( /dev/rdsk/cxtydz)
2. for create 500 GB you can used option -s 8 . -e option for create max pe in pv ( max 65535)
for pe size = 4 MB it can accomodate disk eq. 4 MB * 65535 = 250 GB.
for pe size = 8 MB it can accomodate disk eq. 8 MB * 65535 = 500 GB.
for pe size = 16 MB it can accomodate disk eq. 16 MB * 65535 = 1 TB.

so if your disk 500 GB please used pe size 8 MB or more ( for other purpose, need more disk ex 700 GB please used 16).

Max pe per pv only 65535 cant more than your need ( 8192000 ).

I hope it can help you.


Thanks
Freddy
Zulfiqar Hanif
Advisor

Re: Problem Creating volume for 500GB on HP-UX

i checked the group, which i was using the same which is existing before.
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 May 18 2007 /dev/vg00/group
crw------- 1 root sys 64 0x010000 Nov 18 13:49 /dev/vgarchlog/group
crw-rw-rw- 1 root sys 64 0x080000 Aug 8 2007 /dev/vgora/group
crw------- 1 root sys 64 0x010000 Nov 6 10:42 /dev/vgrmanbkp/group

i created new one.
1. # mknod /dev/vgarchlog/group c 64 0x020000
2. # pvcreate -f /dev/rdsk/c12t0d3
3. # vgcreate -e 65535 -s 16 /dev/vgarchlog /dev/dsk/c12t0d3
Volume group "/dev/vgarchlog" has been successfully created.


thanks to all.
it works.
Zulfiqar Hanif
Advisor

Re: Problem Creating volume for 500GB on HP-UX

# mkdir /dev/vgarchlog
# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 May 18 2007 /dev/vg00/group
crw-rw-rw- 1 root sys 64 0x080000 Aug 8 2007 /dev/vgora/group
crw------- 1 root sys 64 0x010000 Nov 6 10:42 /dev/vgrmanbkp/group
#

use diffrent minor no for the volume group.

# mknod /dev/vgarchlog/group c 64 0x020000 --> OK

# ll /dev/*/group
crw-r----- 1 root sys 64 0x000000 May 18 2007 /dev/vg00/group
crw------- 1 root sys 64 0x020000 Nov 18 13:49 /dev/vgarchlog/group
crw-rw-rw- 1 root sys 64 0x080000 Aug 8 2007 /dev/vgora/group
crw------- 1 root sys 64 0x010000 Nov 6 10:42 /dev/vgrmanbkp/group

# pvcreate -f /dev/rdsk/c12t0d3
Physical volume "/dev/rdsk/c12t0d3" has been successfully created.

# vgcreate -e 65535 -s 16 /dev/vgarchlog /dev/dsk/c12t0d3
Volume group "/dev/vgarchlog" has been successfully created.
Volume Group configuration for /dev/vgarchlog has been saved in /etc/lvmconf/vga
rchlog.conf