Am 16.12.2011 03:18, schrieb Allan Gottlieb:
Questions
1. Apparently 2.6 (hence 3.x) kernels can expand mounted file systems
(/var is mounted as ext3).
Since I can't unmount /var because it is in use, I guess that, if I
every need to shrink /var, I would need to boot off a CD. Is that
correct?
Back in the day, we had single user mode for this, but I don't see
how to get the equivalent now.
Is it really safe to extend /var (i.e., /dev/vg/var) while mounted
as ext3? It sounds frightening since daemons could start running
and access /var.
Well, online resizing works online, hence the name.
It is of course supposed to be working. You should have a backup
nethertheless.
resize2fs also supports shrinking ext3 partitions, see
http://linux.die.net/man/8/resize2fs
Regards,
Jens