Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
With a little luck you may be able to use a live-CD with
qparted to resize them; if that doesn't work, I'd go and
use a live CD, backup the smaller partitions to one of the
bigger ones, remove & recreate that backed-up partition on
the fly, mkfs, and untar stuff back into it (always being
aware of potential changes to fstab!)
In fact, it the qparted doesn't work I'd the following.
(I hope you have some means of backup ;})
back-up /var and /tmp to /
delete /var and /tmp
delete /home
recreate /home with the same starting sector
run resize2fs (resizefs.reiserfs) & pray
check whether that all went well
remove the fstab entries for /var and /tmp
mount /home from the live cd, copy the tar-balls
for var & tmp from /; ...
How did you come up with these initial partition sizes? I ask only because it appears you used some fairly poor estimates of filesystem sizes initially. Re-doing these partition sizes to something more in line with your actual usage patterns will not be trivial, given the fact you really need to backup things before doing any resizing.
Consider: Do you really need to partition? Or could you get by with one big / partition that holds everything? If you determine you need to partition, consider why you might have left /usr out of your partitioning scheme above. Was its omission purposeful or accidental? Given you've pulled /tmp, /var, and /boot out to seperate partitions I would have expected to see /usr on a seperate partition as well (that's fairly standard). Also /opt, but that one is of less importance on many systems. Also consider the use of LVM if you decide you need to partition, but really don't know how big each partition should be on your system. Resizing hard partitions when they contain data is just ... yeuch! You won't want to do it very often (preferrably never). The potential of screwing things up and losing data should not be taken lightly.
hmmm i'm really quite a noob when it comes to this.. but i am all ears to learn more new things
I have been given that recommendation for partitioning since i started working...
its mainly for web servers.
All our files are put in /home (thus the size requirement)
/var holds our logs and dB
we dont' use /usr thus not there... what is it for...?
Actually though I have been given this set of partitioning values, I have been thinking.. despite partitioning, its all in the same harddisk. Does it matter or have any benefits at all?
i actually am ready to reinstall the OS (RHEL) and re-parition.. but thought i ask you guys first
... I have been thinking.. despite partitioning, its all in the same harddisk. Does it matter or have any benefits at all?
Partitioning offers many benefits. But they may not be needed for a home desktop system. For a multi-user server ... definitely.
Partitioning can add security, robustness, flexibility, and performance to name a few. But at the cost of complexity.
Example 1: You have a server with many users. A not-so-bright user writes a program that goes into an endless loop and keeps appending to a gigantic file it creates in /tmp. If everything is on one big / partition, your server will probably come crashing down when the dumb user's program consumes all available disk space. However, if /tmp was on a seperate partition it would still fill up, but ONLY /tmp, and your server would stay up and running (maybe hobbled ... but running). This improves robustness.
Example 2: /usr shouldn't change except when you install certain new programs. So put it on a seperate partition and mount it readonly during normal times. You won't accidently modify /usr, and a malicious cracker will have a harder time doing so. This improves security and robustness.
Example 3: You have lots of personal stuff under /home. You want to change distros from SuSE to Debian. If /home is a seperate partition you can easily install the new distro and then mount your old /home ... unaffected by the distro switch. This increases flexibility.
Example 4: You want to use Reiser for your OS filesystems, but XFS for your filesystem that holds huge video files (for performance reasons). You can't do this if everything is on one big / partition. This increases flexibility and performance.
There are many more examples of how partitioning helps, but you get the idea. But with the added benefits comes the added complexity of setting up and mounting different partitions. These benefits may be of minor importance on a home system, and the complexity of administration unwarranted. For a server, I can't imagine NOT partitioning, and using LVM on top of that. Even my home system is partitioned and LVM-ed out the ying-yang, but for me the maintenance does not represent added complexity. It's just second nature and I don't think twice about it.
lvm doesn't give you redundancy or performance, it gives you
just flexibility. Basically I think that it's still a good
idea to e.g. separate /home, /var and /tmp onto distinct
partitions, just because it makes it harder to harm the machine
by filling up disk as a normal user. What lvm does is it gives
you the flexibility to change "partition" sizes on the fly.
lvm doesn't give you redundancy or performance, it gives you
just flexibility. Basically I think that it's still a good
idea to e.g. separate /home, /var and /tmp onto distinct
partitions, just because it makes it harder to harm the machine
by filling up disk as a normal user. What lvm does is it gives
you the flexibility to change "partition" sizes on the fly.
Cheers,
Tink
It does? I thought LVM is just for doing 'software-raid'? so in a single harddisk environment/ harddisk-raid environment,
I can still use LVM, and it will aloow me to change partition...??
[edit]
Ok, I was just rereading this thread and I just HAVE to fix my above typo. "symopisis"? What kind of word is that?! Yes, I know how to spell "synopsis". I just can't TYPE it!
[/edit]
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.