repartition
I recently recovered from a multi-site WordPress attack. I want to move to /siteA
, /siteB
, siteC
from the current /var/www
structure.
I'm thinking of adding object storage, copying /sda to that storage & repartitioning , reinstalling Debian on /sda, and moving the various sites in /var/www to their own partitions to eliminate a common root. The rest of the stuff in /var, /etc can remain where they are.
The issue is that I'm only using 15% free space on /dev/sda
. It's not worth paying more to Linode for object storage when 70% free space on that disk.
I realize that partitions aren't easily reproducible, but I'll only need 4 or 5 on a 4 gig machine.
Comments? Brickbats?
2 Replies
I'm thinking of adding object storage, copying /sda to that storage & repartitioning
Object storage is NOT AT ALL like /dev/sda! If you didn't mean block storage here, you are in for pretty rude awakening. If you did mean block storage, you have to be aware that block storage can be significantly slower than the SSD storage that is used for the discs on your Linode (/dev/sda, etc).
reinstalling Debian on /sda, and moving the various sites in /var/www to their own partitions to eliminate a common root
You're creating a whole lotta work™ for yourself. You can move your sites to different directories in your filesystem just by moving your files to the locations you want and re-configuring your web server. You don't need to "re-partition" anything…
As always, backups are your friend…
-- sw
P.S. There's nothing wrong with a common root directory for your website files. The association between URL ( http://mylinode.com/path/mysite ) and filesystem directory (/could/be/a/different/path/to/my/site) is made in the web server configuration. Unless you tell the web server to give that association out, there's no way a browser can discover it.