On Fri, 13 Jan 2012 16:55:04 +0200
lilit-aibolit <lilit-aibo...@mail.ru> 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?
>
hmm. If you need more space for /var, and you have spare space
in /home, why not just use /dev/svnd?
dd if=/dev/zero to create a file of the size you want allocate
for /var, then vnconfig it, newfs it, and use it just like the usual
partition.


--
With best regards,
        Gregory Edigarov

Reply via email to