* Superblock restore takes too long @ 2012-07-19 9:30 Zak, Semion 2012-07-19 13:58 ` Carlos Maiolino 2012-07-19 16:00 ` Eric Sandeen 0 siblings, 2 replies; 4+ messages in thread From: Zak, Semion @ 2012-07-19 9:30 UTC (permalink / raw) To: xfs@oss.sgi.com [-- Attachment #1.1: Type: text/plain, Size: 732 bytes --] Hi, Corrupted Superblock restore takes too long because xfs_restore searches the disc for reserved Superblock. Is it possible accelerate the search, for example by giving to xfs_restore some hint (reserved Superblock LBA)? Thanks, Semion. ________________________________ This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster@nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes. To protect the environment please do not print this e-mail unless necessary. An NDS Group Limited company. www.nds.com [-- Attachment #1.2: Type: text/html, Size: 1749 bytes --] [-- Attachment #2: Type: text/plain, Size: 121 bytes --] _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Superblock restore takes too long 2012-07-19 9:30 Superblock restore takes too long Zak, Semion @ 2012-07-19 13:58 ` Carlos Maiolino 2012-07-19 16:00 ` Eric Sandeen 1 sibling, 0 replies; 4+ messages in thread From: Carlos Maiolino @ 2012-07-19 13:58 UTC (permalink / raw) To: xfs On Thu, Jul 19, 2012 at 09:30:59AM +0000, Zak, Semion wrote: > Hi, > > Corrupted Superblock restore takes too long because xfs_restore searches the > disc for reserved Superblock. > > Is it possible accelerate the search, for example by giving to xfs_restore some > hint (reserved Superblock LBA)? > Afaik there is no way to tell xfs_repair which superblock to use, but to be honest how would you know which secondary superblock isn't corrupted? I can be very wrong in this though -- --Carlos _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Superblock restore takes too long 2012-07-19 9:30 Superblock restore takes too long Zak, Semion 2012-07-19 13:58 ` Carlos Maiolino @ 2012-07-19 16:00 ` Eric Sandeen 2012-07-20 0:21 ` Dave Chinner 1 sibling, 1 reply; 4+ messages in thread From: Eric Sandeen @ 2012-07-19 16:00 UTC (permalink / raw) To: Zak, Semion; +Cc: xfs@oss.sgi.com On 7/19/12 4:30 AM, Zak, Semion wrote: > Hi, > > Corrupted Superblock restore takes too long because xfs_restore searches the disc for reserved Superblock. > > Is it possible accelerate the search, for example by giving to xfs_restore some hint (reserved Superblock LBA)? > Often when I've seen this it's because the block device wasn't really even an xfs filesystem, and the search went on forever. Can you offer more details of what you've encountered? (btw, s/xfs_restore/xfs_repair/ I assume) -Eric > > Thanks, > > > > Semion. _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Superblock restore takes too long 2012-07-19 16:00 ` Eric Sandeen @ 2012-07-20 0:21 ` Dave Chinner 0 siblings, 0 replies; 4+ messages in thread From: Dave Chinner @ 2012-07-20 0:21 UTC (permalink / raw) To: Eric Sandeen; +Cc: Zak, Semion, xfs@oss.sgi.com On Thu, Jul 19, 2012 at 11:00:40AM -0500, Eric Sandeen wrote: > On 7/19/12 4:30 AM, Zak, Semion wrote: > > Hi, > > > > Corrupted Superblock restore takes too long because xfs_restore searches the disc for reserved Superblock. > > > > Is it possible accelerate the search, for example by giving to xfs_restore some hint (reserved Superblock LBA)? > > > > Often when I've seen this it's because the block device wasn't really even an xfs filesystem, and the search went on forever. Right, it has to read the entire disk to find it. it's slow to do this. It could be sped up by using readahead rather than the current "read 1MB, process buffer 512 bytes at a time, read 1MB, ...." so that it runs at disk speed rather than processing latency speed, but that's still pretty slow. i.e. it is slow because it is stupid. Ideally, searching for a secondary superblock should check a few places before resorting to a full disk search. e.g.: - at 1TB offset for large filesystems - for small devices at (size / 4) and (size / 16) to catch the two common default mkfs settings and then if that fails search at the places where the first AG would be located for a filesystem with 2, 3, 5, 6, 7..... AGs. That woul dcut down on the search time immensely, and only if that fails would it be necessary to do a full disk search. Any takers? Cheers, Dave. -- Dave Chinner david@fromorbit.com _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-07-20 0:22 UTC | newest] Thread overview: 4+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2012-07-19 9:30 Superblock restore takes too long Zak, Semion 2012-07-19 13:58 ` Carlos Maiolino 2012-07-19 16:00 ` Eric Sandeen 2012-07-20 0:21 ` Dave Chinner
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox