On 01/13/2012 09:55 AM, lilit-aibolit wrote:
13.01.2012 16:11, Stuart Henderson P?P8QP5Q:
a: 1.0G 63 4.2BSD 2048 16384 1 # /
b: 1.2G 2097215 swap
c: 37.3G 0 unused
d: 2.6G 4683375 4.2BSD 2048 16384 1 # /tmp
e: 4.0G 10052439 4.2BSD 2048 16384 1 # /var
f: 2.0G 18541648 4.2BSD 2048 16384 1 # /usr
g: 1.0G 22735952 4.2BSD 2048 16384 1 # /usr/X11R6
h: 3.5G 24833104 4.2BSD 2048 16384 1 # /usr/local
i: 1.9G 32229473 4.2BSD 2048 16384 1 # /usr/src
j: 1.9G 36247864 4.2BSD 2048 16384 1 # /usr/obj
k: 18.1G 40266255 4.2BSD 2048 16384 1 # /home
As you have partitions on the disk between /usr and /home,
you can't easily just grow /var.
Here are some options:
- backup, reinstall with better partition sizes, restore.
- swap /var and /home partitions (shut down services, copy files
around between the partitions, swap the fstab entries, reboot).
if you are not totally confident with doing this, make sure your
backups are up-to-date first.
- if you only need a little more space, or if you need to buy some
time until you an plan a proper reinstallation, move your squid
cache_dir to /home.
I got the same recommendation from Vadim Zhukov persg...@gmail.com
with little difference, do it in single mode:
1. Boot in single user mode, enter shell.
2. mount /, /usr, /var and /home.
3. Move /var/* to /home.
4. Move /home/* to /var (except what moved on step 3).
5. Umount /home and /var.
6. Edit fstab and switch /home and /var mount points.
7. Try to mount /home and /var now, checking all is ok.
8. Proceed booting (^D) and have a nice day.
but I operate remotely, and can't shut down all services, such PF or
SSH. So in any way I need to do this locally?
you can do almost anything remotely...if you understand what you are
doing. I'm not going to give you step-by-step instructions. Its your
machine, I'm not taking responsibility for it, and you need to.
btw: most of the advice people have given you on-list is somewhere
between useless and very very bad (with definite exceptions for Stuart's
and Otto's comments). I would HIGHLY recommend you read through
sections 4 and 14 of the FAQ, and UNDERSTAND, not blindly follow other
people's steps. Then practice on a local computer.
Nick.