Gentoo Archives: gentoo-user

From: Dale <rdalek1967@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] NAS and replacing with larger drives
Date: Mon, 12 Dec 2022 00:32:20
Message-Id: e0c391ae-78ea-2441-9c62-347dc71fa49a@gmail.com
In Reply to: Re: [gentoo-user] NAS and replacing with larger drives by Frank Steinmetzger
1 Frank Steinmetzger wrote:
2 > Am Sun, Dec 11, 2022 at 08:44:42AM -0700 schrieb Mark Knecht:
3 >
4 >> Also, I think there are ways for you to build complex pools like a RAID0
5 >> from your 6TB and 8TB drives, and then a RAID1 using the RAID0 and your
6 >> 14TB drive but I've never tried it because mine don't have enough drive
7 >> slots for that.
8 > After a longer fruitless search on the interwebs (I ddidn’t want to start up
9 > my NAS just to check this) I finally found the right search keywords and
10 > found a reddit thread about that. And it even throws LVM into the
11 > discussion. ^^
12 > https://www.reddit.com/r/zfs/comments/fitc73/raidz_with_nested_vdevs/
13 >
14 > Also <https://zfs-discuss.zfsonlinux.narkive.com/g2THW8n4/nested-vdevs>:
15 > “Here's a definitive answer from the man page for zpool.
16 >
17 > Virtual devices cannot be nested, so a mirror or raidz virtual device can
18 > only contain files or disks. Mirrors of mirrors (or other combinations) are
19 > not allowed.”
20 >
21 >
22 > I would advise against a JBOD pool anyways. Because if one drive dies, the
23 > whole JBOD is gone. That goes for ZFS and probably for LVM, too (though I am
24 > not sure how writes are distributed across JBOD disks). If the goal is
25 > redundancy, you could buy a second drive to match the size of an existing
26 > one and build a mirror. If redundancy is not a goal, then use the drives
27 > separately like you do now. If one fails, then only its content is gone (or
28 > even just the files sitting on the broken sector).
29 >
30 >> Also, turn on compression. It saves me between 15-20% so 14TB becomes 16TB
31 >> storage. YMMV. Video files don't compress, at least not much. Data files
32 >> generally do.
33 > It doesn’t hurt to switch it on, especially with lzo. But with video, the
34 > benefit will be negligible. When storing a block of data (a “record” in ZFS
35 > speak), it is passed through the compressor and only if the compression gain
36 > is above a given threshold (10 % methinks), the block is written to disk
37 > with compression.
38 >
39 > What is more relevant in filesystems for big files (i.e. videos): set the
40 > record size to 1 MB. The default is 64 kB, IIRC. Each record requires one
41 > block of metadata (which includes the record checksum). So bigger records →
42 > fewer meta blocks → better storage efficiency.
43 >
44 > If you use big records for small files, then efficiency goes down a little.
45 > It’s a similar (but a little more complicated) principle as when you write a
46 > 100 byte text file to a file system that uses 4 kB clusters. That file will
47 > still use up 4 kB on disk.
48 >
49 > The record size can be set per-dataset. So in your pool you could create a
50 > dataset with a smaller record size for office documents, images and music,
51 > and another dataset just for videos.
52 >
53 >> Hope this helps. I think you'll find TrueNAS fun actually but there is a
54 >> learning curve. I've used it for about a year and barely scratched the
55 >> surface.
56 > The main reason for me why I would wanna use it as opposed to a standard
57 > Gentoo install: the OOTB web interface to manage all sorts of accounts,
58 > access and permissions under one nice hood.
59 >
60
61
62 Interesting info.  Since this is a duplicate copy already, I'm not to
63 worried about RAID stuff.  I'd rather have two separate backups myself. 
64 Store them in different places for even more safety.  Still, one of
65 these days.  ;-) 
66
67 I'm still getting this error. 
68
69 root@fireball ~ # mkdir /mnt/Backup/Videos
70 mkdir: cannot create directory ‘/mnt/Backup/Videos’: Permission denied
71 root@fireball ~ #
72
73 I've tried every permission in every place I can find.  I have a user
74 set up, set permissions under storage and pools, all the little
75 directory thingys under it too.  It mounts so I'd think I got everything
76 set up correctly in the Share section.  I actually followed a guide and
77 I don't think I missed anything.  Still, I can't write anything to the
78 thing.  It mounts fine, even shows it is mounted rw.  I can't find
79 anything wrong on the puter or NAS ends.  This reminds me of the last
80 time I played with BSD.  It works so different, it just throws a person
81 upside down and shakes them. 
82
83 I did switch to TrueNAS tho.  Thing is, I got the same result from both,
84 exact same error.  Can't be a bug.  It has to be me.  No idea what I
85 missed but I bet I did.  lol  Just gonna keep banging on it.  :-D  I do
86 like the GUI part.  That's pretty neat. 
87
88 Dale
89
90 :-) :-) 

Replies

Subject Author
Re: [gentoo-user] NAS and replacing with larger drives Dale <rdalek1967@×××××.com>