RE: Live Upgrade for Linux

From: Glynn Clements (glynn.clements@virgin.net)
Date: 04/08/03

  • Next message: Axel Beckert - ecos gmbh: "Re: Live Upgrade for Linux"
    From: Glynn Clements <glynn.clements@virgin.net>
    Date: Tue, 8 Apr 2003 21:11:52 +0100
    To: Octavio / Super <alvarezp@telnor.net>
    
    

    Octavio / Super wrote:

    > Regarding disk images, what about the data that is in the RAM that
    > hasn't yet been written to disk? If you clone with cp or tar it
    > wouldn't be much of a problem, but I was thinking on something like dd
    > for cloning the hard disk. If dd tries to read something from the
    > device, does Linux realizes that and syncs the disk before the read
    > operation?

    No. The read operations will read from the not-yet-sync'd memory copy,
    so you still get the same result.

    However, copying a "live" filesystem (one which is currently mounted
    read/write) is unsafe however you do it, whether by tar, cp, dd or
    whatever. If you wish to duplicate a filesystem, you first have to
    unmount it or mount it read-only (obviously, an unmounted filesystem
    can't be duplicated by tar or cp).

    -- 
    Glynn Clements <glynn.clements@virgin.net>
    

  • Next message: Axel Beckert - ecos gmbh: "Re: Live Upgrade for Linux"

    Relevant Pages

    • Re: How to backup root filesystem the correct way....
      ... > TAR be used. ... I need to backup my ... >to another filesystem would be better? ... > reccommended way to backup the root disk to my second backup disk? ...
      (Fedora)
    • Re: Using FreeBSD to migrate Windows XP?
      ... > disk and if it works, ... Dump cannot work on anthing other than UFS filesystems. ... actually separately interprets the filesystem structure. ... Dump is DRAMATICALLY different in its operation than tar, cpio, etc. ...
      (freebsd-questions)
    • Weird harddisk behaviour
      ... A couple of weeks ago my 400Gb SATA disk crashed. ... Partition Table for /dev/sda ... # Type Sector Sector Offset Length Filesystem Type Flag ... Superblock backups stored on blocks: ...
      (Linux-Kernel)
    • Strange case of root filesystem corruption
      ... Yesterday GRUB would suddenly not display the boot menu anymore. ... Looking at filesystems on the disk with the free ufs2tools program, ... Subfolders of / on the same filesystem are affected as well. ... sectors/track: 63 ...
      (freebsd-questions)
    • Re: Recommendations for servers running SATA drives
      ... BIOS menu item for disabling said feature. ... I am taking my chances with multiple affordable drives ... on a disk will be enabled, ... that fact ignored, then the filesystem is either 1) worthless, or 2) ...
      (freebsd-stable)