LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-16-2010, 12:13 PM   #1
lil_delta
LQ Newbie
 
Registered: May 2010
Posts: 3

Rep: Reputation: 0
grew raid6 how do I extend vol group?


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.

In advance thanks for any insight.
 
Old 05-16-2010, 04:37 PM   #2
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Rep: Reputation: 31
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
 
Old 05-17-2010, 01:12 AM   #3
lil_delta
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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.
 
Old 05-17-2010, 06:08 AM   #4
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,242

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
Try

cat /proc/mdstat

mdadm --detail

If you've successfully added the extra disks to the one RAID6 device, its probably called /dev/md0 (zero there), so

mdadm --detail /dev/md0

should confirm as would the cat cmd above.
If it's already there, you may be able to lvextend immediately, then resize2fs.
 
Old 05-17-2010, 01:49 PM   #5
exceed1
Member
 
Registered: Mar 2008
Location: oslo
Distribution: debian,redhat
Posts: 199

Rep: Reputation: 31
Quote:
Originally Posted by lil_delta View Post
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
 
Old 05-18-2010, 04:16 PM   #6
lil_delta
LQ Newbie
 
Registered: May 2010
Posts: 3

Original Poster
Rep: Reputation: 0
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

ps ill post some screen shots later tonight.
 
Old 05-18-2010, 07:31 PM   #7
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,242

Rep: Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024Reputation: 2024
http://tldp.org/HOWTO/LVM-HOWTO/extendlv.html
 
  


Reply

Tags
debian, extend, group, lvm, mdadm, raid, volume


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to rename a vol group? binary_0011 Linux - General 18 01-13-2013 10:33 AM
Can't extend volume group flv7a Linux - General 13 09-14-2010 03:04 PM
how to extend volume group size over the remaining space scrat75 Linux - Software 3 03-29-2010 03:51 PM
how split file to multiple vol and how restore it with request of inserting next vol? digitalblade Linux - Newbie 7 02-14-2009 12:04 PM
Removing Vol-Group BadKharma Fedora 4 09-29-2007 11:31 AM


All times are GMT -5. The time now is 04:03 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration