/var has most of the drive space. Need / to have most of it The Next CEO of Stack OverflowUser mounted secondary drive as /varNeed more disk space for rootUtility to TRIM unallocated space on driveWhy is my hard drive out of space if gparted says I have 500+GBLoop mount over an array (name has a space)How to move /var/log to another drive?Partitions, Harddrives and etc! [/var does not have space!]Move mount or increase space in /var/logClone Drive with only Partitioned SpaceExtend /dev/sdb3 partition

How to invert MapIndexed on a ragged structure? How to construct a tree from rules?

Why does the UK parliament need a vote on the political declaration?

Are there any unintended negative consequences to allowing PCs to gain multiple levels at once in a short milestone-XP game?

What benefits would be gained by using human laborers instead of drones in deep sea mining?

How do I make a variable always equal to the result of some calculations?

How to safely derail a train during transit?

How does the mv command work with external drives?

How do I avoid eval and parse?

How did people program for Consoles with multiple CPUs?

Does it take more energy to get to Venus or to Mars?

What's the best way to handle refactoring a big file?

Won the lottery - how do I keep the money?

Sending manuscript to multiple publishers

How does the Z80 determine which peripheral sent an interrupt?

Help understanding this unsettling image of Titan, Epimetheus, and Saturn's rings?

If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?

Elegant way to replace substring in a regex with optional groups in Python?

What is the result of assigning to std::vector<T>::begin()?

Can I run my washing machine drain line into a condensate pump so it drains better?

Make solar eclipses exceedingly rare, but still have new moons

Why am I allowed to create multiple unique pointers from a single object?

Real integral using residue theorem - why doesn't this work?

Written every which way

Would a completely good Muggle be able to use a wand?



/var has most of the drive space. Need / to have most of it



The Next CEO of Stack OverflowUser mounted secondary drive as /varNeed more disk space for rootUtility to TRIM unallocated space on driveWhy is my hard drive out of space if gparted says I have 500+GBLoop mount over an array (name has a space)How to move /var/log to another drive?Partitions, Harddrives and etc! [/var does not have space!]Move mount or increase space in /var/logClone Drive with only Partitioned SpaceExtend /dev/sdb3 partition










0















So when my host setup my dedi, they seemed to apply most of the drive space to /var



I am on cpanel, and need most of the space for the /home directory where all the accounts and data are.



But on previous dedi's ive had the majority of the drive was just assigned to /



This is what I get when I do a



 df -h


Filesystem Size Used Avail Use% Mounted on
rootfs 20G 16G 3.7G 81% /
/dev/root 20G 16G 3.7G 81% /
none 16G 404K 16G 1% /dev
/dev/md2 92G 14G 74G 16% /var
/dev/loop0 4.0G 139M 3.7G 4% /tmp
/dev/loop0 4.0G 139M 3.7G 4% /var/tmp
/dev/root 20G 16G 3.7G 81% /var/named/chroot/etc/named
/dev/root 20G 16G 3.7G 81% /var/named/chroot/usr/lib64/bind


Not sure why its like this. Can I somehow use the 92G for / rather then /var without losing any data and things going tits up?



I am on centos 6.










share|improve this question
























  • Can be done, but would require delicate juggling. Not for the faint of heart (and even less for the backup-less).

    – vonbrand
    Feb 17 '13 at 0:27















0















So when my host setup my dedi, they seemed to apply most of the drive space to /var



I am on cpanel, and need most of the space for the /home directory where all the accounts and data are.



But on previous dedi's ive had the majority of the drive was just assigned to /



This is what I get when I do a



 df -h


Filesystem Size Used Avail Use% Mounted on
rootfs 20G 16G 3.7G 81% /
/dev/root 20G 16G 3.7G 81% /
none 16G 404K 16G 1% /dev
/dev/md2 92G 14G 74G 16% /var
/dev/loop0 4.0G 139M 3.7G 4% /tmp
/dev/loop0 4.0G 139M 3.7G 4% /var/tmp
/dev/root 20G 16G 3.7G 81% /var/named/chroot/etc/named
/dev/root 20G 16G 3.7G 81% /var/named/chroot/usr/lib64/bind


Not sure why its like this. Can I somehow use the 92G for / rather then /var without losing any data and things going tits up?



I am on centos 6.










share|improve this question
























  • Can be done, but would require delicate juggling. Not for the faint of heart (and even less for the backup-less).

    – vonbrand
    Feb 17 '13 at 0:27













0












0








0








So when my host setup my dedi, they seemed to apply most of the drive space to /var



I am on cpanel, and need most of the space for the /home directory where all the accounts and data are.



