Pacemaker – How can I expand the Active-Active cluster with FreeNAS as shared storage?

I powered two physical nodes Ubuntu and connected to each other with Corosync. And I have it FreeNAS Server as NAS. This NAS Server mounted on each node – base scenario.

Now I can't add another hard drive / SDD to my NAS. I can't add more space. No more free SATA ports and no more PCI ports to add more ports. "All juices pressed". I only see one solution: rerun NAS Server, mount it on each node like the first one, update the app configuration on each node to inform about the new available path and restart these apps.

I think that's the worst possible solution:

  1. Must stop apps
  2. Too much manual stuff

Please help me with the best solution in my case. Thank you in advance.

vpn – Two-part contribution to VeraCrypt and FreeNas

This question is a kind of two-part:
First, if there is a VeraCrypt container on my freeNAS server and I use Veracrypt to access encrypted data from the NAS on a separate device, will the data be unencrypted before or after being sent to the device?

Second, if the data is unencrypted before leaving the NAS, should I set up an encrypted VPN between my devices and the NAS and if so, how should I do it? Or is it a better alternative?

I have multiple devices on the network, but I just want to be able to access the data on the NAS because it contains confidential documents and other material that only certain employees can access.

If you can't say I'm a novice when it comes to networking and remote data storage in general.

Any help is appreciated.

The primary network card loses connection to Synology and FreeNAS NAS systems

I have a computer with three network cards.

  1. 10 Gbit / s Nic
  2. 200 MB Nic (USB)
  3. 1 Gbit / s Nic used for VPN to the office. It is connected to another VLAN that has a VPN to the office.

I can transfer files between Windows computers with Nics 2 and 3 disabled all day. However, when I connect to my Freenas or my synology, the file transfer starts and then stops.

I exchanged my 10 Gbit / s connection from Eithernet 10 Gbit / s to Fiber 10 Gbit / s, set up various switches (and routers), even IP address ranges. but the same thing happens.

When I start NIC 2, files are transferred without problems.

I have not set up any jumbo packets, I have a static IP in NIC 1 and the subnet and everything is correct.

Any ideas on what I'm doing wrong? I really don't think it's SMB because it works fine on another network card.

Service – FreeNAS + LAGG Slow Transfer?

I have built a new file server that should be well built for its purpose. It has 2 Intel (R) Xeon (R) CPU E5-2660 v3 with 128 GB RAM and runs LCAP via an Intel X540T2 network card to a Netgear GS752TP switch. Our router is an Ubiquiti EdgeMax

When trying to transfer 1 GB of data to it, the speed remains at 12 Mbit / s. I've seen it reach up to 25Mbps, but it has dropped to 500Kbps. Both in short bursts.

I ran two iperf Tests, one with "-u -b 1000m" at the end and the other with nothing. I will post the results below.

My question is why this transfer is so slow and hardwired on all GB devices. Could something be configured?

I appreciate any advice you have for me.

Test results 1 from the computer with "-u -b 1000m"

    ( ID) Interval           Transfer     Bandwidth       Total Datagrams
(  4)   0.00-1.00   sec   109 MBytes   918 Mbits/sec  14012
(  4)   1.00-2.00   sec  94.2 MBytes   790 Mbits/sec  12061
(  4)   2.00-3.00   sec   104 MBytes   871 Mbits/sec  13293
(  4)   3.00-4.00   sec   108 MBytes   906 Mbits/sec  13827
(  4)   4.00-5.00   sec   113 MBytes   952 Mbits/sec  14527
(  4)   5.00-6.00   sec   114 MBytes   953 Mbits/sec  14545
(  4)   6.00-7.00   sec   111 MBytes   930 Mbits/sec  14197
(  4)   7.00-8.00   sec   109 MBytes   918 Mbits/sec  14014
(  4)   8.00-9.00   sec   114 MBytes   956 Mbits/sec  14582
(  4)   9.00-10.00  sec   103 MBytes   868 Mbits/sec  13244
- - - - - - - - - - - - - - - - - - - - - - - - -
( ID) Interval           Transfer     Bandwidth       Jitter    Lost/Total Datagrams
(  4)   0.00-10.00  sec  1.06 GBytes   906 Mbits/sec  0.044 ms  50745/138072 (37%)
(  4) Sent 138072 datagrams

iperf Done.

Test 1 results from the server with "-u -b 1000m"

