Operating System - HP-UX
1833052 Members
2749 Online
110049 Solutions
New Discussion

Bad block: magic number wrong

 
Marcel Boon
Trusted Contributor

Bad block: magic number wrong

Hi,

I have some troubles with my system, I tried to extend a logical volume group, with lvextend. This command works fine, then I used the command extendfs, my system answers me that the logical volume group needs fsck.
When I I tried fsck on the logical volume, I get a error : full check required. So I used fsck for my_disk. I get the next error:
BAD SUPER BLOCK: MAGIC NUMBER WRONG
USE -b OPTION TO FSCK TO SPECIFY LOCATION OF AN ALTERNATE
SUPER-BLOCK TO SUPPLY NEEDED INFORMATION; SEE fsck(1M).
I removed the logical volume,(make backup first) and reboot system, tried to create a logical volume but this doesn't work.
Get the same errors.
What do I have to do ? Do I something wrong ?
Does it destroy all my data when I use the -b option ?


thanks

Marcel

See the man pages
3 REPLIES 3
Andreas Voss
Honored Contributor

Re: Bad block: magic number wrong

Hi,

when you get the fsck message 'full check required' you have a vxfs filesystem. Posiblly you have not used the fsck -F vxfs option to tell fsck which fs to use.
Also a full fsck on vxfs is done with:
fsck -F vxfs -o full /dev/vgXX/lvolX

Regards

Andrew
Stefan Farrelly
Honored Contributor

Re: Bad block: magic number wrong


Your original lvextend command worked fine but not extendfs. The lvol/filesystem must be unmounted to use extendfs, did you unmount it ?
If you have onlineJFS installed then you dont need to use extednfs, you can use fsadm -b instead and increase the filesystem on the fly.
Im from Palmerston North, New Zealand, but somehow ended up in London...
Marcel Boon
Trusted Contributor

Re: Bad block: magic number wrong

Thanks,

I already removed the logical volume and remove it from the fstab.
but unfortunally, I rebooted the system and used sam to create the logical volume and after that I extended the logical volume with the command line options and everything woks fine now. I don't know what happend.

Thank you for your time.

Marcel
See the man pages