- To: Daniel Pittman <daniel@xxxxxxxxxxxx>
- Subject: Re: [SLUG] hot swapping hard drives
- From: Tony Sceats <tony.sceats@xxxxxxxxx>
- Date: Sun, 17 May 2009 01:09:52 +1000
- Cc: slug@xxxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=RBDStWfClg9HnJsGvNGEu5p7oM/oGyGCdzEFt2g9Jys=; b=w2BT4P5VYRpVLaeno7DNopuMKKSkSNmT9RI3CdrRnsZ94EK8R0iLiIudquJuPlyY25 UIms8/d+S1Q5AZKSEnS6Y5DaKC0JDoKaC9d2y/16Ib6SLVVL5bgIT9qceA8DkpBTWIVt qpRQEF8vyGjEpSSWLivrfp+GJ0JJRhB7ye00k=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=T+2ATQBmSCLwFVWl00tFFiKWW6G0AvyG8VEp12M71bgPLmPES/jGELlMNOXe3hmaDN aff/QKd29nv1eOtdovo9Tcx9/3nb2gU88Ba3fRmtjvFVF0RbXQKgUTLNCtHiejzDPgP4 rqqP8X0o0WM/u/XcR9UpnufmyXKw3lpY4gT3c=
On Sat, May 16, 2009 at 6:19 PM, Daniel Pittman <daniel@xxxxxxxxxxxx> wrote:
> Tony Sceats <tony.sceats@xxxxxxxxx> writes:
> >>> The CLI command "umount" does this within the Linux / Unix OS.
> >>
> >> That should have the filesystem flush data, but doesn't actually push
> >> out dirty pages for the device — if you accessed it raw at any point
> >> this will not be sufficient.
> >>
> >> (Also, lower layers such as LVM, software RAID, etc, might not flush
> >> their data during the unmount process.)
> >>
> >>> The "sync" command/programming API call is another way to do this
> >>> programmatically.
> >>
> >> That will flush raw blocks from the device also.
> >>
> >>> That is all that is required.
> >>
> >> Those are necessary, but not sufficient, steps, I fear.
> >
> > so if our raw partitions are up-to-date and the file systems are also,
> > thanks to the 'sync' and 'umount' commands done before device removal,
> > what else are you implying would be necessary before the drive is
> > safely pulled?
>
> Didn't I already answer this in the text you cut?
>
> Your controller needs to support SATA hotplug sanely. Your controller
> needs to report the event to the driver. The driver needs to handle the
> event sanely.
o sorry :( I had taken all that on board and I had just read it as though
you were alluding to more things being necessary even again, that's all.. in
fact it's precisely because I thought you'd had it all pretty well covered
that I was confused by that line..
anyway, classically wrong reading of language in an email, who would ever
have thought ;)