Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Getting maximum space out of a hard drive
Date: Mon, 29 Aug 2022 07:24:25
Message-Id: 01915166-1963-62c6-4184-bdb66bb1ac77@gmail.com
In Reply to: Re: [gentoo-user] Getting maximum space out of a hard drive by Frank Steinmetzger
1 Frank Steinmetzger wrote:
2 > Am Fri, Aug 26, 2022 at 06:26:39AM -0500 schrieb Dale:
3 >
4 >> I looked into the Raspberry and the newest version, about $150 now,
5 >> doesn't even have SATA ports.  I can add a thing called a "hat" I think
6 >> that adds a couple but thing is, that costs more and still isn't
7 >> enough.
8 > I run a raspi with some basic services, most importantly a pihole DNS filter
9 > and a PIM server. But I find it hacky-patchy with its flimsy USB power cable
10 > poking out of the side. I’d prefer a more sturdy construction, which is why
11 > I bought a NAS-style PC (zotac zbox nano with a passive 6 W Celeron). But
12 > that thing is so fast for every-day computing that I actually put a KDE
13 > system on it and now I don’t want to “downgrade” it to a mere server.
14 >
15
16
17 I googled that little guy and that is a pretty neat little machine. 
18 Basically it is a tiny puter but really tiny, just not tiny on
19 features.  The Zotac systems, even some older ones, are pretty nifty.  I
20 think I read they have a ITX mobo which is really compact.  It sort of
21 reminds me of a cell phone.  Small but fast CPUs, some even have decent
22 amounts of ram so they can handle quite a lot.  Never heard of this
23 thing before.  I wouldn't mind having one of those to work as my OpenVPN
24 server thingy.  I'd just need to find one that has 2 ethernet ports and
25 designed for that sort of task. 
26
27
28 >> I have a old computer that I might could use.  It is 4 core something
29 >> and I think it has 4GBs of memory, maxed out.  I think it will perform
30 >> well enough but wish it had a little more horses in it.
31 > An Intel Celeron from the Haswell generation (i.e. 8+ years old) did not
32 > have AES-NI yet, and it reached around 160 MB/s encryption speed. I tried
33 > it, because I had dealings with those processors in the past before I built
34 > my own NAS. Your old tech may still be usable, but please also consider
35 > power cost and its impact on the environment if it runs 24/7.
36
37 I'm not real sure what that old machine has.  I have Linux, can't recall
38 the distro tho, on it.  Is there a way to find out if it supports the
39 needed things?  Since I'd mostly be using it as a backup system, it
40 won't run all the time.  I usually do backups on weekends when I update
41 the OS.  Recently tho, since the internet is so fast, I have done it
42 twice a week.  Just keep in mind, all this is encrypted. 
43
44
45 >> I looked at something called ITX but they have only one PCIe slot
46 >> usually.  That's not enough.  I'd like to have two 6 or 8 port SATA
47 >> cards.  Then balance the drives on each.  I think some of the through
48 >> put is shared so the more drives on it, the slower it can be.  I'd like
49 >> to have two such cards. 12 or 16 drives should be enough to last a
50 >> while.
51 >>
52 >> Part of me wants to do RAID but not sure about that.
53 > Dealing with so many drives, I think there’s no getting around RAID. All
54 > drives fail. The more drives you have, the earlier the first failure. With
55 > that many drives, I wouldn’t want to handle syncs between them by hand in
56 > order to get redundancy or backups of backups.
57 >
58
59 It's a step I need to take but I have to accumulate the needed drives
60 first.  I'm getting there tho, slowly. 
61
62
63 >> While I don't think I need a super powerful machine, I do want enough
64 >> that it will perform well.
65 > The question is: what do you need it to perform? If it’s just storing and
66 > serving files, save the bucks and use any low-end x86 processor with AES
67 > instructions. My NAS first ran on the above mentioned Celeron, but later I
68 > did upgrade to a low-power i3 (because the case¹ is very cramped, I don’t
69 > want too much heat in there). It is a dual-core with SMT and AES at 35 W.
70 > IIRC, it can encrypt around 800-something MB/s. And that is an old i3-4170.
71 > Modern chips are most probably much faster still.
72 >
73 >> I may use actual NAS software too.
74 > What is “actual NAS software”? Do you mean a NAS distribution? From my
75 > understanding, those distros install the usual services (samba, ftp, etc.)
76 > and develop a nice web frontend for it. But since those are web
77 > applications, there isn’t much to be gained from march=native.
78 >
79 > I still run Gentoo on my NAS, just for the old habit and because it comes
80 > with ZFS right out of the box. But the services I still configure the
81 > classical way – ssh, vim and config files.
82
83 I've seen TrueNAS, OpenNas I think and others.  Plus some just use
84 Ubuntu or something.  Honestly, almost any linux distro with no or a
85 minimal GUI would work. 
86
87
88 >>   I'm sure Gentoo would work to with proper tweaking but then I need to
89 >> deal with compiling things.  Of course, no libreoffice or anything big so
90 >> it may not be to bad.  Thing is, the NAS software will likely be more
91 >> efficient since it is designed for the purpose. 
92 > More efficient than what?
93 >
94 > My NAS is powered up every few weeks or often months. And then the first
95 > thing I do is—of cours—a world update. And as you mentioned, the install
96 > base is rather small. No graphical stuff whatsoever (server board, small
97 > ASMedia VGA chip on-board, no Intel graphics). The biggest pkgs are gcc
98 > (around 2 hours build time) and llvm. The rest is user land stuff that helps
99 > me in dealing with the media files the NAS serves. Mkvtoolnix is a compile
100 > hog at around half an hour.
101
102 I figure something like OpenNAS or TrueNAS would work better as it is
103 built to be user friendly and has tools by default to manage things. 
104 I'm pretty sure they support RAID and such by default.  It is likely set
105 up to make setting it up easier too. 
106
107
108 >> I just know I need a proper machine for the task.  I'm getting lots of
109 >> data fast now.  I hit the 80% mark overnight.  At 90%, I consider it
110 >> critical.  Something must be done soon. 
111 > How about watching the spoils for a change instead of only ever downloading
112 > it? ;-)
113 >
114 >
115 > ¹ https://www.inter-tech.de/en/products/ipc/storage-cases/sc-4100
116
117
118 I've likely watched everything I download at least twice.  I admit, I
119 like things from back in the 70s, 80s and such quite a lot.  Most shows
120 today are just trash, I'm trying to be polite.  ;-) 
121
122 Thanks for the info.  Especially the little tiny Zotack thing.  One neat
123 little machine. 
124
125 Dale
126
127 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Getting maximum space out of a hard drive Frank Steinmetzger <Warp_7@×××.de>