PDA

View Full Version : [ubuntu] Moving to a bigger disk


Vegan
September 9th, 2008, 02:47 PM
After searching, I best ask. My server has a smallish 30GB disk and while the phpBB will take a while to fill it, eventually it will become stuffed with content.

Now I realize I can paste a disk into the system easy enough, but I wanted ideas to back up the SQL database and just do a fresh install of everything with a new larger disk.

The web site is a simple FTP copy.

schettj
September 9th, 2008, 03:57 PM
mysql? phpmyadmin will dump/restore it, or you could just google for the correct sql commands to dump it. Something like dump database should do it. (http://yoursql.ludit.it/Help/sqldumps.html)

You'll still need to note and re-create the users/permissions (or at least I did last time I did this using phpmyadmin)

Seriously tho, just add a big disk and mount it on whatever dir your database is using --- or more accurately
- mount new disk in temp path
- stop the database
- mv database files to new disk
- unmount disk
- mount disk onto dir database uses
- restart database
- Enjoy

And where did you find a 30 gig disk? Those are so 2000

(fun/interesting page about disk capacity here http://www.alts.net/ns1625/winchest.html) - I just recently got a 1GB sata for $100. Wild.

Vegan
September 9th, 2008, 04:30 PM
I am using an old machine right now, an old IBM 300 GL with a 30 Gb disk. I plan to replace the machine eventually and wanted to move the site to a whole new platform lock stock and bbl.