1829448 Members
1144 Online
109992 Solutions
New Discussion

fsadm question

 
SOLVED
Go to solution
Titania
Advisor

fsadm question

Hello

Can i use fsadm to increase hfs filesystems? or it is only for vxfs type???

Thanks!
8 REPLIES 8
Luk Vandenbussche
Honored Contributor

Re: fsadm question

yes, you can do it

check 'man fsadm_hfs'
whiteknight
Honored Contributor

Re: fsadm question

Titania,

For changing the largefiles bit in HFS The file system MUST be unmounted.

To convert the HFS file system to largefiles capable:

#fsadm -F hfs -o largefiles /dev/vg#/lvol#

To mount the new largefiles capable file system :

#mount -F hfs -o defaults,largefiles /dev/vg#/lvol# /(mountpoint)

To set the correct /etc/fstab syntax:

/dev/vg#/lvol# /stand hfs defaults,largefiles 0 2

To verify the largefiles being set you can use mount() or fsadm().
Verify with mount() command:

mount -v :
/dev/vg00/lvol1 on /stand type hfs largefiles on Wed Apr 29
19:23:35 1998


Hope this help

WK

pls assign points
Problem never ends, you must know how to fix it
Dennis Handly
Acclaimed Contributor

Re: fsadm question

>Luk: check 'man fsadm_hfs'
>WK: For changing the largefiles bit in HFS

I assumed the question was on how to increase the size of the filesystem, not set the largefiles bit?

So for the former the answer is it can't increase the size.
Luk Vandenbussche
Honored Contributor

Re: fsadm question

Indead Dennis

Extending an hfs FS is done with

extendfs -F hfs

man extendfs_hfs
whiteknight
Honored Contributor
Solution

Re: fsadm question

titania,

Dennis is right, it is only applicable for vxfs if you want to increase size,

#fsadm -F vxfs -b M /dev/vgXX/lvolXX

-F represents what filetype
-b represents the size
M represents 'Megabytes'

Example:

#fsadm -F vxfs -b 100M /dev/vg03/lvol2
This will extend lvol2 100 megabytes with a vxfs filetype

WK
Problem never ends, you must know how to fix it
Titania
Advisor

Re: fsadm question

hello

so, i can not do this after lvextend:

fsadm -F hfs -b newsize /dir
¿?


Robert-Jan Goossens
Honored Contributor

Re: fsadm question

Hi,

No.

You need to
# umount /filesystem
# lvextend -L new_size /dev/vgxx/lvoly
# extendfs -F hfs /dev/vgxx/rlovy
# mount /filesystem

You can not use fsadm.

Robert-Jan
AwadheshPandey
Honored Contributor

Re: fsadm question

you need to do a lvextend on file system you want to extend, then u can use fsadm if Online Jfs is installed,
command syntex for fsadm is
fsadm -F hfs /dev/vg02/rlvol1
man fsadm_hfs
It's kind of fun to do the impossible