Results 1 to 7 of 7
  1. #1
    Join Date
    Aug 2009
    Posts
    17

    can anyone help me resize a partition

    Hi guys, I am a complete noob when it comes to partitioning with Linux

    Basically I want to resize a partition on one of my servers so as I can use HyperVM and add more OS templates

    I have HyperVM working great on other systems except i need more templates...

    I am using 1and1 for my servers, and here is my current partitioning

    Code:
    [root@s15360246 ~]# df -h
    Filesystem            Size  Used Avail Use% Mounted on
    /dev/sda1             940M  148M  746M  17% /
    /dev/sda5             4.7G  456M  4.3G  10% /usr
    /dev/sda6             4.7G   19M  4.7G   1% /var
    /dev/sda7             1.4T  5.1M  1.4T   1% /home
    none                  7.9G     0  7.9G   0% /tmp
    Basically I need /dev/sda7 to become about 1.3TB and /dev/sda1 to be around 100GB to be safe, the reason for this is from what I can tell, HyperVM is storing the OS templates in /dev/sda1 but after the install I can fit maximum 2 templates on the server, and dont see an option to change where they are stored (maybe creating a link to them would work?)

    I am currently using CentOS 5 x32 on this particular server but have another 4 on x64 with the same specs...

    Can anyone help?

    Thanks

  2. #2
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    Hypervm stores templates and OpenVZ VEs in folder /vz. You can move the /vz folder away to your /home directory like this:
    mv /vz /home/vz
    ln -s /home/vz /vz
    There's then no need to resize anything since /home has over 1TB of free disk space and that's where you templates / VEs are going to be stored. Plus you can't shrink an ext3 filesystem without possible data loss anyway.

    Regards
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

  3. #3
    Join Date
    Aug 2009
    Posts
    17
    yeah thank you that seems to work fine, thanks a lot (i assumed a link would work but didnt want to risk having to reload the server )

    another quick question which is a long shot but worth a go

    Is it possible to setup LVM via SSH, LVM is another thing I myself am unfamiliar with but I would like to try out Windows VPS's but 1and1 seem to be ignoring my requests (and all other emails for that matter)

  4. #4
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    Yes, you can. You can only offer Windows VPS with Xen (+ hypervm if you need it). And you can only run Xen and Hypervm if you have LVM up and running. And yes, it's possible via SSH. What do you currently have on /home? Any live customers yet?

    Let me know if you need a hand with the switch over to LVM.

    Regards
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

  5. #5
    Join Date
    Aug 2009
    Posts
    17
    no i dont have anything yet I do not launch for 3 days, there is a lot of preparations to do

    Yes if you could help me that would be great... I will send you the SSH details to the server I want LVM on, I prefer it to have HyperVM as a slave but if it needs to be master thats fine

    Thanks for your help m8, much appreciated... I am just getting into the VPS world so a lot to learn

  6. #6
    Join Date
    Aug 2009
    Posts
    17
    maybe not i cant access the PM feature yet lol, do you have a direct email address I can email you the details

  7. #7
    Join Date
    Feb 2008
    Location
    Houston, Texas, USA
    Posts
    3,262
    Quote Originally Posted by grabahost View Post
    maybe not i cant access the PM feature yet lol, do you have a direct email address I can email you the details
    MSN IM unixy@livecom
    UNIXy - Fully Managed Servers and Clusters - Established in 2006
    Server Management - Unlimited Servers. Unlimited Requests. One Plan!
    cPanel Varnish Plugin -- Seamless SSL Caching (Let's Encrypt, AutoSSL, etc)
    Slow Site or Server? Unable to handle traffic? Same day performance fix: joe@unixy

Similar Threads

  1. Resize a serve partition
    By kakalu in forum Hosting Security and Technology
    Replies: 2
    Last Post: 10-14-2008, 06:15 AM
  2. Resize a image
    By Biju in forum Web Hosting Lounge
    Replies: 15
    Last Post: 05-23-2008, 12:27 PM
  3. Auto resize
    By Red Star Network in forum Web Design and Content
    Replies: 2
    Last Post: 09-08-2005, 01:44 AM
  4. resize a partition in Linux?
    By torwill in forum Hosting Security and Technology
    Replies: 7
    Last Post: 09-15-2004, 05:56 PM
  5. Resize NTFS Partition....Can't Boot Though
    By Neo3Net in forum Web Hosting Lounge
    Replies: 2
    Last Post: 06-21-2003, 01:30 PM

Posting Permissions

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