( ID) Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
(  5)   0.00-1.00   sec  65.2 MBytes   547 Mbits/sec  0.047 ms  4776/13117 (36%)
(  5)   1.00-2.00   sec  68.4 MBytes   574 Mbits/sec  0.062 ms  3333/12089 (28%)
(  5)   2.00-3.00   sec  68.3 MBytes   573 Mbits/sec  0.060 ms  4448/13192 (34%)
(  5)   3.00-4.00   sec  67.8 MBytes   569 Mbits/sec  0.021 ms  4993/13675 (37%)
(  5)   4.00-5.00   sec  68.6 MBytes   575 Mbits/sec  0.053 ms  5901/14676 (40%)
(  5)   5.00-6.00   sec  68.3 MBytes   573 Mbits/sec  0.088 ms  5883/14629 (40%)
(  5)   6.00-7.00   sec  68.0 MBytes   570 Mbits/sec  0.037 ms  5455/14155 (39%)
(  5)   7.00-8.00   sec  67.6 MBytes   567 Mbits/sec  0.037 ms  5659/14306 (40%)
(  5)   8.00-9.00   sec  68.4 MBytes   573 Mbits/sec  0.029 ms  5581/14330 (39%)
(  5)   9.00-10.00  sec  68.5 MBytes   574 Mbits/sec  0.161 ms  4522/13288 (34%)
(  5)  10.00-10.05  sec  3.29 MBytes   600 Mbits/sec  0.044 ms  194/615 (32%)
- - - - - - - - - - - - - - - - - - - - - - - - -
( ID) Interval           Transfer     Bitrate         Jitter    Lost/Total Datagrams
(  5)   0.00-10.05  sec   682 MBytes   570 Mbits/sec  0.044 ms  50745/138072 (37%)  receiver

Test 2 results from the computer

( ID) Interval           Transfer     Bandwidth
(  4)   0.00-1.00   sec  26.8 MBytes   224 Mbits/sec
(  4)   1.00-2.00   sec  29.2 MBytes   246 Mbits/sec
(  4)   2.00-3.00   sec  29.8 MBytes   250 Mbits/sec
(  4)   3.00-4.00   sec  30.2 MBytes   254 Mbits/sec
(  4)   4.00-5.00   sec  30.0 MBytes   251 Mbits/sec
(  4)   5.00-6.00   sec  29.8 MBytes   250 Mbits/sec
(  4)   6.00-7.00   sec  30.0 MBytes   252 Mbits/sec
(  4)   7.00-8.00   sec  28.0 MBytes   235 Mbits/sec
(  4)   8.00-9.00   sec  28.8 MBytes   241 Mbits/sec
(  4)   9.00-10.00  sec  30.0 MBytes   252 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
( ID) Interval           Transfer     Bandwidth
(  4)   0.00-10.00  sec   292 MBytes   245 Mbits/sec                  sender
(  4)   0.00-10.00  sec   292 MBytes   245 Mbits/sec                  receiver

iperf Done.

Test 2 results from the server

( ID) Interval           Transfer     Bitrate
(  5)   0.00-1.00   sec  26.5 MBytes   222 Mbits/sec
(  5)   1.00-2.00   sec  29.4 MBytes   247 Mbits/sec
(  5)   2.00-3.00   sec  29.6 MBytes   248 Mbits/sec
(  5)   3.00-4.00   sec  30.3 MBytes   254 Mbits/sec
(  5)   4.00-5.00   sec  29.9 MBytes   251 Mbits/sec
(  5)   5.00-6.00   sec  29.7 MBytes   249 Mbits/sec
(  5)   6.00-7.00   sec  30.0 MBytes   252 Mbits/sec
(  5)   7.00-8.00   sec  28.2 MBytes   236 Mbits/sec
(  5)   8.00-9.00   sec  28.7 MBytes   241 Mbits/sec
(  5)   9.00-10.00  sec  30.0 MBytes   252 Mbits/sec
(  5)  10.00-10.02  sec   128 KBytes  51.2 Mbits/sec
- - - - - - - - - - - - - - - - - - - - - - - - -
( ID) Interval           Transfer     Bitrate
(  5)   0.00-10.02  sec   292 MBytes   245 Mbits/sec                  receiver

zfs – FreeNAS, add os mirror after installation

I selected two USB sticks on which FreeNAS should be installed during the installation. Everything is now set up and working.
Can I now add a third USB stick as a mirror without reinstalling everything? If so, how?

Does the mirrored boot filesystem also get some resilience / checksum handling in FreeNAS?

