jonmck1234
08-02-2003, 05:36 PM
Hi! The datacenter setup our server and about a month ago and the home drive is already filling up. However, other drives have plenty of space available. How can we resize the partitions on the server easily? I know nothing about it yet. Would there be any downtime when we resized them? If so, do you have a guess as to how much downtime? Thanks!
The info is below:
Current Disk Usage
Filesystem Size Used Avail Use% Mounted on
/dev/hda7 1011M 276M 684M 29% /
/dev/hda3 99M 5.2M 88M 6% /boot
/dev/hda10 14G 12G 1.5G 89% /home
none 251M 0 250M 0% /dev/shm
/dev/hda8 1011M 33M 927M 4% /tmp
/dev/hda5 41G 3.2G 35G 9% /usr
/dev/hda9 14G 246M 12G 2% /var
/dev/vg01/lv_data 2.5G 33M 2.3G 2% /data
You would have to remove all data from partitions you want to resize. Since you want to resize home, and lets say, take from /usr, you would have to move all the data on /home and /usr to other partitions, delete both of those, then resize accordingly. Once that's done, you will have to recopy all the data back.
jonmck1234
08-02-2003, 05:43 PM
wow, that sounds like a lot of trouble. Is there any way around this? Could he start using the space from usr somehow?
You would have to symlink what space you want to use.. It could get ugly though. What I would suggest is to add a second drive as /home2.
Woofcat
08-02-2003, 06:23 PM
just create a directory /usr/home and place accounts under that...
which datacenter butchered your partitions like that btw?
jonmck1234
08-02-2003, 07:55 PM
It was FDC. That was our first (and probably last server to place there. We wanted to try it out) Our other servers are at DedNow and we have REALLY enjoyed working with them...they have been great for us!
thedavid
08-02-2003, 08:05 PM
Holy cow...
That's quite the interesting partition scheme they did on that one. Anyhow..
There are utilities that can be used to resize partitions (partition manager, etc), but I don't think it's something FDC would do for you. It's also possible to lose data when that happens. A symlink seems like the best tradeoff at this point.
What I'd probably write FDC to do if they fubar'd the partitions up like this would be to put another cleanly imaged drive in as the primary, and this as the secondary. Then you can move your data over, and start work with a properly partitioned drive. They should do this free since they messed the last one up, I'd think. There'll be some downtime, but you'll be able to move your info over easily.
-David
achost_ca
08-02-2003, 10:23 PM
Looks kinda like one of our servers... made hte mistake of not paying attention and ended up with a 60gb /usr :P so now we just put the sites in /usr/www instead of /home/www
jonmck1234
08-02-2003, 10:49 PM
Ok thanks so much for all of the responses! I will see if I can get it fixed! have a great day!