Re: newfs and mount vs. half-baked disks

From: Dan Nelson (dnelson_at_allantgroup.com)
Date: 11/05/03

  • Next message: Garance A Drosihn: "Re: newfs and mount vs. half-baked disks"
    Date: Tue, 4 Nov 2003 19:57:10 -0600
    To: Wes Peters <wes@softweyr.com>
    
    

    In the last episode (Nov 04), Wes Peters said:
    > I emailed Kirk about this state of affairs and he confirmed that
    > newfs was developed with operator intervention in mind. He suggested
    > employing one of the unused flags in the filesystem header as a
    > 'consistent' flag, setting it to 'not consistent' at the beginning of
    > newfs, and then updating to 'is consistent' at the end. The
    > performance hit in updating all superblock copies at the end is small
    > but noticable (< 1s on a rather slow 6GB filesystem).

    Would writing a block of zeros to the first (or first n) superblock,
    newfs'ing, then rewriting the correct data do the same thing without
    affecting the filesystem itself? I'm thinking about 4.x and cross-OS
    portability here.

    -- 
    	Dan Nelson
    	dnelson@allantgroup.com
    _______________________________________________
    freebsd-arch@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-arch
    To unsubscribe, send any mail to "freebsd-arch-unsubscribe@freebsd.org"
    

  • Next message: Garance A Drosihn: "Re: newfs and mount vs. half-baked disks"

    Relevant Pages

    • Re: newfs and mount vs. half-baked disks
      ... > clean we just newfs and mount the clean new filesystem. ... > performance hit in updating all superblock copies at the end is small ... since the superblock for the previous file system may ... Newfs should also set the unclean flags and any related flags until it ...
      (freebsd-arch)
    • Re: newfs and mount vs. half-baked disks
      ... >> newfs was developed with operator intervention in mind. ... >> performance hit in updating all superblock copies at the end is small ... >affecting the filesystem itself? ... My suggestion would be to write a non-standard magic number to ...
      (freebsd-arch)
    • Limiting the number of Superblock duplicates on newfs of huge filesystem
      ... I don't have to newfs filesystems very often so I don't run into this ... I have just built a 500+ GByte RAID-5 user data filesystem. ... I am quite happy to have superblock ... superblock duplicates that get created on a ufs filesystem. ...
      (SunManagers)
    • SUMMARY: Bad Superblock
      ... I have a E420 server with Solaris 8 and I get the following message after ... Disk 2 cannot read; block 16, ... # wrong use alternate superblock to supply information. ... running a newfs on the disk and also ran a newfs -Nv c1t0d0s2 for Superblock ...
      (SunManagers)