Operating System - HP-UX
1834047 Members
2611 Online
110063 Solutions
New Discussion

Re: Unable to mount a filesystem

 
SOLVED
Go to solution
Habib_4
Advisor

Unable to mount a filesystem

Hi guys,

When trying to mount a filesystem i get the following error:

vxfs mount: mount option(s) incompatible with file system /dev/vg01/lvol1

What is a solution to this?

Cheers
7 REPLIES 7
Pete Randall
Outstanding Contributor

Re: Unable to mount a filesystem

Ummmm . . . . . specify compatible options???

What have you got in your mount command? Post the output of "fstyp -v /dev/vg01/lvol1".


Pete

Pete
RAC_1
Honored Contributor

Re: Unable to mount a filesystem

the mount options that you specified for this mount are not same what you have on lvol. Post mkfs -m /dev/vg01/rlvol1

What options you see?

mount with those options. Or do a plain mount without any options.
mount /dev/vg01/lvol1 /mount_point
There is no substitute to HARDWORK
Asif Sharif
Honored Contributor

Re: Unable to mount a filesystem

Try this,

#mount /dev/vgXX/lvolX /
#mount /dev/vg01/lvol1 /abc
Regards,
Asif Sharif
tsf_1
Frequent Advisor

Re: Unable to mount a filesystem

I usually got this message when the option for largefiles is not set correctly.

-check /etc/fstab and fsadm output on /dev/vg01/lvol1 to see their setting.

E.g
# more /etc/fstab
/dev/vg01/lvol1 /misc vxfs rw,suid,largefiles,delaylog,datainlog 0 2

# fsadm -F vxfs /dev/vg01/rlvol1
nolargefiles

-My example showing fstab for bootup setting has largefiles and fsadm showing no largefiles; this is causing the error. Or if the setting is the other way, you will get the same error too.
-For this case, i will use fsadm command to set the largefiles so that will be same with /etc/fstab setting.

# fsadm -o largefiles /dev/vg01/rlvol1
be willing to do, be happy to bear
Mridul Shrivastava
Honored Contributor
Solution

Re: Unable to mount a filesystem

1.) Edit the fstab file in /etc.
vi /etc/fstab

2.) Check for an entry in the line for that file system that says:
largefiles

3.) Remove this entry from the line and that will fix the issue.

EXPLANATION: When the largefiles option is set in the fstab file the error message vxfs mount: mount option(s) incompatible with file system will appear. The reason is because the file system is not setup for largefiles. To setup the file system for largefiles run one of the following commands.

umount the file system umount /mountpoint and run the command:
#fsadm -F vxfs -o largefiles /dev/vgXX/rlvolX

or

With Online JFS or Advanced JFS just run the command:

#fsadm -F vxfs -o largefiles /mountpoint

Now the fstab entry for largefiles can be put back in, however the entry is not
needed for largefiles to be activated. Once the file system is setup for
largefiles, it will now be enabled for largefiles anytime it is mounted.

This same error could occur if nolargefiles is an option in /etc/fstab, and the
file system has large files enabled.

NOTE: To see if a file system is set to largefiles or nolargefiles do one of
the following:

1.) fsadm -F vxfs /mountpoint (vxfs only)
2.) mkfs -F vxfs -m /dev/vgXX/lvolX (vxfs only)
3.) fstyp -v /dev/vgXX/lvolX | grep f_flag
(f_flag: 0->nolargefiles, f_flag: 16->largefiles)
4.) fsadm -F hfs /dev/vgXX/rlvolX (hfs only)
Time has a wonderful way of weeding out the trivial
Sandman!
Honored Contributor

Re: Unable to mount a filesystem

It might very well be a largefiles issue but w/o posting the output of either...

# mkfs -F vxfs -m /dev/vgXX/lvolX
OR
# fstyp -v /dev/vgXX/lvolX

...it's hard to tell, so post the output of one of the above.

cheers!
Habib_4
Advisor

Re: Unable to mount a filesystem

Thanks for the advice.