CentOS 5.6: LVM, LV, PV, external SCSI, USB - discussion and questions
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
CentOS 5.6: LVM, LV, PV, external SCSI, USB - discussion and questions
First I will need to discuss a little bit, followed by my questions.
I'm trying to understand LVM as it relates to mounting and un-mounting of filesystems and to learn what actions are needed (if any) to attach and remove an external drive that has been placed into the LVM system.
I have two LVM Physical Volumes (PV) on my system. The first is comprised of my 2 internal IDE drives and provides space for logical volumes (LV) which map to /,/boot,/opt and /orafs. These LV's are mounted.
I have a SCSI external drive attached to my computer. It's 4 partitions have been allocated to a single, second PV. This PV has yet to have any LV's created from it, so, naturally, I have nothing mounted for this drive.
In Windows XP, to "un-mount" an external (USB) device requires me to run the "Safely Remove Hardware" widget, which dumps any write buffers that are outstanding, before the device is powered down.
(Q1) Is CentOS also capable of creating a similar possibility - having buffer(s) that need to get dumped before device removal? Let us consider all questions from both USB connections and SCSI connections.
(Q2) If Q1 is yes, is there an analagous program to run for an external drive connected to CentOS?
(Q3) Is the act of un-mounting (umount) equivalent to dumping outstanding buffers to the device?
(Q4) What if I just turned off my SCSI drive? Will that have a disastrous effect on the PV that it is mapped to? I expect to use this drive for backups.
(Q5) Since this is the first of many external backup drives, does it make sense to even place them within the context of LVM?
(Q6) If I created a PV out of two external drives, would both have to be online at the same time for me to be able to access one of them?
(Q1) Is CentOS also capable of creating a similar possibility - having buffer(s) that need to get dumped before device removal? Let us consider all questions from both USB connections and SCSI connections.
Yes. Filesystems use cache, which is flushed in the background.
Quote:
(Q2) If Q1 is yes, is there an analagous program to run for an external drive connected to CentOS?
Not quite. umount writes the data needed to properly close the filesystem, then sync schedules it to be written to disk, but neither one waits for the writes to complete. eject dooes this for removable devices like USB flash drives, but not for disk
Quote:
(Q3) Is the act of un-mounting (umount) equivalent to dumping outstanding buffers to the device?
Nope
Quote:
(Q4) What if I just turned off my SCSI drive? Will that have a disastrous effect on the PV that it is mapped to? I expect to use this drive for backups.
Don't do that
Quote:
(Q5) Since this is the first of many external backup drives, does it make sense to even place them within the context of LVM?
LVM doesn't matter. The above applies to filesystems on non-LVM disk also.
Quote:
(Q6) If I created a PV out of two external drives, would both have to be online at the same time for me to be able to access one of them?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.