Unix/Linux Go Back    


HP-UX HP-UX (Hewlett Packard UniX) is Hewlett-Packard's proprietary implementation of the Unix operating system, based on System V.

Extending file system in HP-UX

HP-UX


Closed    
 
Thread Tools Search this Thread Display Modes
    #1  
Old Unix and Linux 09-07-2014   -   Original Discussion by vamshigvk475
vamshigvk475's Unix or Linux Image
vamshigvk475 vamshigvk475 is offline
Registered User
 
Join Date: Jun 2012
Last Activity: 21 March 2016, 8:32 AM EDT
Location: BANGALORE, INDIA.
Posts: 42
Thanks: 4
Thanked 2 Times in 2 Posts
HP Extending file system in HP-UX

Hi Guys,

Hope everyone is doing great. We've few servers on HP-UX. I'm not sure of extending file systems in HP-UX. Please help me. It could be helpful If you provide the commmand basing on the details below. Thanks in Advance.



Code:
# hostname
*******
# date
Sun Sep  7 14:39:59 EDT 2014
# uname -a
HP-UX ***** B.11.11 U 9000/800 2661817206 unlimited-user license
# bdf /pdscustom
Filesystem          kbytes    used   avail %used Mounted on
/dev/vg01/pdscustom
                   13320192 13129460  184834   99% /pdscustom
#/usr/sbin/swlist -l product | grep -i OnlineJFS
  OnlineJFS01           5.0.31.7       Online features of the VxFS File System

# vgdisplay
--- Volume groups ---
VG Name                     /dev/vg00
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      10
Open LV                     10
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                    2758
Free PE                     5990
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

VG Name                     /dev/backupvg
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      1
Open LV                     1
Max PV                      64
Cur PV                      8
Act PV                      8
Max PE per PV               6399
VGDA                        16
PE Size (Mbytes)            16
Total PE                    51184
Alloc PE                    51184
Free PE                     0
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

VG Name                     /dev/vg01
VG Write Access             read/write
VG Status                   available
Max LV                      255
Cur LV                      6
Open LV                     6
Max PV                      64
Cur PV                      10
Act PV                      10
Max PE per PV               6399
VGDA                        20
PE Size (Mbytes)            16
Total PE                    63980
Alloc PE                    58350
Free PE                     5630
Total PVG                   0
Total Spare PVs             0
Total Spare PVs in use      0

Moderator's Comments:
Extending file system in HP-UX Please use code tags next time for your code and data, thanks

Last edited by vbe; 09-07-2014 at 04:17 PM..
Sponsored Links
    #2  
Old Unix and Linux 09-07-2014   -   Original Discussion by vamshigvk475
vbe's Unix or Linux Image
vbe vbe is offline Forum Staff  
Moderator
 
Join Date: Sep 2005
Last Activity: 21 June 2018, 2:58 AM EDT
Location: Switzerland - GE
Posts: 6,544
Thanks: 308
Thanked 563 Times in 525 Posts
You seem to want to extend /pdscustom… There are chances you may not that easily because too full : In order to be able to extend JFS need space to reorganize itself… if too full it can fail… I never wait for an JSF to be at 99%…
to extend you use fsadm command but Im in my bed with my laptop and no doc nearby…
The way I do it would be to unfragment/reorg the FS before then use fsadm
It can be done via SAM
My concern is the number of disks in vg01, since you have not given a full layout of the VG, we have not information of how the VG is organized and so we can't be more precise with the options/arguments to use for we know nothing more ( volume belongs to a PVG? is it striped? etc…)
Sponsored Links
    #3  
Old Unix and Linux 09-08-2014   -   Original Discussion by vamshigvk475
Peasant's Unix or Linux Image
Peasant Peasant is offline Forum Advisor  
Registered User
 
Join Date: Mar 2011
Last Activity: 21 June 2018, 4:01 PM EDT
Posts: 1,189
Thanks: 32
Thanked 363 Times in 313 Posts
Looks like in your VG01 group there is free PE to allocate (5630 free PE)

So you might want to do :


Code:
lvdisplay /dev/vg01/pdscustom

# please note the Allocated PE value.


Code:
lvextend -l (old Allocated PE + added PE from volume group VG01 [total number of PE])  /dev/vg01/pdscustom

Since your volume group PE size is 16 MB you will need to calculate the total number of kbytes to extend like (PE SIZE - in your case 16 MB x Total number of LE for the specifed lvol x 1024)

Finally extend the filesystem


Code:
fsadm -F vxfs -b  (PE SIZE - in your case 16 MB x Total number of LE for the specifed lvol x 1024) /pdscustom

Be sure the have at least some space on /pdscustom or extending will fail (but will not cause any damage to your data).
Sponsored Links
Closed

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Linux More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
LVM- extending PV kactech Red Hat 5 09-12-2012 03:50 AM
Extending filesystems honeym210 AIX 2 08-07-2008 09:30 AM
extending /var in solaris 10 ajays Solaris 2 06-18-2008 09:35 AM
extending netfilter...plz help Rakesh Ranjan Programming 1 02-20-2006 01:30 AM
Help in extending netfilter Trusted Penguin Programming 0 09-13-2005 11:18 AM



All times are GMT -4. The time now is 09:59 PM.