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: Tue, 30 Aug 2022 00:59:31
Message-Id: b927eeaf-1f3b-08d0-7ba1-030cfdd7ad95@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 Mon, Aug 29, 2022 at 12:49:56AM -0500 schrieb Dale:
3 >
4 >>> I run a raspi with some basic services, most importantly a pihole DNS filter
5 >>> and a PIM server. But I find it hacky-patchy with its flimsy USB power cable
6 >>> poking out of the side. I’d prefer a more sturdy construction, which is why
7 >>> I bought a NAS-style PC (zotac zbox nano with a passive 6 W Celeron). But
8 >>> that thing is so fast for every-day computing that I actually put a KDE
9 >>> system on it and now I don’t want to “downgrade” it to a mere server.
10 >> I googled that little guy and that is a pretty neat little machine. 
11 >> Basically it is a tiny puter but really tiny, just not tiny on
12 >> features.  The Zotac systems, even some older ones, are pretty nifty.  I
13 >> think I read they have a ITX mobo which is really compact.
14 > ITX (or rather miniITX) is 17×17 cm: https://en.wikipedia.org/wiki/Mini-ITX
15 > Those NUC-types are much smaller. I don’t quite know whether that board form
16 > factor has a name of its own (aside from NUC, but that’s a marketing name
17 > from Intel).
18 >
19 >> It sort of reminds me of a cell phone.  Small but fast CPUs, some even
20 >> have decent amounts of ram so they can handle quite a lot.  Never heard of
21 >> this thing before.  I wouldn't mind having one of those to work as my
22 >> OpenVPN server thingy.  I'd just need to find one that has 2 ethernet
23 >> ports and designed for that sort of task. 
24 > Many of the ZBoxes have dual NICs, which is what makes them very popular
25 > among server and firewall hackers because they are also very frugal. My
26 > particular model is the CI331:
27 > https://www.zotac.com/us/product/mini_pcs/zbox-ci331-nano-barebone
28 > It has one 2,5″ slot and one undocumented SATA M.2 which can only be reached
29 > by breaking the warranty seal. That’s where zotac installs a drive if you
30 > buy a zbox with Winblows pre-installed.
31 >
32 > After updating the BIOS, which allowed the CPU to enter lower C states, it
33 > draws 6 W on idle. It’s not a record, but still not so much for a 24/7 x86
34 > system.
35
36 I was looking for one with two ethernet ports but wasn't having any luck
37 yet.  I did find and download like a catalog thing but it will take a
38 while to dig through it.  They have a lot of models for different
39 purposes.  I did see a pre-made thing on ebay but can't recall the brand
40 that cost hundreds that was made just for VPNs and such.  It was really
41 pricey tho.  But, you plug it in, boot it up and it had evrything
42 installed and then some to control networks traffic.  It had stuff I
43 never heard of. 
44
45 I notice that several are made for home theater devices.  That's pretty
46 neat too. 
47
48
49 >>>> I have a old computer that I might could use.  It is 4 core something
50 >>>> and I think it has 4GBs of memory, maxed out.  I think it will perform
51 >>>> well enough but wish it had a little more horses in it.
52 >>> An Intel Celeron from the Haswell generation (i.e. 8+ years old) did not
53 >>> have AES-NI yet, and it reached around 160 MB/s encryption speed. I tried
54 >>> it, because I had dealings with those processors in the past before I built
55 >>> my own NAS. Your old tech may still be usable, but please also consider
56 >>> power cost and its impact on the environment if it runs 24/7.
57 >> I'm not real sure what that old machine has.  I have Linux, can't recall
58 >> the distro tho, on it.  Is there a way to find out if it supports the
59 >> needed things?
60 > cat /proc/cpuinfo and look for aes or the like. Or enter the processor name
61 > into wikipedia, which will redirect you to the “List of processors by
62 > <Manufacturer>” with huge tables of comparision and general info on an
63 > architecture’s improvements over its predecessor, like AES.
64
65 I have booted that old thing up and I grepped cpuinfo and no AES that I
66 could see or grep could find.  Must be before it's time. 
67
68 While I had it booted up, I checked into what all it did have.  It only
69 has 4 SATA ports, one already used for the OS hard drive.  I could
70 likely run it from a USB stick which would make all 4 available.  It has
71 8GBs of memory too.  CPU is a AMD Phenom 9750 Quad running at 2.4GHz.  I
72 found it add that cpuinfo showed a different speed I think.  I'll check
73 it again later. Maybe I misread it.  It's not a speedster or anything
74 but I may can do something with it.  It also has two old PCI slots and
75 one that I'm pretty sure is a PCIex16 for like a video card but it has a
76 built in one already.  To add more SATA ports, I'd have to use the
77 faster slot really made for video cards.  Guess it would work but. 
78 Also, it only has a 100MB ethernet port.  Fairly slow but I'm not going
79 to expect a lot of hard drive speed either. 
80
81
82 >>>> I may use actual NAS software too.
83 >>> What is “actual NAS software”? Do you mean a NAS distribution? From my
84 >>> understanding, those distros install the usual services (samba, ftp, etc.)
85 >>> and develop a nice web frontend for it. But since those are web
86 >>> applications, there isn’t much to be gained from march=native.
87 >> I've seen TrueNAS, OpenNas I think and others.  Plus some just use
88 >> Ubuntu or something.  Honestly, almost any linux distro with no or a
89 >> minimal GUI would work. 
90 > OK, but then you don’t run those on Gentoo. And those NAS distros are so
91 > small and light-weight, they can be run from a USB stick if you so choose.
92 > My NAS’s mainboard has a USB-A socket on-board for that reason.
93
94 I downloaded several but plan to look at FreeNAS first.  Just see what
95 it looks like.  Pretty sure it is BSD based. 
96
97
98 >>>>   I'm sure Gentoo would work to with proper tweaking but then I need to
99 >>>> deal with compiling things.  Of course, no libreoffice or anything big so
100 >>>> it may not be to bad.  Thing is, the NAS software will likely be more
101 >>>> efficient since it is designed for the purpose. 
102 >>> More efficient than what?
103
104 Bigger system with lots of software running and using even more power,
105 some of which may not even be needed. 
106
107
108 >> I figure something like OpenNAS or TrueNAS would work better as it is
109 >> built to be user friendly and has tools by default to manage things. 
110 > Yeah, I was thinking of using one of those, too. But I liked the idea of
111 > being more flexible with some ZFS voodoo which the web interfaces won’t
112 > allow. Like creating a downgraded pool because I don’t have enough HDDs, filling
113 > that up and adding the missing disk later. Sometimes I wish for the bigger
114 > ease of use of a web interface.
115 >
116 >> I'm pretty sure they support RAID and such by default.  It is likely set
117 >> up to make setting it up easier too. 
118 > They do, naturally. And yes, the frontends hide lots of the gory details.
119 >
120
121
122 That's my thinking since RAID, ZFS and such are new to me.  Of course,
123 front ends do take away a lot of fine controls too, usually. 
124
125 Dale
126
127 :-)  :-) 

Replies

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