linux-xfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* How to fix bad superblock or xfs_repair: error - read only 0 of 512 bytes
@ 2012-01-21 10:29 Christian Kildau
  2012-01-23  4:31 ` Dave Chinner
  0 siblings, 1 reply; 21+ messages in thread
From: Christian Kildau @ 2012-01-21 10:29 UTC (permalink / raw)
  To: xfs

Sorry if this message appears twice!



Hello,

I'm having some very serious issues with XFS after upgrading from a
Linux Distro running Ubuntu 2.6.32 to 3.2.

It seems like my filesystems are damaged after attaching them to a
Linux 3.2 server. I am also no longer able to mount the hdd on the old
server that is still running 2.6.32!


(I created the xfs filesystem on the entire hdd, not on a partition,
so /dev/sdd is not a typo)

$ sudo mount -t xfs /dev/sdd /media/
mount: /dev/sdd: can't read superblock
(dmesg)
[236659.912663] attempt to access beyond end of device
[236659.912667] sdd: rw=32, want=2930277168, limit=2930275055
[236659.912670] XFS (sdd): last sector read failed

$ sudo xfs_check /dev/sdd
xfs_check: error - read only 0 of 512 bytes

$ sudo xfs_repair /dev/sdd
Phase 1 - find and verify superblock...
xfs_repair: error - read only 0 of 512 bytes


'testdisk' does find the filesystem as XFS 4 and i created a 1.5TB
dump of it to another hdd.

Is there any way I can fix this? - Except restroring from backup?
Because this IS my backup!
see ubuntuforums.org/showthread.php?t=1910962 for more details…


Any help is appreciated!

Thanks in advance
Chris

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 21+ messages in thread
* How to fix bad superblock or xfs_repair: error - read only 0 of 512 bytes
@ 2019-12-28 11:11 Utpal Bora
  2019-12-29  3:15 ` Chris Murphy
  2019-12-29  4:43 ` Eric Sandeen
  0 siblings, 2 replies; 21+ messages in thread
From: Utpal Bora @ 2019-12-28 11:11 UTC (permalink / raw)
  To: linux-xfs

Hi,

My XFS home drive is corrupt after trying to extend it with lvm.
This is what I did to extend the partition.
1. Extend Volume group to use a new physical volume of around 1.2TB.
This was successful without any error.
    vgextend vg-1 /dev/sdc1

2. Extend logical volume (home-lv) to use the free space.
    lvextend -l 100%FREE /dev/mapper/vg--1-home--lv -r

3. Resized home-lv and reduce 55 GB
   lvreduce -L 55G  /dev/mapper/vg--1-home--lv -r

I assumed that -r will invoke xfs_grow internally.
Everything was working fine until the server was restarted.
After restart, the home volume is not mounting. Please see the following.

server% sudo mount -t xfs /dev/mapper/vg--1-home--lv /home
mount: /home: can't read superblock on /dev/mapper/vg--1-home--lv.

server% dmesg| tail
[162580.208796] attempt to access beyond end of device
[162580.208800] dm-3: rw=4096, want=6650552320, limit=6640066560
[162580.208805] XFS (dm-3): last sector read failed

server% sudo xfs_repair -n /dev/mapper/vg--1-home--lv
Phase 1 - find and verify superblock...
xfs_repair: error - read only 0 of 512 bytes

OS: Ubuntu Server 18.04.3
Kernel: 4.15.0-72-generic

I have gone through the earlier posts on this subject. They did not help me.

Is it possible to repair the XFS volume? Kindly suggest.

Regards,

Utpal Bora
Ph.D. Scholar
Computer Science & Engineering
IIT Hyderabad

^ permalink raw reply	[flat|nested] 21+ messages in thread
* How to fix bad superblock or xfs_repair: error - read only 0 of 512 bytes
@ 2012-01-21 10:03 Christian Kildau
  2012-01-24  4:51 ` Eric Sandeen
  0 siblings, 1 reply; 21+ messages in thread
From: Christian Kildau @ 2012-01-21 10:03 UTC (permalink / raw)
  To: xfs

Hello,

I'm having some very serious issues with XFS after upgrading from a Linux Distro running Ubuntu 2.6.32 to 3.2.

It seems like my filesystems are damaged after attaching them to a Linux 3.2 server. I am also no longer able to mount the hdd on the old server that is still running 2.6.32!

'test disk' does find the filesystem as XFS 4 and i created a 1.5TB dump of it to another hdd.

(I created the xfs filesystem on the entire hdd, not on a partition, so /dev/sdd is not a typo)

$ sudo mount -t xfs /dev/sdd /media/
mount: /dev/sdd: can't read superblock
(dmesg)
[236659.912663] attempt to access beyond end of device
[236659.912667] sdd: rw=32, want=2930277168, limit=2930275055
[236659.912670] XFS (sdd): last sector read failed

$ sudo xfs_check /dev/sdd
xfs_check: error - read only 0 of 512 bytes

$ sudo xfs_repair /dev/sdd
Phase 1 - find and verify superblock...
xfs_repair: error - read only 0 of 512 bytes


'testdisk' does find the filesystem as XFS 4 and i created a 1.5TB dump of it to another hdd.

Is there any way I can fix this? - Except restroring from backup? Because this IS my backup!
see ubuntuforums.org/showthread.php?t=1910962 for more details…


Any help is appreciated!

Thanks in advance
Chris
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2019-12-29  5:59 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-01-21 10:29 How to fix bad superblock or xfs_repair: error - read only 0 of 512 bytes Christian Kildau
2012-01-23  4:31 ` Dave Chinner
2012-01-23  9:23   ` Christian Kildau
2012-01-24  5:04     ` Eric Sandeen
2012-01-24  7:08       ` Christian Kildau
2012-01-24 10:13       ` Christian Kildau
2012-01-24 14:12         ` Roger Willcocks
2012-01-24 15:46           ` Christian Kildau
2012-01-24 15:50             ` Eric Sandeen
2012-01-24 15:52               ` Christian Kildau
2012-01-24 15:57                 ` Eric Sandeen
2012-01-24 17:25                   ` Roger Willcocks
2012-01-24 18:10                     ` Christian Kildau
2012-01-23 10:43   ` Christian Kildau
  -- strict thread matches above, loose matches on Subject: below --
2019-12-28 11:11 Utpal Bora
2019-12-29  3:15 ` Chris Murphy
2019-12-29  5:58   ` Utpal Bora
2019-12-29  4:43 ` Eric Sandeen
2019-12-29  5:58   ` Utpal Bora
2012-01-21 10:03 Christian Kildau
2012-01-24  4:51 ` Eric Sandeen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).