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.
I have a few questions about LVM and ssm
1. The first question is with LVM is it best to have multiple volume groups or as few as possible. So lets say I add two hard-drives to a server. One I will call rhapsody and one I will call rhapdata. They are two different physical hard-drives, but they will be used by the same program. Should I add them to the same volume group/pool?
2. When I try to add a 15gb hard-drive and I run the ssm create command and specify to add 15gb it fails saying that basically there isn't enough space. Or that there are 4095 extents when 4096 is needed. So when using the create command do I have to specify a little bit smaller then the size of the actual hard-drive?
Regarding LVM: A volume group is just a storage pool from which you can allocate logical volumes. It depends on your application's logic, but chances are it only needs a single VG.
From your description, I gather that your app needs two logical volumes named rhapsody and rhapdata. You can create two such logical volumes from a VG that consists of one, two or more disks. My point is, the number of hard disks is entirely unrelated to the number of volumes (and that's also one of the major points of LVM).
In larger installations, I commonly see volume groups being assigned to help reflect "where the disk drives actually are." (And by extension, what I/O channels service them.) The I/O workload is generally apportioned between the different storage units according to purpose and characteristics. Logical Volumes then allow the storage in each area to be allocated and re-allocated conveniently.
1. If you require (physical) separation, use separate pools. For flexibility of data placement, put both drives in the same pool. Only you can make that decision.
2. Don't specify size - let the system determine what's left after formatting overheads are taken into consideration. ssm being a management layer on top of (possibly multiple different) storage backend(s)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.