/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
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
add a comment |
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
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
add a comment |
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
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
mount partition
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
/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.
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
add a comment |
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
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
/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.
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
add a comment |
/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.
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
add a comment |
/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.
/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.
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
add a comment |
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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