But on previous dedi's ive had the majority of the drive was just assigned to /



This is what I get when I do a



 df -h


Filesystem Size Used Avail Use% Mounted on
rootfs 20G 16G 3.7G 81% /
/dev/root 20G 16G 3.7G 81% /
none 16G 404K 16G 1% /dev
/dev/md2 92G 14G 74G 16% /var
/dev/loop0 4.0G 139M 3.7G 4% /tmp
/dev/loop0 4.0G 139M 3.7G 4% /var/tmp
/dev/root 20G 16G 3.7G 81% /var/named/chroot/etc/named
/dev/root 20G 16G 3.7G 81% /var/named/chroot/usr/lib64/bind


Not sure why its like this. Can I somehow use the 92G for / rather then /var without losing any data and things going tits up?



I am on centos 6.










share|improve this question
















So when my host setup my dedi, they seemed to apply most of the drive space to /var



I am on cpanel, and need most of the space for the /home directory where all the accounts and data are.



But on previous dedi's ive had the majority of the drive was just assigned to /



This is what I get when I do a



 df -h


Filesystem Size Used Avail Use% Mounted on
rootfs 20G 16G 3.7G 81% /
/dev/root 20G 16G 3.7G 81% /
none 16G 404K 16G 1% /dev
/dev/md2 92G 14G 74G 16% /var
/dev/loop0 4.0G 139M 3.7G 4% /tmp
/dev/loop0 4.0G 139M 3.7G 4% /var/tmp
/dev/root 20G 16G 3.7G 81% /var/named/chroot/etc/named
/dev/root 20G 16G 3.7G 81% /var/named/chroot/usr/lib64/bind


Not sure why its like this. Can I somehow use the 92G for / rather then /var without losing any data and things going tits up?



I am on centos 6.







mount partition






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 2 days ago









Rui F Ribeiro

41.8k1483142




41.8k1483142










asked Feb 17 '13 at 0:00









Mike MeadeMike Meade

134




134












  • Can be done, but would require delicate juggling. Not for the faint of heart (and even less for the backup-less).

    – vonbrand
    Feb 17 '13 at 0:27

















  • Can be done, but would require delicate juggling. Not for the faint of heart (and even less for the backup-less).

    – vonbrand
    Feb 17 '13 at 0:27
















Can be done, but would require delicate juggling. Not for the faint of heart (and even less for the backup-less).

– vonbrand
Feb 17 '13 at 0:27





Can be done, but would require delicate juggling. Not for the faint of heart (and even less for the backup-less).

– vonbrand
Feb 17 '13 at 0:27










1 Answer
1






active

oldest

votes


















3














/var is not temporary, so you can use it. You'll need to stop all access to /home for a few minutes while the data moves, since these are probably different physical partitions. Ie, stop the server! It won't take long. Also: do this as root, not via sudo. Next:



cd /
mv home home_mnt


I'm using a different and unique name in case there's a real /var/home or something. Keeps things tidy and hopefully more clear. Now:



mv home_mnt var


What was /home is now /var/home_mnt. But you are going to use it via a symlink:



ln -s /var/home_mnt /home


Presto. Try cd /home to check. "Home" is a good directory to move because it is non-essential to the base system. Don't try this with, eg, /usr -- it'll hurt, a lot.



Do not move anything into /tmp or /var/tmp either. Those will disappear.






share|improve this answer

























  • Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

    – Mike Meade
    Feb 17 '13 at 10:06











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f65036%2fvar-has-most-of-the-drive-space-need-to-have-most-of-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









3














/var is not temporary, so you can use it. You'll need to stop all access to /home for a few minutes while the data moves, since these are probably different physical partitions. Ie, stop the server! It won't take long. Also: do this as root, not via sudo. Next:



cd /
mv home home_mnt


I'm using a different and unique name in case there's a real /var/home or something. Keeps things tidy and hopefully more clear. Now:



mv home_mnt var


What was /home is now /var/home_mnt. But you are going to use it via a symlink:



ln -s /var/home_mnt /home


Presto. Try cd /home to check. "Home" is a good directory to move because it is non-essential to the base system. Don't try this with, eg, /usr -- it'll hurt, a lot.



Do not move anything into /tmp or /var/tmp either. Those will disappear.






share|improve this answer

























  • Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

    – Mike Meade
    Feb 17 '13 at 10:06















3














/var is not temporary, so you can use it. You'll need to stop all access to /home for a few minutes while the data moves, since these are probably different physical partitions. Ie, stop the server! It won't take long. Also: do this as root, not via sudo. Next:



