Operating System - HP-UX
1834435 Members
2183 Online
110067 Solutions
New Discussion

problem with mounting a file system

 
qamar_5
New Member

problem with mounting a file system

Hi,

My /home FS got currupted.so I removed everything(vg,lv etc)and created it afresh
now when I mount as

#mount -F vxfs /dev/vghome/lvol1 /home

it gives the error "mount- read of superblock on /dev/vghome/lvol1 failed, No such device or
address."

and when I give
#mount /dev/vghome/lvol1 /home(w/o -F vxfs)
it gives the error "unrecognised file system".

kindy help

Thanls in Advance..

Qamar
4 REPLIES 4
Sanjay_6
Honored Contributor

Re: problem with mounting a file system

Hi Qamar,

Did you create a new filesystem on that volume using vxfs.

newfs -F -o largefiles vxfs /dev/vghome/rlvol1

check your steps used in the VG/LV creation. you may have missed something, say assigning the size / extents to the LV or something minor, like that.

Hope this helps.

thanks
Sridhar Bhaskarla
Honored Contributor

Re: problem with mounting a file system

Qamar,

Your default fs may be hfs. Check out your /etc/default/fs file. If it shows LOCAL=hfs,
then your default lvcreate will create hfs logical volumes. Change it to LOCAL=vxfs.

Now try mounting your file system as hfs and see if it works.

mount -F hfs /dev/vghome/lvol1 /home.

If this doesn't work, then you can't do anything. Initialize the logical volume and restore from the backups.

newfs -F vxfs /dev/vghome/lvol1.

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

Re: problem with mounting a file system

psst... sridhar,

don't you use raw device for filesystem creation.

thanks
Sanjay_6
Honored Contributor

Re: problem with mounting a file system

i too goofed,

the newfs command should look like

newfs -F vxfs -o largefiles /dev/vghome/rlvol1

sorry.