Operating System - HP-UX
1753868 Members
7414 Online
108809 Solutions
New Discussion юеВ

Re: How was was logical volue formatted?

 
Yashodhan Deo
Occasional Advisor

How was was logical volue formatted?

I have a logical volume with vxfs formatting. I would like to know what all options like largefiles/nolargefiles/suid/nosuid etc were used while formatting a logical volume. I dont trust the /etc/fstab file. Any other way I can get the information.
7 REPLIES 7
Sunil Sharma_1
Honored Contributor

Re: How was was logical volue formatted?

Try man page
man newfs_vxfs
man mkfs_vxfs


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Sridhar Bhaskarla
Honored Contributor

Re: How was was logical volue formatted?

Hi Yashodhan,

Some of the options (like suid/nosuid, minfree etc.,) are mount points. Some of them like largefiles, blocksize etc., are filesystem format options.

Simple 'mount' command shows you all the options used to mount the filesystems.

For the formatting options 'mkfs -m /dev/vgxx/lvolx' should show them. Do not forget to specify '-m' option with mkfs command.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Bharat Katkar
Honored Contributor

Re: How was was logical volue formatted?

HI Yashodan,
You can use
# fstype -v /dev/vgxx/lvolx
command to know more about the FileSystem attributes.

BTW: FSTAB indicates all correct information and no harm in believing it.

Hope that helps.
Regards,
You need to know a lot to actually know how little you know
Sridhar Bhaskarla
Honored Contributor

Re: How was was logical volue formatted?

Yashodhan,

Looks like these answers didn't help you. Can elaborate your question a bit more?.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
RAC_1
Honored Contributor

Re: How was was logical volue formatted?

newfs -m -F vxfs /dev/vgxx/rlvolx --> will give you the options that were used to create the file system.

mount -p will give you the options with which the the lvol is mounted.

Hope this helps.

Anil
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: How was was logical volue formatted?

Hi Deo,

largefiles and nolargefiles, suid and nosuid

Above are the mount options for vxfs.

fsadm

/root# fsadm -F vxfs /dev/vg01/rlvol4
nomultifsets
largefiles

fstyp

:/root# fstyp -v /dev/vg01/lvol4
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 614400
f_bfree: 603373
f_bavail: 603373
f_files: 32
f_ffree: 1073789800
f_favail: 1073789800
f_fsid: 1073807364
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 16
f_fsindex: 6
f_size: 614400

fstab

/root# cat /etc/fstab | grep lvol4
/dev/vg01/lvol4 /app/oracle/dbappl vxfs log,nodatainlog,largefiles,rw,suid 0 2

Hope this helps,
Robert-Jan
Geoff Wild
Honored Contributor

Re: How was was logical volue formatted?

Use fsadm and fstyp:

fstyp -v /dev/vg00/lvol4
vxfs
version: 3
f_bsize: 8192
f_frsize: 1024
f_blocks: 143360
f_bfree: 51117
f_bavail: 51117
f_files: 3456
f_ffree: 2139030336
f_favail: 2139030336
f_fsid: 1073741828
f_basetype: vxfs
f_namemax: 254
f_magic: a501fcf5
f_featurebits: 0
f_flag: 0
f_fsindex: 7
f_size: 143360


fsadm -F vxfs /
nolargefiles


Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.