cd /
mv home home_mnt


I'm using a different and unique name in case there's a real /var/home or something. Keeps things tidy and hopefully more clear. Now:



mv home_mnt var


What was /home is now /var/home_mnt. But you are going to use it via a symlink:



ln -s /var/home_mnt /home


Presto. Try cd /home to check. "Home" is a good directory to move because it is non-essential to the base system. Don't try this with, eg, /usr -- it'll hurt, a lot.



Do not move anything into /tmp or /var/tmp either. Those will disappear.






share|improve this answer

























  • Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

    – Mike Meade
    Feb 17 '13 at 10:06













3












3








3







/var is not temporary, so you can use it. You'll need to stop all access to /home for a few minutes while the data moves, since these are probably different physical partitions. Ie, stop the server! It won't take long. Also: do this as root, not via sudo. Next:



cd /
mv home home_mnt


I'm using a different and unique name in case there's a real /var/home or something. Keeps things tidy and hopefully more clear. Now:



mv home_mnt var


What was /home is now /var/home_mnt. But you are going to use it via a symlink:



ln -s /var/home_mnt /home


Presto. Try cd /home to check. "Home" is a good directory to move because it is non-essential to the base system. Don't try this with, eg, /usr -- it'll hurt, a lot.



Do not move anything into /tmp or /var/tmp either. Those will disappear.






share|improve this answer















/var is not temporary, so you can use it. You'll need to stop all access to /home for a few minutes while the data moves, since these are probably different physical partitions. Ie, stop the server! It won't take long. Also: do this as root, not via sudo. Next:



cd /
mv home home_mnt


I'm using a different and unique name in case there's a real /var/home or something. Keeps things tidy and hopefully more clear. Now:



mv home_mnt var


What was /home is now /var/home_mnt. But you are going to use it via a symlink:



ln -s /var/home_mnt /home


Presto. Try cd /home to check. "Home" is a good directory to move because it is non-essential to the base system. Don't try this with, eg, /usr -- it'll hurt, a lot.



Do not move anything into /tmp or /var/tmp either. Those will disappear.







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 17 '13 at 0:47

























answered Feb 17 '13 at 0:41









goldilocksgoldilocks

63.1k17155213




63.1k17155213












  • Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

    – Mike Meade
    Feb 17 '13 at 10:06

















  • Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

    – Mike Meade
    Feb 17 '13 at 10:06
















Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

– Mike Meade
Feb 17 '13 at 10:06





Ok cool brilliant, I will give that a try. I am thinking that a lot of space will be taken up with /usr too from all the mysql data. Is there no way to just reassign the 92GB to / rather than /var ? I don't want to have to reinstall the OS and everything if I don't have to. Thanks

– Mike Meade
Feb 17 '13 at 10:06

















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f65036%2fvar-has-most-of-the-drive-space-need-to-have-most-of-it%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

getting Checkpoint VPN SSL Network Extender working in the command lineHow to connect to CheckPoint VPN on Ubuntu 18.04LTS?Will the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayVPN SSL Network Extender in FirefoxLinux Checkpoint SNX tool configuration issuesCheck Point - Connect under Linux - snx + OTPSNX VPN Ububuntu 18.XXUsing Checkpoint VPN SSL Network Extender CLI with certificateVPN with network manager (nm-applet) is not workingWill the Linux ( red-hat ) Open VPNC Client connect to checkpoint or nortel VPN gateways?VPN client for linux machine + support checkpoint gatewayImport VPN config files to NetworkManager from command lineTrouble connecting to VPN using network-manager, while command line worksStart a VPN connection with PPTP protocol on command linestarting a docker service daemon breaks the vpn networkCan't connect to vpn with Network-managerVPN SSL Network Extender in FirefoxUsing Checkpoint VPN SSL Network Extender CLI with certificate

Cannot Extend partition with GParted The 2019 Stack Overflow Developer Survey Results Are In Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) 2019 Community Moderator Election ResultsCan't increase partition size with GParted?GParted doesn't recognize the unallocated space after my current partitionWhat is the best way to add unallocated space located before to Ubuntu 12.04 partition with GParted live?I can't figure out how to extend my Arch home partition into free spaceGparted Linux Mint 18.1 issueTrying to extend but swap partition is showing as Unknown in Gparted, shows proper from fdiskRearrange partitions in gparted to extend a partitionUnable to extend partition even though unallocated space is next to it using GPartedAllocate free space to root partitiongparted: how to merge unallocated space with a partition

Marilyn Monroe Ny fiainany manokana | Jereo koa | Meny fitetezanafanitarana azy.