Re: Mounting root...

From: John Baldwin (jhb_at_FreeBSD.org)
Date: 08/24/04

  • Next message: Pawel Jakub Dawidek: "Re: Mounting root..."
    To: freebsd-arch@FreeBSD.org
    Date: Tue, 24 Aug 2004 09:43:40 -0400
    
    

    On Monday 23 August 2004 05:47 pm, Pawel Jakub Dawidek wrote:
    > On Mon, Aug 23, 2004 at 05:16:31PM -0400, John Baldwin wrote:
    > +> On Monday 23 August 2004 03:05 pm, Pawel Jakub Dawidek wrote:
    > +> > On Mon, Aug 23, 2004 at 11:46:12AM -0400, John Baldwin wrote:
    > +> > +> Why not have mirror create the provider instantly in an degraded
    > state +> > as soon +> as one disk shows up and then change from degraded
    > back to full +> > when the +> second disk finally arrives? Isn't this the
    > same case as +> > someone jerking the +> disk out at run time and then
    > shoving it (or a new +> > one) back in without +> rebooting?
    > +> >
    > +> > If it will be started in degraded mode, it can be mounted and modified
    > +> > before next components arrive, so there will be a need to rebuild
    > them. +>
    > +> How is this different from jerking the disk out of a running system and
    > then +> shoving it back in again?
    >
    > You don't want to rebuild a mirror on every boot after clean shutdown.
    > In most cases one can set kern.geom.mirror.timeout to 0 and there will be
    > no problem with this, because even after mirror start is degraded mode
    > new components are not rebuilt if there were no writes, but it will be
    > good to have more general solution...

    The fact that a RAID can recover when a disk goes away and comes back is
    already the "general solution" it seems. It works all the time, not just at
    boot, so it seems to me like you are trying to solve a problem that is
    already solved. I think at most you could maybe have a system wide delay
    before that the user can tweak via a tunable (rather than a per-GEOM class
    tunable like your mirror one) in order to optimize the boot code for these
    rare cases but that is about it. I.e., if a user notices that one of the
    disks always takes an extra second they can set the tunable to force the
    kernel to wait 2 seconds before trying to mount root. Any such delay should
    be centralized, however, and not per-class, since all the per-class delays
    would end up being cumulative, so if MIRROR waits 2 seconds and STRIPE waits
    3 seconds then the entire process actually waits 5 seconds as opposed to
    letting the user tweak a single centralized timeout.

    -- 
    John Baldwin <jhb@FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
    "Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
    _______________________________________________
    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: Pawel Jakub Dawidek: "Re: Mounting root..."

    Relevant Pages

    • RE: Breaking and using a mirrored drive
      ... creation and use of a boot disk, ... server's OS now BUT in order to break the mirror set and make the new C: ... partition active I need to get into the Computer Management console's Disk ... if performing a recovery installation from the OS installation CD restore all ...
      (microsoft.public.win2000.general)
    • Re: RAID 1
      ... >> at boot to know if it is a raid device or not. ... but a general decision that people take to mirror ... partitions and not whole drives. ... > still have a copy of everything, but because grub didn't make the ...
      (comp.os.linux.networking)
    • Re: cant boot from mirrored boot drive
      ... If the disk containing the primary partition fails you will have to create a fault tolerant boot floppy to recover the installation. ... Do I break the mirror, shutdown and remove the good boot disk rdiskand just leave the disk that doesn't want to boot in and boot to the recovery conole to check it out? ... They are sata drives, drive 0 and drive 1 on the main system board's controller. ...
      (microsoft.public.windows.server.general)
    • Re: cant boot from mirrored boot drive
      ... If the disk containing the primary partition fails you will have to create a fault tolerant boot floppy to recover the installation. ... Do I break the mirror, shutdown and remove the good boot disk rdiskand just leave the disk that doesn't want to boot in and boot to the recovery conole to check it out? ... They are sata drives, drive 0 and drive 1 on the main system board's controller. ...
      (microsoft.public.windows.server.general)
    • [HPADM] Summary MirrorDisk/UX 11.00
      ... disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 73.4GMAN3735MC ... Use mkboot to place the boot utilities in the boot area and add the AUTO file. ... LVM will resynchronize the new mirror copies. ... All you need to do is ftp it to your server, chmod 700 on the file then run the command with the cxtxdx name ...
      (HP-UX-Admin)