And if one of the USB drives fails and I put a new one in the same port, will the mirror be restored?

Virtualization – How can I prevent Freenas from assigning the same device number to two hard drives from different SATA controllers?

I ran Freenas in a VM in XCP-NG. I have followed the instructions and dedicated him a SATA controller with PCI passthrough. Freenas correctly detects the boot virtual disk and two physical disks connected through the SATA controller. Unfortunately, Freenas identifies both the virtual boot disk and the first physical disk as ada0.

I get the following when I run geom disk list

Geom name: ada0
Providers:
1. Name: ada0
   Mediasize: 8589934592 (8.0G)
   Sectorsize: 512
   Mode: r1w1e2
   descr: (null)
   ident: (null)
   rotationrate: unknown
   fwsectors: 0
   fwheads: 0

Geom name: cd0
Providers:
1. Name: cd0
   Mediasize: 0 (0B)
   Sectorsize: 2048
   Mode: r0w0e0
   descr: QEMU QEMU DVD-ROM
   ident: (null)
   rotationrate: unknown
   fwsectors: 0
   fwheads: 0

Geom name: ada0
Providers:
1. Name: ada0
   Mediasize: 4000787030016 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   descr: WDC WD40EZRZ-00WN9B0
   lunid: 50014ee20d58de88
   ident: WD-WCC4E5SLVZV7
   rotationrate: 5400
   fwsectors: 63
   fwheads: 16

Geom name: ada1
Providers:
1. Name: ada1
   Mediasize: 4000787030016 (3.6T)
   Sectorsize: 512
   Stripesize: 4096
   Stripeoffset: 0
   Mode: r1w1e2
   descr: WDC WD40EZRX-22SPEB0
   lunid: 50014ee2b6e06d20
   ident: WD-WCC4E4EN0Y9S
   rotationrate: 5400
   fwsectors: 63
   fwheads: 16

As you can see, ada0 appears twice. This brings up all sorts of chaos with ZFS when building core dumps zpool import You can also try to load the existing pool onto the physical disks.

Some things that I learned during my research.

  1. If I use Linux instead of freenas, the disks are recognized as xvda, sda and sdb.

  2. If I change the location of the boot floppy to 2 instead of 0, it will become ada2 and the pool import will work. However, this is not possible because several more physical disks are scheduled.

  3. I can not tell XCP-NG to give the boot disk a high number that does not conflict with physical disks because the VM will not boot. It appears that the boot disk needs to be in position 3 or lower.

  4. In a Youtube video, someone else who did this used a SAS controller instead, and the physical disks were tagged with da0, da1, etc. to avoid the conflict. – https://www.youtube.com/watch?v=yrRLm_iHkRM

Can I force Freenas to renumber the disks of the second controller differently? Can I force the use of da0? Can I force it to start with a different offset, such as: Eg ada1? Can I give the virtual disk a different device name? Can I get XCP-NG to boot from a hard drive in any location? Am I only stuck if I do not buy a SAS controller?

freenas – offline deduplication software for ZFS

I have a 300 TB Freenas server to back up multiple Linux nodes. Backup works with daily snapshot and rsync tasks.

The user often moves large amounts of data (2 to 5 TB) between servers. As a result, large files are often backed up multiple times on multiple servers.

Online deduplication would be too expensive (1.5TB of RAM …). Is there an offline deduplication software?

I mean, the files have the same name and often the same access times – fdupes would see them as identical with minimal effort …

User Management – What is the purpose of the group "wheel" under FreeBSD (FreeNAS) OS?

I'm setting up a new server based on FreeNAS, a FreeBSD-based operating system. The system has a group, wheel, I have a vague idea that sysadmins should be added to the group wheeland that the group gives the ability to use su (Super user). However, I can not write this down anywhere.

What is the purpose of the group wheel? Under what circumstances should I add my users? If you can refer me to a FreeBSD System Administrator's Guide that explains this, great. Otherwise, ServerFault will become this guide.

backup – How to thin snapshots on freenas

I have a freenas server as backup server – a snapshot of a record is taken every night and a few minutes later a rsync task starts to backup the data on my freenas.

In Webui I have only the ability to take snapshots automatically and after a certain time to delete automatically.

Does anyone have a script to extract snapshots? I just want to have a daily snapshot of the last week, a weekly of the last 6 weeks and a monthly for 2 months before that …

(Data is volatile, saving space by thinning snapshots.)