Extending file system in HP-UX


 
Thread Tools Search this Thread
Operating Systems HP-UX Extending file system in HP-UX
# 1  
Old 09-07-2014
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:
Mod Comment Please use code tags next time for your code and data, thanks

Last edited by vbe; 09-07-2014 at 05:17 PM..
# 2  
Old 09-07-2014
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…)
# 3  
Old 09-08-2014
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).
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Error while extending logicalvolume

Hello all, I tried to extend my lvm today, found the following error, lvextend -L +10G /dev/vg/a Extending logical volume a to 60.21 GB device-mapper: reload ioctl failed: Invalid argument Failed to suspend a Any help (7 Replies)
Discussion started by: gull05
7 Replies

2. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (8 Replies)
Discussion started by: Mukul Sharma
8 Replies

3. Red Hat

Extending swap space

I've to install Oracle binaries (I'm oracle DBA) and for that I've extend swap space in my home computer. My situation is like this. # parted -s /dev/sda print free Model: ATA VBOX HARDDISK (scsi) Disk /dev/sda: 38.7GB Sector size (logical/physical): 512B/512B Partition Table: msdos ... (1 Reply)
Discussion started by: Mukul Sharma
1 Replies

4. Solaris

Extending the / file system (SVM)

Hi, I currently have a Solaris 10 server with the / root file system using SVM. Here is the information of the current setup. Filesystem size used avail capacity Mounted on /dev/md/dsk/d0 3.0G 635M 2.3G 22% / bash-3.2# metastat d0 d0: Mirror ... (3 Replies)
Discussion started by: MR.bean
3 Replies

5. Red Hat

LVM- extending PV

Hi All, I have one VG on single PV /dev/sda3 with two LV Physically after /dev/sda3 i have 40G unallocated I want to extend /dev/sda3 + 40G and extend its VG, then extend last LV in VG to take new free space What is correct procedure? // I cannot create second PV after /dev/sda3 because of... (5 Replies)
Discussion started by: kactech
5 Replies

6. AIX

Extending filesystems

Hi to all i want to increase the /usr size. but, it is mirrored on hdisk0 and hdisk1. i know that chfs will work, but i am not confident about mirroring. can anyone tell me the procedure. thanks (2 Replies)
Discussion started by: honeym210
2 Replies

7. Solaris

extending /var in solaris 10

Hi all, i need to extend /var file system on my solaris 10 box /var is part of rootdg current size 2GB Required size 6GB layout mirror veritas 4.1 solaris 5.10 pls let me know the steps and the procedure to follow. regards Ajay S (2 Replies)
Discussion started by: ajays
2 Replies

8. UNIX for Dummies Questions & Answers

how to mount a file system of a remote machine to local file system

Hi friends, In my case, there are serveral PCs running Linux in a LAN. I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory. I do not know how to do this. The situation is complicated by... (2 Replies)
Discussion started by: cy163
2 Replies

9. Programming

extending netfilter...plz help

Hello friends i'm trying to extend iptables to include a target by which we can change the packet type field of a packet. For this i created a kernel module and a userspace extension. Now i face the problem that when i try to invoke iptable with the target i created i get an error message saying... (1 Reply)
Discussion started by: Rakesh Ranjan
1 Replies

10. Programming

Help in extending netfilter

Hi everybody, I have to write a module for matching in netfilter , extending the netfilter but I'm facing some problems can somebody guide me in that. I know that I need to write matching module working in kernel space and a program in userspace. I went through the HOWTO on netfilter-hacking but... (0 Replies)
Discussion started by: Trusted Penguin
0 Replies
Login or Register to Ask a Question