Gentoo Archives: gentoo-user

From: Mark Knecht <markknecht@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] OT:Choosing a filesystem
Date: Fri, 02 Apr 2010 22:14:50
Message-Id: n2r5bdc1c8b1004021514j4e6c2ff4vcb6e8d970eebe537@mail.gmail.com
In Reply to: Re: [gentoo-user] OT:Choosing a filesystem by Paul Hartman
1 On Fri, Apr 2, 2010 at 3:03 PM, Paul Hartman
2 <paul.hartman+gentoo@×××××.com> wrote:
3 > On Fri, Apr 2, 2010 at 4:55 PM, Mark Knecht <markknecht@×××××.com> wrote:
4 >> On Fri, Apr 2, 2010 at 2:49 PM, Paul Hartman
5 >> <paul.hartman+gentoo@×××××.com> wrote:
6 >>> On Fri, Apr 2, 2010 at 2:50 PM, Volker Armin Hemmann
7 >>> <volkerarmin@××××××××××.com> wrote:
8 >>>> On Freitag 02 April 2010, Neil Bothwick wrote:
9 >>>>> On Fri, 2 Apr 2010 20:40:54 +0200, Volker Armin Hemmann wrote:
10 >>>>> > > LVM and RAID are completely different animals. No one suggested using
11 >>>>> > > it for any reasons of data security, running LVM on a RAID array
12 >>>>> > > gives both security and flexibility. As for being able to add space
13 >>>>> > > to RAID, you can't temporarily add a new volume whenever you want,
14 >>>>> > > you have to go out and buy another drive, then power down the
15 >>>>> > > computer to fit it, assuming there is room in the case for an extra
16 >>>>> > > drive.
17 >>>>> >
18 >>>>> > no need to power down - and you can add and remove drives. Read man
19 >>>>> > mdadm.
20 >>>>>
21 >>>>> Assuming your controller supports hotplugging, assuming you have a drive
22 >>>>> available to plug in, assuming you are able to physically add a drive.
23 >>>>
24 >>>> sata can hotplug. all ahci controlers can hotplug and all sata drives can
25 >>>> hotplug. If you insist on technology straight from the stone ages that is your
26 >>>> problem.
27 >>>
28 >>> Do you know if it's necessary to signal to the system (like /proc/scsi
29 >>> something) that I'm about to unplug the drive, and in which order the
30 >>> power/data need to be disconnected to prevent a problem? I'm curious
31 >>> in case of future need. :)
32 >>>
33 >>> Thanks.
34 >>
35 >> If it's part of a RAID the new one gets rebuilt.
36 >>
37 >> If it's not part of a RAID then I think, as per Neil's example, the
38 >> computer is pretty much dead, right? However if you wanted to try it
39 >> (and I'm not brave enough so don't listen to me) then you might want
40 >> to do something like
41 >>
42 >> grep -A 1 dirty /proc/vmstat
43 >>
44 >> and wait until nothing is dirty.
45 >>
46 >> Just an idea,
47 >
48 > Well, forgetting about RAID and bad drives, I should be able to
49 > unmount a normal, working SATA drive and unplug it safely, just like
50 > with a USB hard drive. I just don't know if you have to signal to
51 > SATA/AHCI that you're going to unplug (like with old hot-swappable
52 > SCSI drives), or if you need to unplug data cable before unplugging
53 > the power cable, for example.
54 >
55 >
56
57 I've never done it but according to the SATA spec yes. As with all
58 drive umount first. Nothing I've read says it's truly safe to do it
59 too many times. It's easy to damage or wear out the connectors or the
60 drive.
61
62 It's the #1 'end-user benefit' according to the SATA spec web pages:
63
64 http://www.serialata.org/technology/why_sata.asp
65
66 - Mark