cancel
Showing results for 
Search instead for 
Did you mean: 

VG extended

Eric Jacklin
Regular Advisor

VG extended

Hi

Here is the vgdisplay output from my system.we have a clarion and they have added some disk to existing disk through mata LUN and it is showing at storage side.but i can not see the newly added space.

i would like to exted my existing vg by 400GB can i do that ? and how ?

OS HPUX 11.11 without online jfs.




# vgdisplay -v vgdb
--- Volume groups ---
VG Name /dev/vgdb
VG Write Access read/write
VG Status available
Max LV 8
Cur LV 1
Open LV 1
Max PV 255
Cur PV 4
Act PV 4
Max PE per PV 25000
VGDA 8
PE Size (Mbytes) 64
Total PE 9592
Alloc PE 9340
Free PE 252
Total PVG 0
Total Spare PVs 0
Total Spare PVs in use 0
10 REPLIES
Jeeshan
Honored Contributor

Re: VG extended

you have to extend the VG to use the assigned LUN space. follow the procedure

1.pvcreate â f /dev/rdsk/c#t#d#
2.vgextend /dev/ /dev/dsk/c#t#d# /dev/dsk/c#t#d#
3.lvextend -L /dev/vg_name/lv_name
a warrior never quits
Taifur
Respected Contributor

Re: VG extended

Hi Jacklin,
Follow the below steps,

#pvcreate -f /dev/rdsk/cxtxdx
#pvcreate -f /dev/rdsk/cytydy
#vgchange -a y /dev/vgdb
#vgextend /dev/vgdv /dev/dsk/cxtxdx /dev/dsk/cytydy
#strings /etc/lvmtab (for checking lvmtab)

Create a logical volume of size 409600 MB in volume group /dev/vgdb:

lvcreate -L /dev/vgdb

#lvcreate -L -n /dev/vgdb
#mkdir /mounpoint (Create mountpoint--if required))
#mount /dev/vgdb/lvol /mountpoint


Check below links,
http://docs.hp.com/en/B2355-90129/vgextend.1M.html

http://docs.hp.com/en/B2355-90129/lvcreate.1M.html

If helps, pls assign point.

Rgds//
Taifur


Nido
Trusted Contributor

Re: VG extended

Hello Eric,

If I understand it correctly, you are not able to see the newly assigned LUNs on the Unix host. Please ask your storage team to provide you the LUN details and ask them if they've done zoning.

