1824169 Members
3165 Online
109669 Solutions
New Discussion юеВ

fsadm

 
SOLVED
Go to solution
Andy Sevastian
Occasional Contributor

fsadm

I am able to extend the vol, with lvextend. But when I use fsadm it tells me that -b is an illegal option.
fsadm -F hfs -b 100000 /dev/vg00/lvol4
is the command I used.
I'm not sure if I have Online JFS, but I executed the 'swlist | grep -i online' command succesfully (ie. nothing happend no errors). But I can't expand the filesystem.
I tried expandfs -F hfs /dev/vg00/lvol4
I get a 'character special file required'.

Andy

4 REPLIES 4
Rick Garland
Honored Contributor

Re: fsadm

Do the swlist -l bundle to see if Online-JFS is installed. If not, the extendfs is the option you would use. The character device name being referred to is /dev/vgXX/rlvolYY. Notice the 'r' character.

Also, if you have hfs file systems, online-JFS will not help you. Need to be vxfs filesystems.
James R. Ferguson
Acclaimed Contributor

Re: fsadm

Hi Andy:

Use 'extendfs' with HFS filesystems to increase their size after doing 'lvextend'. 'extendfs' expects the raw or character device, as:

# extendfs /dev/vgXX/rlvolX

Use 'fsadm' with Journaled filesystems (vxfs).

You can look in your /etc/fstab to see the type of filesytem (HFS, vxfs) you have or do:

# fstyp /dev/vgXX/lvolX

A very good guide to dealing with common filesystem tasks is the System Administration Tasks manual:

http://docs.hp.com/hpux/onlinedocs/B2355-90672/B2355-90672.html

...JRF...
Alan Riggs
Honored Contributor

Re: fsadm

It appears that you do not have online JFS installes. If you had, then the swlist command would have returned the details of the installed version. You will have to umount the filesystem.
Rita C Workman
Honored Contributor
Solution

Re: fsadm

Andy,
If you had Online JFS, when you entered the swlist | grep -i online
it would have reported back the listing showing this is installed. Since you don't have Online JFS you have extend the logical volume and the file system the standard method.
lvextend as you already did....then with the file system umounted type:

extendfs /dev/vgxx/rlvolxx
Be sure to key that r before your log_vol.
From the looks of this it is on vg00/lvol4, you may have to reboot into single user to run your extendfs (unless lvol4 is /home or maybe /opt - you can't umount the others on a running system without headaches.
The thread James posted to hp.docs is something you should review...
/rcw