https://bugzilla.wikimedia.org/show_bug.cgi?id=58141

--- Comment #2 from Tim Landscheidt <[email protected]> ---
(In reply to comment #0)
> [...]
> On non-VM systems, I would create an extra partition for /var/log/apache2 to
> isolate this; I'm not sure what's the best way to proceed in Labs and
> Puppet. 
> Probably we should increase the HD space for this instance as well.
> [...]

I should have opened my eyes first: The HD space is already provided as
/dev/vdb and mounted at /mnt by default (apparently in the original image's
/etc/fstab?):

| scfc@tools-webproxy:~$ df -h /mnt
| Filesystem      Size  Used Avail Use% Mounted on
| /dev/vdb         20G  173M   19G   1% /mnt
| scfc@tools-webproxy:~$ ls -al /mnt
| total 24
| drwxr-xr-x  3 _lldpd nslcd  4096 Jan 21  2013 .
| drwxr-xr-x 25 root   root   4096 Dec  4 17:00 ..
| drwx------  2 root   root  16384 Jan 21  2013 lost+found
| scfc@tools-webproxy:~$

(My assumption was that the space would be given to /.)  The permissions look
faulty, though:

| [tim@passepartout ~]$ ssh tools-login.pmtpa.wmflabs ls -dl /mnt

| If you are having access problems, please
see:https://labsconsole.wikimedia.org/wiki/Access#Accessing_public_and_private_instances
| drwxr-xr-x 6 root root 4096 Nov 21 21:45 /mnt
| [tim@passepartout ~]$ ssh tools-webproxy.pmtpa.wmflabs ls -dl /mnt

| If you are having access problems, please
see:https://labsconsole.wikimedia.org/wiki/Access#Accessing_public_and_private_instances

| If you are having access problems, please
see:https://labsconsole.wikimedia.org/wiki/Access#Accessing_public_and_private_instances
| drwxr-xr-x 3 _lldpd nslcd 4096 Jan 21  2013 /mnt
| Killed by signal 1.
| [tim@passepartout ~]$

I've chown'ed root.root it.

So my plan of attack would be:

1. Move old logs from /var/log/apache2 to
/data/project/.system/logs/temp-refuge-from-webproxy.
2. "service apache2 stop && mkdir -p /mnt/var/log && mv -i /var/log/apache2
/mnt/var/log/ && ln -s /mnt/var/log/apache2 /var/log/ && service apache2
start".
3. Move old logs back to /mnt/var/log/apache2 so that logrotate can expire them
in the usual way.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to