Re: Adding a smaller drive

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <lrhorer@...>
Cc: <linux-raid@...>
Date: Sunday, June 28, 2009 - 3:05 pm

On 28/06/2009 19:31, Leslie Rhorer wrote:

For RAID 4/5/6, I think it'll be refused. You have to shrink the 
filesystem, and LVM if you use it, then the array, so the used size is 
no bigger than the new drive - as you've noted, md doesn't mind if it 
doesn't use all the available space on its constituent devices. If it's 
a small reduction, as I imagine it would be, and your filesystem 
supports shrinking, it won't take long to do the the shrinks. Then 
adding the new drive will be painless. If your filesystem won't shrink - 
and some (many?) won't - I suspect you're scuppered.

It has to be that way because md can't (currently?) tell whatever's 
layered over it to change itself (though I think (guess) that to some 
extent this may change at some point in the future with some of the 
topology stuff that's been discussed here recently).

I don't know what RAID 0/1/10 would do but I imagine they'd be the same.

Cheers,

John.

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Adding a smaller drive, Leslie Rhorer, (Sun Jun 28, 2:31 pm)
Re: Adding a smaller drive, John Robinson, (Sun Jun 28, 3:05 pm)
RE: Adding a smaller drive, Leslie Rhorer, (Sun Jun 28, 3:47 pm)
Re: Adding a smaller drive, Bill Davidsen, (Tue Jun 30, 1:01 pm)
Re: Adding a smaller drive, Greg Freemyer, (Tue Jun 30, 2:22 pm)
Re: Adding a smaller drive, Bill Davidsen, (Wed Jul 1, 2:53 pm)
Re: Adding a smaller drive, Martin K. Petersen, (Sun Jun 28, 5:33 pm)
Re: Adding a smaller drive, Goswin von Brederlow, (Mon Jun 29, 6:07 am)
RE: Adding a smaller drive, Leslie Rhorer, (Fri Jul 3, 12:12 pm)
Re: Adding a smaller drive, Bill Davidsen, (Sat Jul 4, 10:59 am)
Re: Adding a smaller drive, John Robinson, (Sat Jul 4, 11:20 am)
RE: Adding a smaller drive, Leslie Rhorer, (Sun Jul 5, 6:03 pm)
Re: Adding a smaller drive, John Robinson, (Sun Jul 5, 6:12 pm)
RE: Adding a smaller drive, Leslie Rhorer, (Mon Jul 6, 10:57 pm)
Re: Adding a smaller drive, Billy Crook, (Fri Jul 3, 1:23 pm)
Re: Adding a smaller drive, Martin K. Petersen, (Mon Jun 29, 10:45 am)
Re: Adding a smaller drive, Mikael Abrahamsson, (Sun Jun 28, 6:33 pm)
Re: Adding a smaller drive, John Robinson, (Sun Jun 28, 7:54 pm)
Re: Adding a smaller drive, Mikael Abrahamsson, (Sun Jun 28, 8:02 pm)
Re: Adding a smaller drive, Martin K. Petersen, (Sun Jun 28, 6:51 pm)
RE: Adding a smaller drive, Leslie Rhorer, (Wed Jul 1, 12:12 am)
Re: Adding a smaller drive, Martin K. Petersen, (Wed Jul 1, 1:25 am)
RE: Adding a smaller drive, Leslie Rhorer, (Fri Jul 3, 11:46 am)
Re: Adding a smaller drive, Martin K. Petersen, (Sun Jul 5, 8:05 pm)
RE: Adding a smaller drive, Leslie Rhorer, (Mon Jul 6, 11:15 pm)
Re: Adding a smaller drive, Mikael Abrahamsson, (Sun Jun 28, 7:37 pm)
Re: Adding a smaller drive, Martin K. Petersen, (Sun Jun 28, 7:43 pm)
Re: Adding a smaller drive, Mikael Abrahamsson, (Sun Jun 28, 7:57 pm)
Re: Adding a smaller drive, Martin K. Petersen, (Sun Jun 28, 5:49 pm)
Re: Adding a smaller drive, John Robinson, (Sun Jun 28, 5:09 pm)
RE: Adding a smaller drive, Leslie Rhorer, (Sun Jun 28, 5:22 pm)
Re: Adding a smaller drive, John Robinson, (Sun Jun 28, 6:52 pm)
RE: Adding a smaller drive, Leslie Rhorer, (Wed Jul 1, 12:16 am)
Re: Adding a smaller drive, John Robinson, (Sun Jun 28, 7:07 pm)
Re: Adding a smaller drive, Goswin von Brederlow, (Mon Jun 29, 6:05 am)