Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match_all(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 876

Warning: Invalid argument supplied for foreach() in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 877

Warning: preg_replace(): Compilation failed: group name must start with a non-digit at offset 4 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 881

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902

Warning: preg_match(): Compilation failed: group name must start with a non-digit at offset 8 in /var/sites/s/sitracker.org/public_html/w/includes/MagicWord.php on line 902
Difference between revisions of "VM" - Sit

Difference between revisions of "VM"

From Sit
Jump to: navigation, search
m
(Using VM as a production platform)
Line 118: Line 118:
  
 
The scripts can run in a cronjob when configured, and the '''sitbackup''' file has rsync capabilities
 
The scripts can run in a cronjob when configured, and the '''sitbackup''' file has rsync capabilities
 +
 +
==Running out of space?==
 +
 +
The VM has 2 partitions, 15GB for system and database and 60GB for webfolder and attachments.
 +
 +
After several years of intense usage of SiT on the VM, the database grows larger and attachements take more space, what to do about that?.
 +
 +
===Database moving===
 +
You can move the database to another drive, but adding an additional to the VM while it's offline (newer versions of VM might be able to do this online).
 +
 +
to move the database:
 +
* Stop the mysql server
 +
<code><pre># sudo /etc/init.d/mysql stop</pre></code>
 +
* edit the mysql config file
 +
<code><pre># sudo nano /etc/mysql/my.cn</pre></code>
 +
* Change the following line to your new path
 +
<code><pre>datadir        = /var/lib/mysql</pre></code>
 +
* move /var/lib/mysql to your new path
 +
* check if the mysql folder is owned by mysql:mysql, else do a
 +
<code><pre># sudo chown -R mysql:mysql /newpath/mysql</pre></code>
 +
* start the mysql server again
 +
<code><pre># sudo /etc/init.d/mysql start</pre></code>
 +
 +
 +
 +
===Expanding disk===
 +
{{cleanup}}
 +
Here a guide on how to expand the LVM drive, on the 60GB disk, will come
  
 
==Pros and Cons==
 
==Pros and Cons==

Revision as of 17:15, 3 December 2010

Personal tools
project