Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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'm running debian and used mdadm to setup up a raid 6 array with 4x1TB drives with roughly 1.86TB's available with lvm. Then I added 4x1TB drives to the array. So now I have an 8 drive raid 6 array with 5.+TB's available, the array sees all available space. The question is how do I extend the volume group so that it uses the whole raid and not just half of it. As of right now the volume group is only 1.86TB's.
you created new metadisk devices when adding the devices right? then just use the vgextend utility to extend it.. the usage of vgextend is pretty simple, just have a look in the manual
I'm not sure what metadisk devices mean.... could you elaborate. And I thought vgextend looked pretty easy but would not work. I read the man pages and several results off of google. Also a quick note... lvextend has the option to extend the volume to %FREE does vgextend have the same options (as it reads it doesn't i think).
Thanks for any help.
I'm not sure what metadisk devices mean.... could you elaborate. And I thought vgextend looked pretty easy but would not work. I read the man pages and several results off of google. Also a quick note... lvextend has the option to extend the volume to %FREE does vgextend have the same options (as it reads it doesn't i think).
Thanks for any help.
Hi
when looking at /dev/mdXX the "md" is short for "metadisk".
that being said, if you have your new devices under /dev/mdX you should be able to use vgextend /dev/mdx or similar.. i would recommend doing this instead of adding them directly into a logical volume as it gives you more flexibility and im not sure if you can add raw raid devices directly into an LV
alright I can't check that stuff just yet but i will later tonight... but I know that the raid array (mine is called md1) has been extended and is displaying 5.46TB's. So that means I should beable to just do a lvextend... if so what would the command be to extend it making it consume the new space of the array? Because it's not like i added another drive to the lv but the drive has been grown...(if that makes sense).
Thanks
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.