Pruning dead devices

Jared Klett jared at blip.tv
Mon May 14 21:35:13 UTC 2007


ah, I see. I think an option to hide 'dead' devices in mogadm would be
the way to go.

-----Original Message-----
From: Brad Fitzpatrick [mailto:brad at danga.com] 
Sent: Monday, May 14, 2007 5:37 PM
To: Jared Klett
Cc: mogilefs at lists.danga.com
Subject: Re: Pruning dead devices

I think we never implemented it because we didn't want people to delete
devices when there were still files on it... (even if they're destroyed
and not accessible, they still have "files" on it as far as the tracker
is concerned... in the file_on table, and they need to be migrated away,
so the device stub has to exist for the internals... and another device
with the same number can't come along into existence in the meantime)

But I think we could allow devices to be deleted once they're empty...
but then how do you know they're empty, as a sysadmin?  mogadm would
have to show "dead" vs "dead+migrated away clean".  But that's ugly.

So why don't we just hide 'dead' devices in mogadm check?

I'm just brainstorming... any better ideas?


On Mon, 14 May 2007, Jared Klett wrote:

> hello Mogilers,
>
> 	I just upgraded our MogileFS cluster to 2.16 and it's working 
> fabulously - the rebalancing feature is a real lifesaver.
>
> 	however, early on we had a batch of bad drives in one of our
servers 
> and as such have a bunch of dead devices hanging around that make 
> 'mogadm check' rather unsightly and hard to read.
>
> 	is there a way to get rid of those dead devices? I've seen
references 
> in the documentation to 'mogadm device delete host ##' but running 
> that just gives "Help for 'device' command" as output.
>
> 	is it no longer possible to delete devices, or is there another
way?
>
> cheers,
>
> - Jared
>
> --
> Jared Klett
> Co-founder, Blip.tv
> http://blog.blip.tv
>
>


More information about the mogilefs mailing list