Operating System - HP-UX
1831175 Members
2874 Online
110021 Solutions
New Discussion

Help adding two new disks into an existing volume group

 
Jonathan Grymes
Frequent Advisor

Help adding two new disks into an existing volume group

HP-UX 2660 Itanium running 11.23.
We have onlineJFS.
I need to add two new disks into an existing volume group (vg01), extend the logical volume and file system to use the size..

Current:
#bdf
/dev/vg01/gexdata01 163840000 141899412 21940588 87% /h/data

Current logical volume:
gexdat01 vg01 LVM VxFS 160000 0 /h/data

Current disk:
0/1/1/0.0.0.0.0 LVM vg01 286102 DG0300

New Disks:
0/1/1/0.0.0.3.0 Unused 286102 DG0300
0/1/1/0.0.0.4.0 Unused 286102 DG0300
Can you provide steps to accomplish this?

8 REPLIES 8
Mel Burslan
Honored Contributor

Re: Help adding two new disks into an existing volume group

put disks in
ioscan -fnC disk
insf -e
find the two new disks device files, i.e., /dev/rdsk/cXtXdX
pvcreate /dev/rdsk/cXtXdX (one for each disk, make sure you are using rdsk -raw device)
vgextend /dev/dsk/cXtXdX (one for each disk, make sure you are using dsk -block device)

that's it
________________________________
UNIX because I majored in cryptology...
Pete Randall
Outstanding Contributor

Re: Help adding two new disks into an existing volume group

and

lvextend and extendfs (for the logical volume and file system).


Pete

Pete
Doug O'Leary
Honored Contributor

Re: Help adding two new disks into an existing volume group

Hey;

Actually, assuming they have online jfs as stated, it should be

fsadm -F vxfs -b $((new_size_in_megs))m ${mp}

not extendfs... My understanding is that requires the filesystem to be unmounted.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Uday_S_Ankolekar
Honored Contributor

Re: Help adding two new disks into an existing volume group

Use lvextend and fsadm as mentioned above, no need to run extendfs.

-USA
Good Luck..
Hiren N Dave
Valued Contributor

Re: Help adding two new disks into an existing volume group

# ioscan -fnkC disk
Note /dev/rdsk/cXtXdX for both new disk
# pvcreate /dev/rdsk/cXtXdX
Repeat for both disk
# vgextend /dev/dsk/cXtXdX /dev/vg01
Repeat for both disk
# vgdisplay -v /dev/vg01 --check assigned PVs
# lvextend /dev/vg01/gexdat01 /dev/dsk/cXtXdX
Repeat for both disk
# fsadm -F vxfs -b
i.e., # fsadm -F vxfs -b 2560000 /data --It will extend file system and total size will be 2500MB
# bdf --check total size
I am an HP Employee

Was this post useful? - You may click the KUDOS! star to say thank you.
Vivek_Pendse
Valued Contributor

Re: Help adding two new disks into an existing volume group

Hi,

Make sure that, the new disks which are extending on VG will have the same size of existing (old) disks of VG. Else, you need to modify the extents/disk using vgmodify.
pvcreate, vgextend, lvextend & fsadm are the commands.

Thanks,
Vivek
Hakki Aydin Ucar
Honored Contributor

Re: Help adding two new disks into an existing volume group

Additionally;
sometimes, you need to wait for awhile for system find the new disks after insf -e ..
abir chowdhury
Advisor

Re: Help adding two new disks into an existing volume group

#ioscan -funC disk
#insf -e
find the device file for the hard disk's of the following hardware path (0/1/1/0.0.0.3.0,0/1/1/0.0.0.4.0)
#pvcreate -f /dev/rdsk/cxtxdx (new hdd device file)
#pvcreate -f /dev/rdsk/cytydy (other hdd device file)
#vgextend vg01 /dev/dsk/cxtxdo /dev/dsk/cytydy
#lvextend -L (total lvm size) /dev/vg01/gexdata01
#fsadm -F vxfs -b new size in mb x 1024 /mount point
#bdf