+ Post New Thread
Results 1 to 10 of 10
*nix Thread, Debain, migration to larger hd. in Technical; We've got a debain server hosting both our website and moodle installation. It's been running now for a few years ...
  1. #1
    rob_coles's Avatar
    Join Date
    Mar 2007
    Location
    Hull
    Posts
    104
    Thank Post
    15
    Thanked 13 Times in 9 Posts
    Rep Power
    18

    Debain, migration to larger hd.

    We've got a debain server hosting both our website and moodle installation. It's been running now for a few years stable until recently.

    Our moodle has surpassed our hd capacity.

    Got a spanky new hd for it to sit on is there any quick simple way to ghost move the installation on the new drive? Suggestions please,

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    is it an LVM volume?

  3. #3

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    Post the output of:

    Code:
    df -h; mount; cat /etc/debian_version
    Last edited by powdarrmonkey; 2nd June 2011 at 02:01 PM. Reason: nope, no root required

  4. #4
    Jamo's Avatar
    Join Date
    Jan 2009
    Posts
    1,350
    Thank Post
    66
    Thanked 175 Times in 147 Posts
    Rep Power
    60
    You could always use it as a place to start the migration to a new version?

    Backup the moodle database and files and reapply on the new server?

  5. #5
    rob_coles's Avatar
    Join Date
    Mar 2007
    Location
    Hull
    Posts
    104
    Thank Post
    15
    Thanked 13 Times in 9 Posts
    Rep Power
    18
    Quote Originally Posted by CyberNerd View Post
    is it an LVM volume?
    Will check first thing in morning

  6. #6

    dhicks's Avatar
    Join Date
    Aug 2005
    Location
    Knightsbridge
    Posts
    5,624
    Thank Post
    1,240
    Thanked 778 Times in 675 Posts
    Rep Power
    235
    Quote Originally Posted by rob_coles View Post
    Got a spanky new hd for it to sit on is there any quick simple way to ghost move the installation on the new drive?
    You should be able to simply copy the old hard drive over to the new - swap the hard drives, boot off a CD, format the newly installed hard drive as ext3, attach the old hard drive via USB and copy the files across. Install your boot loader on the new hard drive and reboot.

  7. #7
    rob_coles's Avatar
    Join Date
    Mar 2007
    Location
    Hull
    Posts
    104
    Thank Post
    15
    Thanked 13 Times in 9 Posts
    Rep Power
    18
    Quote Originally Posted by powdarrmonkey View Post
    Post the output of:

    Code:
    df -h; mount; cat /etc/debian_version
    Code:
    intranet:~# df -h; mount; cat /etc/debian_version
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1              71G   64G  3.9G  95% /
    tmpfs                1014M     0 1014M   0% /lib/init/rw
    udev                   10M  752K  9.3M   8% /dev
    tmpfs                1014M     0 1014M   0% /dev/shm
    /dev/sda1 on / type ext3 (rw,errors=remount-ro)
    tmpfs on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
    proc on /proc type proc (rw,noexec,nosuid,nodev)
    sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
    procbususb on /proc/bus/usb type usbfs (rw)
    udev on /dev type tmpfs (rw,mode=0755)
    tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev)
    devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=620)
    Im getting the feeling that it's prob going to be better to install fresh (current) and migrate.

    If I was to start afresh would you recommend debain again or try another distro? Im fairly limited using nix just tend to google how too's which works wonders.

  8. #8
    rob_coles's Avatar
    Join Date
    Mar 2007
    Location
    Hull
    Posts
    104
    Thank Post
    15
    Thanked 13 Times in 9 Posts
    Rep Power
    18
    While im thinking on is there any distro that will sit happy on a hyper v server?

  9. #9


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    I think only Redhat/Oracle are supported on HyperV.

    don't worry though - adding a disk to this will be easy we can talk you through it.

    First shut down your server and add the new disk ( I assume only one disk, your not setting up a RAID array).
    When the new disk is in we will set up an LVM volume, format it and mount it somewhere temporarily, move your files over then mount it in the correct place.

    add the disk then run this
    Code:
     fdisk -l | grep '^Disk'

  10. Thanks to CyberNerd from:

    rob_coles (3rd June 2011)

  11. #10
    rob_coles's Avatar
    Join Date
    Mar 2007
    Location
    Hull
    Posts
    104
    Thank Post
    15
    Thanked 13 Times in 9 Posts
    Rep Power
    18
    I'm just running a full backup of the server/sql's just in case thanks for your assistance It's going to be a few hours to complete will post back when completed.

SHARE:
+ Post New Thread

Similar Threads

  1. Replies: 4
    Last Post: 5th April 2011, 09:47 PM
  2. Replies: 2
    Last Post: 17th May 2010, 02:03 PM
  3. Server 2008 RAID 0 needs to be have partitions larger than 2TB
    By HMCTech in forum Windows Server 2008
    Replies: 8
    Last Post: 13th March 2009, 01:28 PM
  4. Server Migration
    By Michael in forum Windows
    Replies: 14
    Last Post: 28th January 2009, 10:35 AM
  5. Exchange - Message Larger than current limit
    By thegrassisgreener in forum Windows
    Replies: 2
    Last Post: 25th September 2007, 08:25 AM

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
  •