LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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


Reply
  Search this Thread
Old 02-22-2006, 11:53 AM   #1
essdeeay
Member
 
Registered: Aug 2004
Location: United Kingdom
Distribution: Debian
Posts: 88

Rep: Reputation: 15
Unhappy More than one mount point on one partition?


I'm busy trying to get to grips with LVM. So far I'm thinking that I'll give 8Gb across to / (*not* LVM), and manage /opt, /home & /var in LVM as they're the ones which could possibly grow out of control.

How can I mount them all on the same physical partition so that I don't have to manage each one's partitions in LVM seperately? ie. Can they share the same partition?

Many thanks,
Steve
 
Old 02-22-2006, 12:31 PM   #2
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian, Arch
Posts: 2,331

Rep: Reputation: 357Reputation: 357Reputation: 357Reputation: 357
Quote:
Originally Posted by essdeeay
So far I'm thinking that I'll give 8Gb across to / (*not* LVM), and manage /opt, /home & /var in LVM as they're the ones which could possibly grow out of control.
If you're going for LVM, I'd say go all the way. Leave /boot and / (root) as seperate physical partitions, and swap as well, but then put everything else on LVM. /usr, /var, /opt, /home, /tmp, /usr/local, etc. I'm setup this way and currently I'm only using 18Mb on /boot and 142Mb on /. Yes, Mb, not Gb. Many systems find the majority of their data stored under /usr or /home. Webserver machines or database machines may need large /var or /opt. It all depends on how things get set up.

If I ignore all the other dual booting and specialized stuff on my systems, I could easily get by with four physical partitions on my harddisk. One for /boot (about 30Mb), one for / (about 250Mb), one for swap (about 500Mb), and one for an LVM physical volume (PV) which takes up the remainder of the disk. That PV is then added to an volume group (VG) and then that VG is carved up into logical volumes (LVs). /usr gets it's own LV, /opt it's own LV, /home it's own LV, etc.
Quote:
How can I mount them all on the same physical partition so that I don't have to manage each one's partitions in LVM seperately? ie. Can they share the same partition?
I'm not 100% sure what you're asking here, but maybe what I said above answered it???
 
Old 02-22-2006, 12:32 PM   #3
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
You can't. You need to have 3 Logical partitions, one for /var, another to /opt and the last for /home. There is no way to have one single logical partition with /var /opt and /home.

In another hand, you may try to use a trick with symbolic links.
Let say you have just one single logical partition, with /opt, /home and /var. You may mount this one at, eg, /mnt/extra or whatever. Then you remove the mount points /var /home and /opt, and create symbolic links from /var to /mnt/extra/var, /opt -> /mnt/extra/opt and /home -> /mnt/extra/home.

But this does not make any sense for me.
And there is a chance some dumb (or smart ?!?!) program will complain about one of theses are not a real partition. There is sided effects to. For instance, in the hipotetic scenario above:

Code:
$ cd /home/john
$ pwd
/mnt/extra/home/john

Separate partitions are good. And since they are logical volumes, you can expand/shrink as needed.

regards,
 
Old 02-22-2006, 12:43 PM   #4
marozsas
Senior Member
 
Registered: Dec 2005
Location: Campinas/SP - Brazil
Distribution: SuSE, RHEL, Fedora, Ubuntu
Posts: 1,499
Blog Entries: 2

Rep: Reputation: 68
uhhmm..maybe there is another way. It's a crazy idea, anyway...

Just 2 standard partitions: swap and /boot. the root (/) is a LVM logical volume, with all the rest. I mean, /etc,/dev,/usr,/opt,/home,/var,/opt, ...

I am not sure this will work, because i am not sure you can manage to start the LVM stuff at initrd. But if you can, then it should be possible.

regarsd,
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
Mount problem - device already mounted or mount point busy zahoo Linux - General 7 08-28-2009 05:02 PM
samba mount when not owner of mount point cotton213 Linux - General 1 08-04-2005 06:21 AM
mount point for /dev/hda2 (my boot partition) annihilate Slackware - Installation 5 05-23-2004 03:38 AM
mount point limitations in an extended partition code404 Linux - General 5 12-06-2002 02:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:36 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration