* can't mount XFS from a read-only device
@ 2009-10-09 15:09 Emmanuel Florac
2009-10-09 18:59 ` Eric Sandeen
[not found] ` <20091009174351.GB13572@dora.cern.ch>
0 siblings, 2 replies; 6+ messages in thread
From: Emmanuel Florac @ 2009-10-09 15:09 UTC (permalink / raw)
To: xfs
Hello all,
I'm using a RAID enclosure that provides read-only snapshots. It works
perfectly fine using JFS.
But with XFS, I keep trying and it keeps failing :
XFS mounting filesystem sdb
Ending clean XFS mount for filesystem: sdb
sd 11:0:0:1: [sdc] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
sd 11:0:0:1: [sdc] Sense Key : Data Protect [current]
sd 11:0:0:1: [sdc] Add. Sense: Write protected
end_request: I/O error, dev sdc, sector 0
Filesystem "sdc": Disabling barriers, trial barrier write failed
XFS mounting filesystem sdc
sd 11:0:0:1: [sdc] Result: hostbyte=DID_OK
driverbyte=DRIVER_SENSE,SUGGEST_OK
sd 11:0:0:1: [sdc] Sense Key : Data Protect [current]
sd 11:0:0:1: [sdc] Add. Sense: Write protected
end_request: I/O error, dev sdc, sector 1953792056
xfs_force_shutdown(sdc,0x1) called from line 420 of file
fs/xfs/xfs_rw.c. Return address = 0xffffffff80381f89
Filesystem "sdc": I/O Error Detected. Shutting down filesystem: sdc
Please umount the filesystem, and rectify the problem(s)
I/O error in filesystem ("sdc") meta-data dev sdc block
0x74748038 ("xlog_bwrite") error 5 buf count 262144
XFS: failed to locate log tail
XFS: log mount/recovery failed: error 5
XFS: log mount failed
I don't really grasp what's wrong...
--
------------------------------------------------------------------------
Emmanuel Florac | Intellique
------------------------------------------------------------------------
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't mount XFS from a read-only device
2009-10-09 15:09 can't mount XFS from a read-only device Emmanuel Florac
@ 2009-10-09 18:59 ` Eric Sandeen
2009-10-09 19:21 ` Emmanuel Florac
[not found] ` <20091009174351.GB13572@dora.cern.ch>
1 sibling, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2009-10-09 18:59 UTC (permalink / raw)
To: Emmanuel Florac; +Cc: xfs
Emmanuel Florac wrote:
> Hello all,
>
> I'm using a RAID enclosure that provides read-only snapshots. It works
> perfectly fine using JFS.
> But with XFS, I keep trying and it keeps failing :
>
> XFS mounting filesystem sdb
>
> Ending clean XFS mount for filesystem: sdb
>
> sd 11:0:0:1: [sdc] Result: hostbyte=DID_OK
> driverbyte=DRIVER_SENSE,SUGGEST_OK
>
> sd 11:0:0:1: [sdc] Sense Key : Data Protect [current]
>
> sd 11:0:0:1: [sdc] Add. Sense: Write protected
> end_request: I/O error, dev sdc, sector 0
> Filesystem "sdc": Disabling barriers, trial barrier write failed
> XFS mounting filesystem sdc
>
> sd 11:0:0:1: [sdc] Result: hostbyte=DID_OK
> driverbyte=DRIVER_SENSE,SUGGEST_OK
>
> sd 11:0:0:1: [sdc] Sense Key : Data Protect [current]
>
> sd 11:0:0:1: [sdc] Add. Sense: Write protected
> end_request: I/O error, dev sdc, sector 1953792056
> xfs_force_shutdown(sdc,0x1) called from line 420 of file
> fs/xfs/xfs_rw.c. Return address = 0xffffffff80381f89
>
> Filesystem "sdc": I/O Error Detected. Shutting down filesystem: sdc
>
> Please umount the filesystem, and rectify the problem(s)
>
> I/O error in filesystem ("sdc") meta-data dev sdc block
> 0x74748038 ("xlog_bwrite") error 5 buf count 262144
>
> XFS: failed to locate log tail
> XFS: log mount/recovery failed: error 5
> XFS: log mount failed
>
> I don't really grasp what's wrong...
>
try mount -o norecovery (and maybe -o nobarrier)
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't mount XFS from a read-only device
[not found] ` <20091009174351.GB13572@dora.cern.ch>
@ 2009-10-09 19:19 ` Emmanuel Florac
0 siblings, 0 replies; 6+ messages in thread
From: Emmanuel Florac @ 2009-10-09 19:19 UTC (permalink / raw)
To: KELEMEN Peter; +Cc: xfs
Le Fri, 9 Oct 2009 19:43:51 +0200 vous écriviez:
> Log recovery is failing on a read-only device. Try mounting
> with the "ro,norecovery" options. However, this will give you a
> potentially inconsistent view of the filesystem.
>
> Are you snapshotting a live filesystem? If yes, then I'd suggest
> using xfs_freeze -f/snapshot/xfs_freeze -u to get consistent
> snapshots.
Yes, norecovery did it. I did snapshots previously using LVM, but these
are writable, so only "nouuid" is necessary (to mount the original FS
and snapshot side by side).
I thought that xfs_freeze was broken recently?
--
--------------------------------------------------
Emmanuel Florac www.intellique.com
--------------------------------------------------
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't mount XFS from a read-only device
2009-10-09 18:59 ` Eric Sandeen
@ 2009-10-09 19:21 ` Emmanuel Florac
2009-10-09 19:28 ` Eric Sandeen
0 siblings, 1 reply; 6+ messages in thread
From: Emmanuel Florac @ 2009-10-09 19:21 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs
Le Fri, 09 Oct 2009 13:59:13 -0500 vous écriviez:
> try mount -o norecovery (and maybe -o nobarrier)
Thank you, that worked.
I can't help but think that when given the "ro" option, XFS shouldn't
try to write a single bit to the underlying device, or else what's the
point?
--
--------------------------------------------------
Emmanuel Florac www.intellique.com
--------------------------------------------------
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't mount XFS from a read-only device
2009-10-09 19:21 ` Emmanuel Florac
@ 2009-10-09 19:28 ` Eric Sandeen
2009-10-09 19:50 ` Emmanuel Florac
0 siblings, 1 reply; 6+ messages in thread
From: Eric Sandeen @ 2009-10-09 19:28 UTC (permalink / raw)
To: Emmanuel Florac; +Cc: xfs
Emmanuel Florac wrote:
> Le Fri, 09 Oct 2009 13:59:13 -0500 vous écriviez:
>
>> try mount -o norecovery (and maybe -o nobarrier)
>
> Thank you, that worked.
>
> I can't help but think that when given the "ro" option, XFS shouldn't
> try to write a single bit to the underlying device, or else what's the
> point?
For a dirty log, we do still recover -unless- the underlying device is
RO. Otherwise you get a corrupt fs mounted ro.... other filesystems do
the same thing, FWIW.
For a clean log I agree; what kernel was this? I vaguely remember a fix
in this area.
Which option solved it? (norecovery I'm guessing)
-Eric
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: can't mount XFS from a read-only device
2009-10-09 19:28 ` Eric Sandeen
@ 2009-10-09 19:50 ` Emmanuel Florac
0 siblings, 0 replies; 6+ messages in thread
From: Emmanuel Florac @ 2009-10-09 19:50 UTC (permalink / raw)
To: Eric Sandeen; +Cc: xfs
Le Fri, 09 Oct 2009 14:28:47 -0500 vous écriviez:
> For a clean log I agree; what kernel was this? I vaguely remember a
> fix in this area.
It's a 2.6.24.7. I did a quick try with 2.6.27.25 and got exactly the
same error.
> Which option solved it? (norecovery I'm guessing)
Yes, norecovery was the missing part.
--
--------------------------------------------------
Emmanuel Florac www.intellique.com
--------------------------------------------------
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2009-10-09 19:50 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-09 15:09 can't mount XFS from a read-only device Emmanuel Florac
2009-10-09 18:59 ` Eric Sandeen
2009-10-09 19:21 ` Emmanuel Florac
2009-10-09 19:28 ` Eric Sandeen
2009-10-09 19:50 ` Emmanuel Florac
[not found] ` <20091009174351.GB13572@dora.cern.ch>
2009-10-09 19:19 ` Emmanuel Florac
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox