Transferring the root filesystem to a ramdisk?

From: Cordula's Web (cpghost_at_cordula.ws)
Date: 01/31/04

  • Next message: Bjorn Eikeland: "Re: Transferring the root filesystem to a ramdisk?"
    To: freebsd-questions@freebsd.org
    Date: Sat, 31 Jan 2004 15:08:33 +0100 (CET)
    
    

    Hello,

    in an attempt to save power on FreeBSD servers, I'm
    trying to replace the hdd with a ramdisk. The idea is to:

      1. boot from the hdd (or netboot from an NFS server)
      2. configure a ram disk (md(4))
      3. copy everything that's needed to ram disk
      4. transfer kernel root to ramdisk (*)
      5. turn off the hdd (**)

    (*) is the hairy question.
    (**) How can that be done?

    I won't need paging, because there'll be enough ram for
    everything (ramdisk, kernel and userland).

    Now the questions are:

      * How to "attach" the root filesystem to the ram disk?

        Can this be done only through pxe/netboot before the
        kernel starts, or is there some kind of system call
        that can transfer root on a running system?

      * How to power off (and on) the hdd (both for ATA and SCSI)?

      * Will the power consumption decrease (no hdd) or will
        it increase (more ram)? Anybody measured this before
        with regular diskless machines?

    Thanks,
    -cpghost.

    -- 
    Cordula's Web. http://www.cordula.ws/
    _______________________________________________
    freebsd-questions@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-questions
    To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
    

  • Next message: Bjorn Eikeland: "Re: Transferring the root filesystem to a ramdisk?"

    Relevant Pages

    • Re: Error messages on startup.
      ... Recently I am having trouble starting up ... turning off the main power switch because ... drives", ... a new Seagate HDD as above. ...
      (microsoft.public.windowsxp.hardware)
    • Re: How do I power save a HDD?
      ... yet leave the main HDD going? ... and power that on ONLY when you need to ... Anna said about the removable rack drives. ... My secondary disks stop spinning using this method. ...
      (microsoft.public.windowsxp.general)
    • Re: DRIVER_POWER_STATE_FAILURE
      ... > paging file or pagefile too small" ... In Control Panel Power Options, ... You might also try flushing your HDD cache at shutdown using that last above ... Device Manager, Disk Drives, right-click each drive and select Properties ...
      (microsoft.public.windowsxp.help_and_support)
    • Power Failure when connecting HDD to VS 3100
      ... Whenever I connect the HDD to one of the power connectors and switch on ... machine bone dead, no Power led, no test leds, nothing on the console. ...
      (comp.sys.dec)
    • Re: How do I power save a HDD?
      ... yet leave the main HDD going? ... and power that on ONLY when you need to ... of a removable HDD is no more difficult ... Anna said about the removable rack drives. ...
      (microsoft.public.windowsxp.general)