Gentoo Archives: gentoo-user

From: Frank Steinmetzger <Warp_7@×××.de>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NAS and replacing with larger drives
Date: Thu, 08 Dec 2022 13:59:23
Message-Id: Y5Htqyw/uKQRUyR4@schatulle
In Reply to: [gentoo-user] NAS and replacing with larger drives by Dale
1 Am Thu, Dec 08, 2022 at 06:37:52AM -0600 schrieb Dale:
2 > Howdy,
3 >
4 > I've pretty much reached a limit on my backups.  I'm up to a 16TB hard
5 > drive for one and even that won't last long.  Larger drives are much
6 > more costly.  A must have NAS is quickly approaching.
7
8 Hear hear, ye olde story. ;-)
9
10 > Path one, buy a NAS, possibly used, that has no drives.  If possible, I
11 > may even replace the OS that comes on it or upgrade if I can.
12
13 Difficult in consumer-grade stuff, but there are ways, like for Synology:
14 NetBSD on old Synology hardware:
15 https://wiki.netbsd.org/ports/sandpoint/instsynology/
16 And another alternative OS for Synology: https://xpenology.com/forum/
17
18 However, even though Synology’s current trend of development is a little
19 concerning with vendor lock-in and hardware restrictions in their newest
20 devices, why not use the built-in software? It still is very good and easy
21 to use and offers all you need like HTTP/HTTPS, FTP, CIFS, SSH, Dav etc. It
22 uses btrfs or ext4 internally.
23
24 Disclaimer: I have no first-hand experience with any of those devices, my
25 knowledge comes from news about new devices and stuff that I read in a PC
26 tech forum. Qnap’s software quality does not compete with Synology, and they
27 also have a worse security track record. So don’t hook it up to the Internet
28 directly.
29
30 > I'm not looking for fancy, or even RAID.  Just looking for a two bay NAS
31 > that will work.
32
33 Why just two? Sooner or later, it will become cramped again. Go for four
34 bays and leave them empty for the time being.
35
36 > First, what is a DAS?  Is that totally different than a NAS?  From what
37 > I've found, a DAS is not what I'm looking for since I want a ethernet
38 > connection and the ability to control things over the network.
39
40 According to https://en.wikipedia.org/wiki/Direct-attached_storage, you are
41 right: no ethernet, but direct connection to the host. A beefed-up external
42 drive enclosure, if you will (from the little understanding I got from the
43 article).
44
45 > It seems DAS lacks that feature but not real sure.  I'm not sure I can
46 > upgrade the software/OS on a DAS either. 
47
48 There is no software, it is just a drive bay and the host that you hook it
49 up to does all the logic work.
50
51 > Next thing.  Let's say a NAS comes with two 4TB drives for a total of
52 > 8TB of capacity from the factory, using LVM or similar software I
53 > assume.
54
55 AFAIK, consumer NASes don’t use LVM. Probably only standard Raid-1/5/6/10,
56 JBOD or single disk access.
57
58 > Is that limited to that capacity or can I for example replace one or both
59 > drives with for example 14TB drives for a total of 28TBs of capacity?
60
61 Sure, why not? But then I’d buy one without any drives from the start and
62 install the drives later myself. I wouldn’t know what to do with those small
63 drives if I replaced them with something larger right away.
64
65 > If one does that, let's say it uses LVM, can I somehow move data as well
66 > or is that beyond the abilities of a NAS?
67
68 What do you mean by move? AFAIK, Synology offers SSH access, but I have no
69 idea what you can do with it in terms of plumbing. And why would you? It is
70 supposed to do everything under the hood. But as I said, I don’t expect any
71 of those to use LVM in the first place.
72
73 > Could it be done inside my computer for example?
74
75 With a DAS, you could. ;-) But if push comes to shove, pull out the drives
76 and hook them up to your “puter”.
77
78
79 > Path two, I've researched building a NAS using a Raspberry Pi 4 8GB as
80 > another option.  They come as parts, cases too, but the newer and faster
81 > models of Raspberry Pi 4 with more ram seem to work pretty well.
82
83 Just today, in a forum thread about a new Synology with underwhelming
84 hardware features, people were posting alternatives. One of them was
85 https://kubesail.com/homepage. Currently it’s only a small case with
86 2×2.5″. But they also announced a soon-to-come 5×3.5″.
87
88 > The old slower models with small amounts of ram don't fair as well.  While
89 > I want a descent speed, I'm not looking for or expecting it to be
90 > blazingly fast.
91
92 Only the very old devices with puny ARM chips were so slow they couldn’t
93 saturate Gbit ethernet—with and without encryption. Synologies of recent
94 years with a Celeron J4000 will have no problem. Current models with AMD
95 Ryzen R1600 won’t either, but draw much more power in idle and have no
96 graphics unit. OTOH, they gain ECC memory support.
97
98 > I just wonder, if from a upgrade and expansion point of view, if building
99 > a NAS would be better.
100
101 Regardless of whether DIY or OOTB, a NAS is much more practical than a
102 collection of external single enclosures. Given the rate of your growth and
103 need of space, I do recommend some kind of RAID for resilience against hard
104 disk failure. Does LVM offer this at all? TrueNAS runs from a USB stick and
105 uses ZFS under the hood.
106
107 > I've also noticed, it seems all Raspberry things come with a display port.
108
109 My Pi 3B has HDMI – and HDMI only.
110
111 > That means I could hook up a monitor and mouse/keyboard when needed.  That
112 > could be a bonus.  Heck, I may can even put some sort of Gentoo on that
113 > thing.  :-D
114
115 You could, but this is either a sink-hole for time, or you need to get up to
116 speed with cross-compiling and binhosts. I went with the standard Debian and
117 evaluate Arch from time to time. But I do run Gentoo on my DIY NAS with an
118 i3-2000. Gentoo has ZFS in portage without overlays, which–for me–is one of
119 its biggest appeals.
120
121 > One reason I'm wanting to go this route, I'm trying to keep it small and
122 > able to fit inside my fire safe.
123
124 How small is small? Given your needs, two bays seem very constrained. And if
125 four bays don’t fit, consider a dedicated safe – if it is worth the expense.
126
127 > I plan to buy a media type safe that is larger but right now, it needs to
128 > fit inside my current safe.
129
130 OK. But then it is pointless IMHO to buy a two-bay device now and a four-bay
131 later. You spend more money, you need to migrate and it is not ecological.
132
133 > One thing I'd like to have no matter what path I go down, the ability to
134 > encrypt the data.  My current backup drives are encrypted and I'd like
135 > to keep it that way.  If that is possible to do.
136
137 Not sure about that with Synology (it’s probably a small Internet search
138 away). ZFS has encryption built-in these days. Btrfs does not, it is only
139 planned, according to https://en.wikipedia.org/wiki/Btrfs. You could use an
140 encryption layer on your host, so the NAS only receives encrypted data, but
141 that sounds cumbersome.
142
143 > I suspect the Raspberry option would since I'd control the OS/software
144 > placed on it.  I could be wrong tho. 
145
146 Your OS, your features. ;-) I also encrypt my NAS. My main “threat” scenario
147 is having to send in a drive. That’s why I did not set up any barrier for
148 decryption: the keyfile just sits on the root partition on the system SSD. I
149 was thinking about having the keyfile on a remote device like my pi, though.
150
151 > One last thing.  Are there any NAS type boxes that I should absolutely
152 > avoid if I go that route?
153
154 As I mentioned, QNAP struggles a little with security. But as long as you
155 don’t hook it up to the Internet, that shouldn’t be a problem. On the plus
156 side, they are a little cheaper. But I don’t have any concrete advice to
157 that question.
158
159 > I think the DAS thing may be one for me to avoid but I'm not for sure what
160 > limits it has.
161
162 Well, it has no network, because it has no computer inside. Advantages: one
163 less system to maintain. Disadvantage: no distributed access, you basically
164 put the share features onto the host to which you attach the DAS. This also
165 includes any file system magic like your beloved LVM.
166
167 > Thoughts?  Info to share?  Ideas on a best path forward?  Buy already
168 > built or build?
169
170 Well, I gave you a piece of my mind. I like tinkering with storage. I am
171 also still deliberating how to increase my storage. I am at 80 % of my NAS,
172 which runs 4×6 TB in a RaidZ2 (meaning 2 of the 4 disks—50 % of gross
173 capacity—is for redundancy). I could:
174
175 - Reduce use of space by re-encoding my 3 TB of DVD copys. I wanted to do
176 that anyways and it could recover more than 2 TB.
177 - Install bigger drives. Maybe start out with 2×14 TB and migrate
178 everything. This will lower power consumption, but leaves me with four
179 6-year-old, but still perfectly working NAS drives.
180 - go to RaidZ1, losing redundancy but gaining 50 % space.
181 - Buy a case with more slots and buy more disks, like the new Jonsbo N1
182 (which I also found in the thread I mentioned above) with five slots:
183 https://www.jonsbo.com/en/products/N1.html
184 Or the Fractal Node 304 with six bays:
185 https://www.fractal-design.com/products/cases/node/node-304/black/
186 But both cases require me to buy a new PSU. My current case
187 (https://www.inter-tech.de/productdetails/SC-4100_EN.html) uses a tiny TFX
188 one, and that one was very expensive (Gold rated).
189
190 My board has “only” six SATA ports. I want to avoid installing a PCIe
191 card, because that will increase power draw. But since it is a server
192 board, it has an on-board USB type A, which would allow me to go to
193 TrueNAS and use all six SATAs for disks.
194
195 --
196 Grüße | Greetings | Salut | Qapla’
197 Please do not share anything from, with or about me on any social network.
198
199 There are things of which I do not even talk to myself.

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies

Subject Author
Re: [gentoo-user] NAS and replacing with larger drives Rich Freeman <rich0@g.o>