Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Re: MBR partition
Date: Mon, 08 Sep 2014 01:10:36
Message-Id: 540D0202.80306@gmail.com
In Reply to: Re: [gentoo-user] Re: MBR partition by Kerin Millar
1 Kerin Millar wrote:
2 > On 07/09/2014 01:28, Dale wrote:
3 >> Kerin Millar wrote:
4 >>> On 06/09/2014 13:54, Alan McKinnon wrote:
5 >>>> On 06/09/2014 14:48, Dale wrote:
6 >>>>> James wrote:
7 >>>>>> Joseph <syscon780 <at> gmail.com> writes:
8 >>>>>>
9 >>>>>>> Thank you for the information.
10 >>>>>>> I'll continue on Monday and let you know. If it will not boot
11 >>>>>>> with sector
12 >>>>>> starting at 2048, I will
13 >>>>>>> re-partition /boot sda1 to start at 63.
14 >>>>>>
15 >>>>>> Take some time to research and reflect on your needs (desires?)
16 >>>>>> about which file system to use. (ext 2,4) is always popular and
17 >>>>>> safe.
18 >>>>>> Some are very happy with BTRFS and there are many other interesting
19 >>>>>> choices (ZFS, XFS, etc etc)......
20 >>>>>>
21 >>>>>> There is no best solution; but the EXT family offers tried and
22 >>>>>> proven
23 >>>>>> options. YMMV.
24 >>>>>>
25 >>>>>>
26 >>>>>> hth,
27 >>>>>> James
28 >>>>>>
29 >>>>>
30 >>>>> I'm not sure if it is ZFS or XFS but I seem to recall one of those
31 >>>>> does
32 >>>>> not like sudden shutdowns, such as a power failure. Maybe that has
33 >>>>> changed since I last tried whichever one it is that has that
34 >>>>> issue. If
35 >>>>> you have a UPS tho, shouldn't be so much of a problem, unless your
36 >>>>> power
37 >>>>> supply goes out.
38 >>>>
39 >>>> XFS.
40 >>>>
41 >>>> It was designed by SGI for their video rendeing workstations back
42 >>>> in the
43 >>>> day and used very aggressive caching to get enormous throughput. It
44 >>>> was
45 >>>> also brilliant at dealing with directories containing thousands of
46 >>>> small
47 >>>> files - not unusual when dealing with video editing.
48 >>>>
49 >>>> However, it was also designed for environments where the power is
50 >>>> guaranteed to never go off (which explains why they decided to go with
51 >>>> such aggressive caching). If you use it in environments where
52 >>>> powerouts
53 >>>> are not guaranteed to not happen, well......
54 >>>
55 >>> Well what? It's no less reliable than other filesystems that employ
56 >>> delayed allocation (any modern filesystem worth of note). Over recent
57 >>> years, I use both XFS and ext4 extensively in production and have
58 >>> found the former trumps the latter in reliability.
59 >>>
60 >>> While I like them both, I predicate this assertion mainly on some of
61 >>> the silly bugs that I have seen crop up in the ext4 codebase and the
62 >>> unedifying commentary that has occasionally ensued. From reading the
63 >>> XFS list and my own experience, I have formed the opinion that the
64 >>> maintainers are more stringent in matters of QA and regression testing
65 >>> and more mature in matters of public debate. I also believe that
66 >>> regressions in stability are virtually unheard of, whereas regressions
67 >>> in performance are identified quickly and taken very seriously [1].
68 >>>
69 >>> The worst thing I could say about XFS is that it was comparatively
70 >>> slow until the introduction of delayed logging (an idea taken from
71 >>> ext3). [2] [3]. Nowadays, it is on a par with ext4 and, in some cases,
72 >>> scales better. It is also one of the few filesystems besides ZFS that
73 >>> can dynamically allocate inodes.
74 >>> <<SNIP>>
75 >>> --Kerin
76 >>>
77 >>> [1]
78 >>> http://www.percona.com/blog/2012/03/15/ext4-vs-xfs-on-ssd/#comment-903938
79 >>>
80 >>> [2]
81 >>> https://www.kernel.org/doc/Documentation/filesystems/xfs-delayed-logging-design.txt
82 >>>
83 >>> [3] https://www.youtube.com/watch?v=FegjLbCnoBw
84 >>>
85 >>>
86 >>
87 >> The point I was making in my comment was about if the power fails
88 >> without a proper shutdown. When I used it a long time ago, it worked
89 >> fine, until there was a sudden power loss. That is when problems pop
90 >> up. If a person has a UPS, should be good to go.
91 >
92 > The point I was making is that there is not a shred of evidence to
93 > suggest that XFS is any less resilient in this scenario than newer
94 > filesystems employing delayed allocation such as ext4, btrfs and ZFS.
95 > What I take issue with is that people continue to single XFS out for
96 > criticism, regardless. Let XFS be judged as it it stands today, just
97 > as any other actively developed filesystem should be.
98 >
99 > Filesystem implementations are not set in stone. Just as ext4
100 > developers had to resolve certain engineering challenges raised by the
101 > use of delayed allocation, so have XFS developers had to do the same
102 > before them [1].
103 >
104 > Arguments generally critical of the use of delayed allocation where
105 > power loss is a likely event would hold water. Fortunately, options
106 > remain for such a scenario (ext3, ext4 + nodelalloc).
107 >
108 > --Kerin
109 >
110 > [1]
111 > https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=7d4fb40
112 >
113 >
114
115 Which is why I said that the issue could have changed since I last used
116 that file system. What I learned is this, every time there was a sudden
117 power fail, it was unrecoverable. I ended up reinstalling the OS. That
118 is why I posted what I did. Still, the point is this, if the OP is
119 going to use the file system that had that issue, research first to make
120 sure they are prepared for what may still be a side effect or that is is
121 no longer a problem now. Every file system there is has something
122 negative. It's up to us to find out if that negative can or will apply
123 to us. Having the info is better than not having at all. I wish I knew
124 that before I tried XFS before.
125
126 I might add, I've had a few sudden power fails on systems with ext4.
127 What I have not had yet was a unrecoverable file system like I had with
128 XFS. Maybe XFS is improved now but even recently, ext4 didn't seem to
129 have that issue, at least on the system I was using it on. I also have
130 no plans to try XFS again even tho I have a UPS now.
131
132 Now that the OP has info that he/she may not have had before, they can
133 make a more informed decision.
134
135 Dale
136
137 :-) :-)