+ Post New Thread
Results 1 to 8 of 8
*nix Thread, Software RAID1 - setting up on an already configured system in Technical; Ok, so I'm feeling a bit thick at the moment. Tying up loose ends at a school before I leave ...
  1. #1
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78

    Software RAID1 - setting up on an already configured system

    Ok, so I'm feeling a bit thick at the moment. Tying up loose ends at a school before I leave next week, and I seem to of left my planning head somewhere else.

    Anyway, result of the above is that I have set up a new Ubuntu Server at the school (using 10.04 Desktop as they want a GUI interface to manage it as that is what the ICT Coordinator who will be looking after my role temporarily knows) and I meant to RAID1 it, however, I didn't.

    It have got the system nicely configured doing all the usual bits and pieces a server should, so instead of starting again with it all, I wondered if there was a way to set up RAID1 without having to reinstall everything all over again.

    Thanks from your local dunce in advance! lol ..

  2. #2

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,622
    Thank Post
    1,240
    Thanked 777 Times in 674 Posts
    Rep Power
    235
    Quote Originally Posted by aptproductions View Post
    I wondered if there was a way to set up RAID1 without having to reinstall everything all over again.
    I've never had a problem restoring Ubuntu installs from a TAR file - simply tar up your new install on to a network share somewhere, reconfigure the disks however you like and un-tar your server on to the new volume. How exactly you go about making a RAID-1 software raid partition bootable is something you'll probably be able to Google.

    --
    David Hicks

  3. Thanks to dhicks from:

    soveryapt (20th May 2010)

  4. #3
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    Quote Originally Posted by dhicks View Post
    I've never had a problem restoring Ubuntu installs from a TAR file - simply tar up your new install on to a network share somewhere, reconfigure the disks however you like and un-tar your server on to the new volume. How exactly you go about making a RAID-1 software raid partition bootable is something you'll probably be able to Google.

    --
    David Hicks
    I shall try that if no one can think of another way round it.

    I found How To Set Up Software RAID1 On A Running System (Incl. GRUB Configuration) (Debian Etch) | HowtoForge - Linux Howtos and Tutorials on Google, but when I come to the

    Code:
    sfdisk -d /dev/sda | sfdisk /dev/sdb
    bit it says:


    Code:
    administrator@SERVER-001:~$ sudo sfdisk -d /dev/sda | sfdisk /dev/sdb
    /dev/sdb: Permission denied
    
    sfdisk: cannot open /dev/sdb read-write
    Warning: extended partition does not start at a cylinder boundary.
    DOS and Linux will interpret the contents differently.

  5. #4

    Join Date
    Feb 2010
    Posts
    87
    Thank Post
    36
    Thanked 2 Times in 2 Posts
    Rep Power
    10
    Quote Originally Posted by dhicks View Post
    simply tar up your new install on to a network share somewhere, reconfigure the disks however you like and un-tar your server on to the new volume
    Would that still work going from a non-RAID to a RAID filesystem? If not, you can probably still do something similar:
    - Wrap up the old system in a tarball, omitting a few key directories that I can't remember at the moment but could find out if you like.
    - Reinstall the OS with RAID.
    - Unwrap the tarball over the new installation.

  6. #5

    Join Date
    Feb 2010
    Posts
    87
    Thank Post
    36
    Thanked 2 Times in 2 Posts
    Rep Power
    10
    Quote Originally Posted by will_ View Post
    Wrap up the old system in a tarball, omitting a few key directories that I can't remember at the moment but could find out if you like.
    Found them. The things I exclude are:
    /etc/hostname (although in your case it won't make much difference)
    /proc
    /lost+found
    /mnt
    /sys

    EDIT: I can't find it in my documentation but I think I had to exclude /boot as well (when cloning to a different box in order to avoid references to a disk that doesn't exist).
    Last edited by will_; 20th May 2010 at 04:12 PM. Reason: typo; omission

  7. Thanks to will_ from:

    soveryapt (20th May 2010)

  8. #6
    soveryapt's Avatar
    Join Date
    Jan 2009
    Location
    Lancashire
    Posts
    2,402
    Thank Post
    648
    Thanked 277 Times in 244 Posts
    Rep Power
    78
    I can see this will be a fun time .. lol ..

  9. #7

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,622
    Thank Post
    1,240
    Thanked 777 Times in 674 Posts
    Rep Power
    235
    Quote Originally Posted by will_ View Post
    Wrap up the old system in a tarball, omitting a few key directories that I can't remember at the moment but could find out if you like.
    tar seems to just ignore the bits it doesn't like the look of, so I just generally boot the system off SystemRescueCD (or similar), mount a network area to place the tar file in and the local harddrive you want to copy the install off, and just do something along the lines of:

    Code:
    cd /mnt/local
    tar cf /mnt/network/file.tar *
    I've actually wound up doing a bunch of Ubuntu / Debain VM installs like this - set up on a physical machine and then move over to a VM.

    --
    David Hicks

  10. #8

    Join Date
    Feb 2010
    Posts
    87
    Thank Post
    36
    Thanked 2 Times in 2 Posts
    Rep Power
    10
    Quote Originally Posted by dhicks View Post
    tar seems to just ignore the bits it doesn't like the look of
    Interesting. I only excluded them because it failed when I didn't, but there you go; I suppose your mileage may vary!

SHARE:
+ Post New Thread

Similar Threads

  1. Setting up online booking system
    By Aaron in forum How do you do....it?
    Replies: 4
    Last Post: 4th January 2010, 04:55 PM
  2. Network setting profile software
    By mcloum in forum How do you do....it?
    Replies: 8
    Last Post: 15th January 2009, 10:59 AM
  3. Configured Proxy Settings
    By OutLawTorn in forum How do you do....it?
    Replies: 8
    Last Post: 27th May 2008, 11:46 PM
  4. Replies: 79
    Last Post: 4th May 2007, 08:34 AM
  5. Replies: 9
    Last Post: 11th January 2007, 10:31 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •