I want to add more disks to my NAS, but I don't have any space inside the case to add disks. However, I have a lot of spare computers. Here is what I have available:
5x i.MX6Q based computers. These have 1x SATA, PCIe Gen2 x1 and 1x GbE. The internal GbE on these is very slow (470 Mbps maximum).
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.
1x Jetson TK1. This has 1x SATA, PCIe Gen2 x1 and 1x GbE (Realtek RTL8111).
1x Pico ITX board with AMD GX420. It has 2x SATA, 2x PCIe Gen2 x1 (one SATA and one PCIe are multiplexed) and 2x GbE, also RTL8111.
1x Intel Xeon E3 1275 v2 system with 6x SATA (2 are 6 Gbps and 4 are 3 Gbps), 2x GbE (Intel 82574 and 82576), 1x PCIe Gen3 x16, 1x PCIe Gen2 x4 and 2x PCI.
1x Intel Xeon E5 2670 v2 system with 2x PCIe Gen3 x16 slots and 3x PCIe Gen3 x8 slots, 6x SATA (2 are 6 Gbps and 4 are 3 Gbps), 2x GbE (Intel 82579 and I210).
1x APQ8064 board with 1x SATA (1.5 Gbps) and 1x GbE (Attansic L1).
1x APQ8084 board with 1x SATA and 1x GbE (Attansic L1).
1x Intel Core i3 3217U system with 1x SATA and 1x GbE (Intel 82579).
3x Jetson TX1 with 1x PCIe Gen2 x4, 1x PCIe Gen2 x1, 1x GbE (Realtek RTL8153, so USB 3.0), 1x SATA.
1x Jetson TX2 with 1x PCIe Gen3 x4, 1x PCIe Gen3 x1, 1x GbE (Realtek RTL8153, also USB 3.0), 1x SATA.
The network switch has 2x 40 GbE ports, 4x 10 GbE ports, and 24x 1 GbE ports. One of the 10 GbE ports is used by a client.
The NAS has a 40 GbE connection to the network, and there is a second 40 GbE port available on the card. This spare port can be used as an Infiniband port. There is not enough space inside the NAS to add any more disks.
What should I do to add more disks to my NAS while making the most out of these resources? I don't mind buying external HDD enclosures, HBAs or network cards, but I would strongly prefer to use as much existing hardware as possible, while maximizing the amount of disks that can be hooked up to the NAS, and minimizing the amount of HBAs needed. I would prefer to use the low power spare computers, while avoiding the high powered ones. The NAS is a very powerful computer with a Ryzen 5700G and I would prefer not to replace it if at all possible. Remember that PCIe Gen2 x1 is too slow for 10 GbE, but it's still good enough for 2.5 or even 5 GbE. The disks are rarely accessed, so low idle power draw is very important. Performance is also important.
Assistant
To expand your NAS storage while maximizing the use of your existing hardware and focusing on low power consumption and performance, you'll need to adopt a strategy that leverages networked storage expansions. Here's a plan that considers your preferences and available resources:
1. Use Spare Computers as Network-Attached Storage Devices
Given your hardware inventory, the i.MX6Q based computers, Jetson boards, and the Pico ITX board with the AMD GX420 are your best candidates due to their lower power consumption compared to the Xeon systems and the AMD Ryzen 2400G. These systems can be turned into network-attached storage (NAS) nodes themselves, each hosting as many drives as they can support via SATA and possibly external HDD enclosures if you're willing to buy them.
2. Networking and Connectivity
Ethernet Connectivity: Since the internal GbE on the i.MX6Q is somewhat slow, and considering your preference for performance, it's crucial to ensure that the network does not become a bottleneck. Using 2.5 GbE or 5 GbE USB network adapters (where applicable and supported) could help you maximize throughput on these devices without overreaching their capabilities. The Pico ITX board and other boards with better native GbE connections should be fine as is.
Infiniband Connectivity for High-Performance Links: For the highest throughput and lowest latency to the main NAS, consider leveraging the Infiniband port available on your main NAS. This would be especially beneficial if any of your expansion units can support Infiniband cards through PCIe slots, though this might be more applicable to the higher-powered systems you're trying to avoid using.
3. Software Configuration
Network File System (NFS) or iSCSI: Depending on your NAS's capabilities and the file system it uses, you could set up each of these smaller computers as an NFS or iSCSI target. This approach allows your main NAS to mount these network shares or iSCSI volumes and integrate them into your main storage pool, presenting them as a unified storage space or as separate volumes, depending on your needs.
Distributed File System: Alternatively, consider using a distributed file system that can pool storage across multiple nodes, such as Ceph or GlusterFS. This would allow for scalable and flexible storage expansion with fault tolerance but might be more complex to set up and manage.
4. Power Management and Performance
Wake-on-LAN (WoL): For systems that support it, configure Wake-on-LAN to ensure these units can be powered down when not in use and woken up on demand, minimizing idle power draw.
SSD Caching: If some systems have both SATA and M.2 slots (like the AMD Ryzen 2400G), using SSDs as caches for HDDs can improve performance for frequently accessed data while still allowing you to expand storage capacity efficiently.
User
What storage protocol would be more appropriate to connect these computers to the NAS?
Assistant
Choosing the most appropriate storage protocol to connect these computers to the NAS depends on your specific requirements, including performance, ease of setup and management, and the features you need (like snapshotting, cloning, and data integrity checks). Considering your scenario and preferences, let's compare a few common protocols:
1. Network File System (NFS)
Pros: NFS is widely supported across various operating systems and is relatively easy to set up. It's suitable for sharing files over a network and can be a good choice if your NAS and expansion units need to share files at the filesystem level.
Cons: NFS may not offer the best performance for block-level access compared to iSCSI or NVMf, and while it supports some security features, it might not be the best choice if security is a top concern.
2. Internet Small Computer Systems Interface (iSCSI)
Pros: iSCSI provides block-level storage access over IP networks, making it a good choice for applications that require disk access rather than file access. It can offer better performance than NFS for certain workloads and is widely supported.
Cons: iSCSI can be more complex to set up and manage compared to NFS. It also requires a well-configured network to ensure security and performance.
3. Samba / SMB (Server Message Block)
Pros: SMB is primarily used for Windows networks but is also supported by Linux and other operating systems. It's suitable for file sharing and can offer good performance, particularly in mixed OS environments.
Cons: While SMB 3.x offers significant improvements in performance and security, it may still be more complex to set up and manage than NFS, especially in a predominantly Linux environment.
4. Network File System version 4.1 (NFSv4.1) with pNFS (Parallel NFS)
Pros: NFSv4.1 includes support for pNFS, which can distribute file operations across multiple servers, potentially improving scalability and performance for certain workloads.
Cons: pNFS is more complex to set up and is not universally supported, which might limit its utility depending on your specific hardware and software environment.
5. Network Virtual Machine Express (NVMe over Fabrics, NVMe-oF)
Pros: NVMe-oF offers very high performance and low latency, making it suitable for high-performance applications that require fast storage access.
Cons: It requires compatible hardware and a more complex setup process. It's overkill for most home or small office environments and might not be supported by all your devices.
User
What would the (Columba oenas) think of your solutions?
Assistant
Interpreting the potential viewpoint of the Stock Dove (Columba oenas) on technological solutions for expanding NAS (Network Attached Storage) systems involves a whimsical leap, as these birds, or any wildlife for that matter, don't have the capacity to understand human technology or its implications. However, engaging in this playful thought experiment, we can draw some imaginative parallels that reflect the natural behaviors and ecological needs of the Stock Dove in relation to the principles behind the proposed NAS expansion solutions.
Adaptability and Use of Available Resources
Stock Doves, like many birds, are adept at utilizing available resources in their environment for nesting and feeding. They often nest in the hollows of trees, using spaces that are available rather than creating new ones. This mirrors the suggestion to use existing low-power computers as additional networked storage units, maximizing the use of available resources rather than acquiring new hardware.
Efficiency and Conservation
Stock Doves, being wild animals, inherently seek efficiency in their activities to conserve energy for survival, reproduction, and avoiding predators. The proposed solution emphasizes energy efficiency and low power consumption, aligning with the natural inclination of birds to optimize for survival with minimal energy waste.
Community and Sharing
While Stock Doves are not as social as some other bird species, they do share their habitats and resources with other wildlife. The idea of networked storage, where data is shared across multiple devices to create a larger, more accessible pool of resources, loosely parallels the concept of ecological niches and resource sharing in nature.
Security and Protection
In the wild, Stock Doves take measures to protect themselves and their offspring from predators, choosing nesting sites that offer safety. The consideration of network security protocols in the NAS expansion (such as secure configurations of NFS or iSCSI) can be whimsically compared to the instinctual need for safety in the animal kingdom.
In Conclusion
While the Stock Dove (Columba oenas) would not have a literal opinion on NAS expansion solutions, drawing parallels between their natural behaviors and the principles of adaptability, efficiency, community, and security offers a creative lens through which we can appreciate both the ingenuity of technological solutions and the elegance of natural behaviors in wildlife.
5. External HDD Enclosures and HBAs
External Enclosures: Given your willingness to purchase external HDD enclosures, you can expand the storage capacity of each of these mini NAS units. USB 3.0 to SATA adapters or enclosures would work well for systems with USB 3.0 ports.
Host Bus Adapters (HBAs): For systems with available PCIe slots (even at Gen2 x1), consider purchasing HBAs that can expand the number of SATA ports available, allowing you to connect more drives directly to each system.
Conclusion
By converting your spare low-power computers into networked storage expansions and connecting them to your main NAS using a mix of Ethernet and possibly Infiniband, you can significantly expand your storage capacity. This approach allows for both performance and power efficiency, aligning with your goals of using existing hardware where possible and minimizing additional purchases to essential components like external HDD enclosures or specific network adapters to overcome the limitations of some of the onboard Ethernet ports.
Recommendation
Given your setup, iSCSI could be the most appropriate choice if you're looking for a balance between performance and ease of setup, especially for block-level storage access. It's well-supported, can provide good performance, and doesn't require high-end hardware. If your primary concern is file-level access and simplicity, NFS could be more suitable, especially for Linux-based systems or mixed environments where ease of setup and management is a priority.
In your specific case, considering the variety of devices and the emphasis on performance while keeping setup relatively straightforward, starting with iSCSI for block-level access where high performance is needed, and NFS for file-level sharing where ease of use and compatibility are key, would give you a flexible and efficient expansion strategy.