- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Need to add space to an existing volume
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:01 AM
01-23-2006 03:01 AM
I've read through some of the forum entries but still a little hazy on some things. What I have done so far is:
Created the LUN on our VA7110 and can see the disk with an ioscan (has alternate link)
Created the device file using insf -e
Performed pvcreate -f /dev/rdsk/c35t1d1
Performed pvcreate -f /dev/rdsk/c33t1d1
I've also done a vgdisplay -v /dev/vg_kana:
VG Name /dev/vg_kana
VG Write Access read/write
VG Status available
Max LV 255
Cur LV 1
Open LV 1
Max PV 16
Cur PV 2
Act PV 2
Max PE per PV 12799
VGDA 4
PE Size (Mbytes) 4
Total PE 16636
Alloc PE 16636
Free PE 0
Total PVG 1
Total Spare PVs 0
Total Spare PVs in use 0
--- Logical volumes ---
LV Name /dev/vg_kana/fs_kana
LV Status available/syncd
LV Size (Mbytes) 66544
Current LE 16636
Allocated PE 16636
Used PV 2
--- Physical volumes ---
PV Name /dev/dsk/c6t0d1
PV Name /dev/dsk/c35t0d1 Alternate Link
PV Name /dev/dsk/c26t0d1 Alternate Link
PV Name /dev/dsk/c33t0d1 Alternate Link
PV Status available
Total PE 12797
Free PE 0
Autoswitch On
PV Name /dev/dsk/c26t0d6
PV Name /dev/dsk/c35t0d6 Alternate Link
PV Status available
Total PE 3839
Free PE 0
Autoswitch On
--- Physical volume groups ---
PVG Name pvg01
PV Name /dev/dsk/c6t0d1
PV Name /dev/dsk/c35t0d1
PV Name /dev/dsk/c26t0d1
PV Name /dev/dsk/c33t0d1
I need to know where I go from here.
Thank you in advance.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:09 AM
01-23-2006 03:09 AM
Re: Need to add space to an existing volume
if you are a complete novice, I would recommend using sam and then inspecting the sam.log to trace what was done!
Seems the safest way of learning about HPUX.
man vgextend
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:15 AM
01-23-2006 03:15 AM
Re: Need to add space to an existing volume
You next need to extend the VG, using vgextend. After that, you'll want to extend one or more logical volumes with lvextend and finally the file systems occupying those logical volumes with extendfs.
See the associated man pages for details.
Pete
Pete
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:16 AM
01-23-2006 03:16 AM
Re: Need to add space to an existing volume
If you have multiple paths pvcreate is only required on the Primary .
Now you can extend the VG by vgextend .
vgextend /dev/vg_kana /dev/dsk/c?t?d disk2 disk 3 etc ...
disk2 , disk3 are the alternate links to the same PV , these ctd numbers you can find out using ioscan -Fn .
Do vgdisplay /dev/vg_kana
Check for the free PEs .Multiply free PE*PE size to calculate total free size in MB.
Add Logical volume using ,
lvcreate -C y -r n -n lvol_name -L size_in_MB /dev/vg_kana
create file system using
nesfs -F vxfs -o largefiles /dev/vg_kana/rlvol_name.
Make the mount point
mkdir /mount_point
Mount file system
Mount /dev/vg_kana/lvol_name /mount_point
Set the appropriate permission for the FS by
chown user:group /mount_point
Add the entry in /etc/fstab for mounting these file system during system reboot.
Regards,
bl.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:17 AM
01-23-2006 03:17 AM
Re: Need to add space to an existing volume
create file system using
newfs -F vxfs -o largefiles /dev/vg_kana/rlvol_name.
thx.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:20 AM
01-23-2006 03:20 AM
Re: Need to add space to an existing volume
First add these disks to the VG by
# vgextend dev/vg_kana /dev/dsk/c35t1d1 /dev/dsk/c33t1d1
then extend your LV. Decide how much additional space u need and add that to your existing 66544 MB .
# lvextend -L (your new size) /dev/vg_kana/fs_kana
# fsadm -F vxfs -b (your new size)m /FSmountpoint.
Good luck.
James
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:29 AM
01-23-2006 03:29 AM
Re: Need to add space to an existing volume
In the original post the vgdisplay shows Free PE=0
Meaning no physical extents are available, correct?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:30 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 03:34 AM
01-23-2006 03:34 AM
Re: Need to add space to an existing volume
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 04:18 AM
01-23-2006 04:18 AM
Re: Need to add space to an existing volume
You could gain some background and perspective with chapter-6 of the "Managing Systems and Workgroups" guide:
http://docs.hp.com/en/B2355-90950/B2355-90950.pdf
A quick read might help.
Regards!
...JRF...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-23-2006 05:13 AM
01-23-2006 05:13 AM
Re: Need to add space to an existing volume
vgextend vg_kana /dev/dsk/c?t? /dev/dsk/c?t?d?