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: Thu, 25 Aug 2022 19:00:12
Message-Id: d960be97-8183-a264-f86a-5eb3e6c21e21@gmail.com
In Reply to: Re: [gentoo-user] Getting maximum space out of a hard drive by Jack
1 Jack wrote:
2 > On 8/25/22 08:52, Rich Freeman wrote:
3 >> On Thu, Aug 25, 2022 at 8:43 AM Dale <rdalek1967@×××××.com> wrote:
4 >>> I've already got data on the drive now with the default settings so it
5 >>> is to late for the moment however, I expect to need to add drives
6 >>> later.  Keep in mind, I use LVM which means I grow file systems quite
7 >>> often by adding drives.  I don't know if that grows inodes or not.  I
8 >>> suspect it does somehow.
9 >> It does not.  It just means that if you want to reformat it you have
10 >> to reformat all the drives in the LVM logical volume.  :)
11 >
12 > As I remember, if you enlarge a logical volume by adding a new
13 > physical volume, you then have to expand the filesystem to use that
14 > additional space.  Looking at resize2fs, it does increase the number
15 > of inodes, but only linearly in proportion to the amount of increased
16 > size.  I don't see any way to tell it to decrease, or even just not
17 > increase, the number of inodes.
18 >
19 > Related question - how much space would you actually save by
20 > decreasing the number of inodes by 90%?  Enough for one or two more
21 > videos?
22 >
23 >
24 >
25
26
27 Now I have to admit, that is a question I have too.  That's why I was
28 wondering about tools that give info on inodes and such.  It could be it
29 just is not worth the effort to change the defaults.  Most videos are
30 either pushing 1GB or around 2GBs, depending on length of video.  If it
31 only saves a few 100MBs or even a few GBs, it won't really help much. 
32 The difference just isn't large enough.  If I was storing small files,
33 then it would but then I'd need those inodes as well.  Sort of a catch
34 22 there. 
35
36 At the moment, I just don't know enough about whether I should change
37 the defaults or not.  It's one of those, it's not really broke so it may
38 not need fixing. 
39
40 TLDR:  I will say this tho, I'm loving this fast internet even tho my
41 VPN seems to slow things down some.  Still, it is a LOT faster than DSL
42 by a huge margin.  Some things download so fast, if I blink, I miss it. 
43 When I do eix-sync, it is mostly processing things here with the CPU or
44 organizing files.  Downloading the files tends to be limited by the
45 server on the other end.  Downloading things like libreoffice, Firefox
46 etc takes seconds.  I use tail -f to watch it and it goes by really
47 fast.  My last update was quite large and I think it took less than 2
48 minutes. 
49
50 I'll be getting a new hard drive to add pretty soon.  :-D
51
52 While at it, can I move the drives on LVM to another system without
53 having to copy anything?  Just physically move the drives and LVM see
54 them correctly on the new system?  I may try to build a small computer
55 for a NAS soon.  I'm not sure what is the least I can buy that will
56 perform well.  I need to look into small mobos to see what options I
57 have.  I mostly need a CPU to handle moving files, memory to pass it
58 through and lots of SATA ports.  I figure a fast card for most SATA ports. 
59
60 Dale
61
62 :-)  :-) 

Replies

Subject Author
Re: [gentoo-user] Getting maximum space out of a hard drive Rich Freeman <rich0@g.o>
Re: [gentoo-user] Getting maximum space out of a hard drive Wols Lists <antlists@××××××××××××.uk>
Re: [gentoo-user] Getting maximum space out of a hard drive David Haller <gentoo@×××××××.de>