run #insf -e
and see if you can find the newly assigned LUNs runing `ioscan -fnC disk` , check the difference against the old ioscan output(If you've have).
Follow the instructions provided above.

Thanks,

" Let Villagers Be Happy!! "
yulianto piyut
Valued Contributor

Re: VG extended

hi eric,

first, check to your storage admin, ask to them whether the new lun is zoned to your server or not ? if yes, scan your new lun with "ioscan -nfCdisk". If the new lun already presented, do these:
a. insf -e or insf -H hw_path_new_lun",
b. pvcreate /dev/rdsk/cxtxdx (your new path lun)
c. vgextend /dev/vgdb /dev/dsk/cxtxdx
d. to extend your lvol:
lvextend -L (new size) /dev/vgdb/lvol?


Sajjad Sahir
Honored Contributor

Re: VG extended

Dear Friend


once u presented disk from storage to hp-ux box u have to create device file
insf -C disk
then use ioscan -funC disk
once u got the lun number use the following
commands.
please don't try to use pvcreate -f command
if this lun is already use it will destroyed all data belongs to that lun.
if u are using pvcreate only it will ask
this lun is already used or not
#pvcreate /dev/rdsk/c#t#d#
#vgchange -a y /dev/vgdb
#vgextend /dev/vgdb /dev/dsk/c#t#d#


thanks and regards

Sajjad sahir
Ganesan R
Honored Contributor

Re: VG extended

Hi,

>>>we have a clarion and they have added some disk to existing disk through mata LUN and it is showing at storage side<<<

Not clear enough. Have they increased the existing lun size or created new lun and assigned to the host?
Best wishes,

Ganesh.
Bill Hassell
Honored Contributor

Re: VG extended

When a new LUN is presented to your system, you must run two commands before doing any LVM work:

ioscan -fCdisk
insf -Cdisk

Now you will have new device files in /dev/dsk that you can prepare for LVM use. To find the new LUN(s), use this command:

ll -rt /dev/dsk

The new disk LUNs will be at the bottom of the list with today's timestamp on them. Use pvcreate to add the serial number to the /dev/rdsk device file. Now you can use vgextend.

If no new device files are shown, the storage(or SAN switch) has not been configured correctly to connect to your server.


Bill Hassell, sysadmin
avizen9
Esteemed Contributor

Re: VG extended

Hello Eric,
first of all you need to verify the new created LUN is detected in this server or not.

type ioscan -fnC disk will show you all details information for disk, below is output for one of my server which having few netapp luns, Lun must be claim status, once you confirm lun has detected then can create Physical volume,Volume group and then logical volume.

let us knwo how it goes,
if you are not really sure please store ioscan result in txt file and attached here, you can do it as below command.

ioscan -fnC disk > scan.txt


# ioscan -fnC disk
Class I H/W Path Driver S/W State H/W Type Description
===========================================================================
disk 0 0/0/1/1.0.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c1t0d0 /dev/rdsk/c1t0d0
disk 1 0/0/2/0.0.0 sdisk CLAIMED DEVICE SEAGATE ST336704LC
/dev/dsk/c2t0d0 /dev/rdsk/c2t0d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 6x/32x
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 5 0/2/0/0.8.0.255.0.0.0 sdisk CLAIMED DEVICE SEAGATE ST318203FC
/dev/dsk/c12t0d0 /dev/rdsk/c12t0d0
disk 9 0/2/0/0.8.0.255.0.1.0 sdisk CLAIMED DEVICE SEAGATE ST318304FC
/dev/dsk/c12t1d0 /dev/rdsk/c12t1d0
disk 15 0/2/0/0.8.0.255.0.2.0 sdisk CLAIMED DEVICE SEAGATE ST318203FC
/dev/dsk/c12t2d0 /dev/rdsk/c12t2d0
disk 19 0/2/0/0.8.0.255.0.3.0 sdisk CLAIMED DEVICE SEAGATE ST318203FC
/dev/dsk/c12t3d0 /dev/rdsk/c12t3d0
disk 23 0/2/0/0.8.0.255.0.4.0 sdisk CLAIMED DEVICE SEAGATE ST318304FC
/dev/dsk/c12t4d0 /dev/rdsk/c12t4d0

disk 136 255/0/12.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c34t0d0 /dev/rdsk/c34t0d0
disk 142 255/0/12.0.0.1 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c34t0d1 /dev/rdsk/c34t0d1
disk 148 255/0/12.0.0.2 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c34t0d2 /dev/rdsk/c34t0d2
disk 154 255/0/12.0.0.3 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c34t0d3 /dev/rdsk/c34t0d3
disk 123 255/0/15.0.0.0 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c37t0d0 /dev/rdsk/c37t0d0
disk 167 255/0/15.0.0.1 sdisk CLAIMED DEVICE NETAPP LUN
/dev/dsk/c37t0d1 /dev/rdsk/c37t0d1
vaishakh k
Advisor

Re: VG extended

Dear Eric,

Better you discuss with your storage admin about your zoning and LUN Details. Confirm that wheather they are increasing the existing lun or they create a new lun.

If they created new lun Type #ll -rt /dev/dsk
it will list the new lun.In the Bottm lines.

After getting new lun then remaining steps are easy which explained below,

a. insf -e or insf -H hw_path_new_lun", (Creating Device file)

b. pvcreate /dev/rdsk/cxtxdx (your new path lun)

Don't use -f option it will forcefully create "pv" that cause curruption.

c.vgchange -a y /dev/vgdb

d. vgextend /dev/vgdb /dev/dsk/cvtxdz

e. Then extend your lvol with size as you want(Here 400gb):

lvextend -L (new size) /dev/vgdb/lvol


Hope this will help you..
Suraj K Sankari
Honored Contributor

Re: VG extended

Hi,

As per your question, you need to extend your VG by 400GB

Did you see you newly added LUN ?
Have you extended you VG?

Suraj