Operating System - HP-UX
1752570 Members
5155 Online
108788 Solutions
New Discussion юеВ

Restore vxfs filesystem superblock in hpux11.11

 
Vee_1
Frequent Advisor

Restore vxfs filesystem superblock in hpux11.11

Hello Everyone,
I want to restore the vxfs filesystem superblock in hpux11.11 .Please let me know the path of the superblock in 11.11


Thanks
6 REPLIES 6
Steven E. Protter
Exalted Contributor

Re: Restore vxfs filesystem superblock in hpux11.11

Shalom,

fsck fixes these problems.

If that does not work:
newfs the file system and restore the thing from backup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vee_1
Frequent Advisor

Re: Restore vxfs filesystem superblock in hpux11.11

fsck is not working.I want to restore the alternate superblock number.Can anyone help me in this regard.This is a nonroot filesystem.


Thanks
Venkat.
johnsonpk
Honored Contributor

Re: Restore vxfs filesystem superblock in hpux11.11

Hi Vee,

You May try fsck with full option as Steven said

#fsck -F vxfs -o full /dev/vgname/lvolname

Fsck normally try to recover the superblock from the auxillary one if the primary superblock is corrupted.


Not sure if some one could do it with fsdb command

Rgds
Johnson


Steven E. Protter
Exalted Contributor

Re: Restore vxfs filesystem superblock in hpux11.11

Shalom again,

As noted:

fsck -F vxfs -o full /dev/vgname/lvolname

or its newfs time. Hope you have a backup.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vishu
Trusted Contributor

Re: Restore vxfs filesystem superblock in hpux11.11

Hi Vee,

You can see the backup super-blocks in /etc/sbtab file. Hope, it may help you.

Otherwise, as Steven said, do newfs followed by the restore of data.

Thanks
Bill Hassell
Honored Contributor

Re: Restore vxfs filesystem superblock in hpux11.11

> fsck is not working.

Is it reporting a bad block or errno 5 (I/O error)? If so, fsck cannot fix the problem nor can the alternate superblocks. fsck fixes structural information for VxFS but it cannot fix bad spots on the disk. Look at syslog to see if disk errors are being logged.


Bill Hassell, sysadmin