Howto merge partition?

Discussion in 'Installation/Configuration' started by Hirbod, Apr 2, 2014.

  1. Hirbod

    Hirbod New Member

    Hello everybody,

    I'm using ISPConfig 3.0.5.3 and everything is fine. But there is one question I'm trying to figure out all the time: how can I merge my partition on Debian Wheezy? I got 2x 3TB HDDs (the second one is for the Software-RAID)

    I used the default setup provided by hetzner-setup in the past and never realized that I'm giving away that huge amount of space, cause /home has 1.7 TB unused space.

    Actually / has enough space though but I would like to resize the / partition and add 1.5TB of that 1.7TB free space.

    This is a production server with paying customers. Is there any bulletproof tutorial to merge /dev/md3 (eg /home, size 1.7TB) and "get" 1.5TB of it and add this to rootfs (eg /)? /home is unused and there is nothing inside.

    I have no physical access to the machine but I could boot a rescue image.

    Any help would be appreciated.

    Nice Regards
    Hirbod


    System, Type, Size, In use, available, used in %, mounted under

    rootfs rootfs 1016G 197G 769G 21% /
    udev devtmpfs 10M 0 10M 0% /dev
    tmpfs tmpfs 1.6G 324K 1.6G 1% /run
    /dev/disk/by-uuid/bd0fe5c8-7cdf-45cc-a365-3b049bfc112d ext4 1016G 197G 769G 21% /
    tmpfs tmpfs 5.0M 0 5.0M 0% /run/lock
    tmpfs tmpfs 4.8G 0 4.8G 0% /run/shm
    /dev/md1 ext3 496M 53M 418M 12% /boot
    /dev/md3 ext4 1.8T 197M 1.7T 1% /home
     
  2. srijan

    srijan New Member HowtoForge Supporter

    Hi

    Please paste the output of
    &

    Br//
    Srijan
     
  3. Hirbod

    Hirbod New Member

    Hi srijan,

    thanks for your respond.



    By the way: what happened with
    df: `/var/www/clients/client1/web1/log/raumwerk.dev (deleted)': No such file or directory

    this was a subdomain but I deleted it directly after creation, seems to cause errors. My syslog is full of it.
     
  4. srijan

    srijan New Member HowtoForge Supporter

    Hi

    For RAID size change you can follow the guide.


    Note: the guide is for software RAID, may be it will be helpful to you.


    Br//
    Srijan
     
  5. Hirbod

    Hirbod New Member

    Hi,

    thanks for your respond. I read trough this howto but I don't really get the point of how to shrink /home (ext4) from 1.7TB to 1.5TB and enlarge / (rootfs) with 1.5TB.

    Does this work with ext4 / rootfs and is this really bulletproof? It's a production system and I'm really scared to mess up something.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Personally, I wont change the size of the partitions on a live system. It might work, but there is still a risk to loose datawhy dont you just move either the website data (/var/www) or the mail data (/var/vmail) to your home partition? You can even move both, when you use bind mounts:

    http://www.howtoforge.com/forums/showpost.php?p=311660&postcount=36
     
  7. Hirbod

    Hirbod New Member

    Hi Till,

    I've already read your howto about mounting. But it won't change anything. / has 1.5TB and /home has 1.5TB. I just won't to waste such an amount of freespace. But maybe I will mount /var/vmail (and if possible) the MySQL Databases to share the free space more efficient.

    Is it possible to move the databases to /home as well?


    Regards
    Hirbod
     

Share This Page