How does LVM decide which Physical Volume to write data to?
Linux - NewbieThis 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.
I am moving data from a single drive to a new volume group called "3ware" (helps me remember which controller the drives are attached to!).
The steps I took are as follows:
1. Created a PV made of /dev/md3 (two 750GB drives in RAID1).
2. Created a PV made of /dev/md9 (two 500GB drives in RAID1).
3. Added the 750GB then the 500GB physical volumes to the new volume group (in that order).
Now when I started moving data onto the new group I can see with iostat that the data is being put onto md9. So what determines which physical volumes get the data?
Good question, I'd never really thought about it before so I did a little research. Wikipedia has a decent explanation of LVM, but this website which was referenced is more definitive.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.