Operating System - HP-UX
1825810 Members
2467 Online
109688 Solutions
New Discussion

Create volume groupe from internal disk

 
SOLVED
Go to solution
Mousa55
Super Advisor

Create volume groupe from internal disk

Hi
i need to create a new volume group from two internal disk ( /dev/dsk/c0t6d0 and c2t6d0 ) in my server ( I have 45GB free size ) but I don't know what is the disk I can used and if this operation effect on the data on my disk, because this OS disk

Thanks & kind Regards
23 REPLIES 23
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

Hi,

The question is not clear.
Do you have two disks only.

Pls give the output of
ioscan -fnCdisk
vgdisplay -v|grep "PV N"
vgdisplay -v|grep "VG N"
strings /etc/lvmtab|grep dsk
ll /dev/*/group

Regards.
Mousa55
Super Advisor

Re: Create volume groupe from internal disk

Hi
thanks for replay, you can find the attachment file
Jeeshan
Honored Contributor

Re: Create volume groupe from internal disk

Hi

you cannot create VG in existing disk which are part of another VG.
you can create lvol.
a warrior never quits
Rasheed Tamton
Honored Contributor
Solution

Re: Create volume groupe from internal disk

From the attachement, I can see that you already are using the internal disks (/dev/dsk/c2t6d0 & /dev/dsk/c0t6d0). So you cannot create another VG on that disks.

or do you want to create another LV (logical vol) on the existing VG - vg00.

I can see another two internal disks
/dev/dsk/c6t0d0
/dev/dsk/c6t2d0

Please give the output of:

vgdisplay -v|grep "PV N"
vgdisplay -v|grep "VG N"
Jeeshan
Honored Contributor

Re: Create volume groupe from internal disk

then verify that the disk is not part of any vg.

#pvdisplay -v /dev/dsk/c0t6d0

#pvdisplay -v /dev/dsk/c2t6d0

is its say this is not a part of any vg, then you can proceed creation vg.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: Create volume groupe from internal disk

Dear Nejad

u have to give out put of volume groups
just vgdisplay
please send

thanks and regards

Sajjad Sahir
Sajjad Sahir
Honored Contributor

Re: Create volume groupe from internal disk

vgdisplay -v out put we need ioscan u already send so we need to know vgdisplay -v out put also
Mousa55
Super Advisor

Re: Create volume groupe from internal disk

Hi
thanks for all replay

#vgdisplay -v|grep "PV N"
PV Name /dev/dsk/c2t6d0
PV Name /dev/dsk/c0t6d0
#vgdisplay -v|grep "VG N"
VG Name /dev/vg00

root@ruxdb02 > vgdisplay -v
--- Volume groups ---
VG Name /dev/vg00
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 8
Open LV 8
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 4384
VGDA 4
PE Size (Mbytes) 16
Total PE 8748
Alloc PE 5888
Free PE 2860
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0

--- Logical volumes ---
LV Name /dev/vg00/lvol1
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 64
Used PV 2

LV Name /dev/vg00/lvol2
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 2048
Used PV 2

LV Name /dev/vg00/lvol3
LV Status available/syncd
LV Size (Mbytes) 1024
Current LE 64
Allocated PE 128
Used PV 2

LV Name /dev/vg00/lvol4
LV Status available/syncd
LV Size (Mbytes) 512
Current LE 32
Allocated PE 64
Used PV 2

LV Name /dev/vg00/lvol5
LV Status available/syncd
LV Size (Mbytes) 6144
Current LE 384
Allocated PE 768
Used PV 2

LV Name /dev/vg00/lvol6
LV Status available/syncd
LV Size (Mbytes) 2048
Current LE 128
Allocated PE 256
Used PV 2

LV Name /dev/vg00/lvol7
LV Status available/syncd
LV Size (Mbytes) 4096
Current LE 256
Allocated PE 512
Used PV 2

LV Name /dev/vg00/lvol8
LV Status available/syncd
LV Size (Mbytes) 16384
Current LE 1024
Allocated PE 2048
Used PV 2


--- Physical volumes ---
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 4374
Free PE 1430
Autoswitch On

PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 1430
Autoswitch On
Sajjad Sahir
Honored Contributor

Re: Create volume groupe from internal disk


Dear Nejad

steps for creating volume groups

1. first u have to create physical volume
by using pvcreate command
1.pvcreate /dev/rdsk/c#t#d#
2.pvcreate /dev/rdsk/c#t#d#
2.after adding physical volumes on all disks u can move to the process of volume group creation
3.create a directory in the dev with the group name if u volume group is vg04 then directory will be /dev/vg04
4.create a group special file in this directory with a major 64 and minor number 0x040000
5. create a group special file by uisng mknod
mknod /dev/vg04/group c 64 0x040000
then vgcreate /dev/vg04 /dev/dsk/C#t#d#

ok


Jeeshan
Honored Contributor

Re: Create volume groupe from internal disk

>>--- Physical volumes ---
PV Name /dev/dsk/c2t6d0
PV Status available
Total PE 4374
Free PE 1430
Autoswitch On

PV Name /dev/dsk/c0t6d0
PV Status available
Total PE 4374
Free PE 1430
Autoswitch On

see your mentionded disks are already part of an existing vg. so no way to create another vg with this disks.

you need another 2 disks for vg.
a warrior never quits
Sajjad Sahir
Honored Contributor

Re: Create volume groupe from internal disk

Dear Nejad

this disk already using

thanks and regards

Sajjad
Steven E. Protter
Exalted Contributor

Re: Create volume groupe from internal disk

Shalom,

LVM on HP-UX does not permit the creation of more than one volume group on a single physical disk.

This limitation does not exist in Linux LVM.

Want a new volume group, need a new disk.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

As the output confirms

#vgdisplay -v|grep "PV N"
PV Name /dev/dsk/c2t6d0
PV Name /dev/dsk/c0t6d0

You cannot create a VG on those disks. If you want another LV, you can create a new LV on the vg00.
Sajjad Sahir
Honored Contributor

Re: Create volume groupe from internal disk

Dear Nejad

u got my point Nejad it is already using ok, please don't touch it
u can choose another two physical disk for creating volume group and do the steps what i have given it is step by step procedure

thanks and regards

Sajjad Sahir
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

You have 44GB free space left on the vg00 and if you want you can create another lvol [lvol9 in your case]. But no way for a new VG (vg01, etc.) on the same disks.

Rgds.
Mousa55
Super Advisor

Re: Create volume groupe from internal disk

Hi
i am see two different internal disk with ioscan -fnC disk command.
/dev/dsk/c2t6d0 /dev/rdsk/c2t6d0
disk 3 0/0/6/1/0.0.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
/dev/dsk/c6t0d0 /dev/rdsk/c6t0d0
disk 4 0/0/6/1/0.2.0 sdisk CLAIMED DEVICE HP 73.4GST373454LC
but what is the difference between HP 73.4GST373454LC and another disk "HP 73.4GMAX3073NC"
and i am using the
vgdisplay -v /dev/dsk/c6t2d0
but i am see this message
" root@ruxdb02 > vgdisplay -v /dev/dsk/c6t2d0
vgdisplay: Volume group "/dev/dsk/c6t2d0" does not exist in the "/etc/lvmtab" file.
vgdisplay: Cannot display volume group "/dev/dsk/c6t2d0". " this meaning the disk is not used
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

vgdisplay should be used on the vg path

if you want to use it on the pv_path use,

pvdisplay /dev/dsk/c0t6d0

vgdisplay vg00
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

Hi Nejad,

Please read the posts carefully. I have already posted that you have two extra internal disks which are not used.

I can see another two internal disks
/dev/dsk/c6t0d0
/dev/dsk/c6t2d0

73.4GMAX3073NC & HP 73.4GST373454LC are disk models. You can use diskinfo command on them.

diskinfo /dev/rdsk/c6t0d0
diskinfo /dev/rdsk/c6t2d0

to see the model and the size.

Rgds.
Mousa55
Super Advisor

Re: Create volume groupe from internal disk

Hi
the same message
# pvdisplay /dev/dsk/c6t0d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c6t0d0" belongs.
pvdisplay: Cannot display physical volume "/dev/dsk/c6t0d0"
thanks
Jeeshan
Honored Contributor

Re: Create volume groupe from internal disk

fine!!!

then you can create vg with these disks.
a warrior never quits
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

This message means that the disk is not included in any of the existing volume groups (not a member of any vol group). So, in your case, it is correct.

rgds.
Sajjad Sahir
Honored Contributor

Re: Create volume groupe from internal disk

Dear Nejad

# pvdisplay /dev/dsk/c6t0d0
pvdisplay: Couldn't find the volume group to which
physical volume "/dev/dsk/c6t0d0" belongs.
means it is not using any volume group
so follow the steps what i have posted before and remove #with integers
ok

thanks and regards

Sajjad
Rasheed Tamton
Honored Contributor

Re: Create volume groupe from internal disk

If you want to create a vol group, using the disk /dev/dsk/c6t0d0 follow the below steps:

mkdir /dev/vg01
cd /dev/vg01
mknod group c 64 0x010000
pvcreate /dev/rdsk/c6t0d0
vgcreate -s 16 /dev/vg01 /dev/dsk/c6t0d0
vgchange -a y /dev/vg06
lvcreate -L 10000 -n lvol1 /dev/vg01
(here you are creating a LV with the size of 10000MB - you can change the size as per your requirement)

newfs -F vxfs /dev/vg01/rlvol1
mkdir /mountpoint (dir name)
mount -F vxfs /dev/vg01/lvol1 /mountpoint (dir name)