NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
eddiewould
Jun 23, 2016Follower
JBOD + BTRFS - questions
Hi,
I don't own a NAS yet but I'm looking at buying a NETGEAR one due to support for btrfs. Here's what I'd like to do:
- I want a single volume
- I don't care about performance (so no striping)
- I don't really care about losing my data, but I don't want to take unnecessary risks. What I mean by that is that 99% of the time a given file should be stored on a single disk. If that disk fails, I should only lose the files that were contained on that disk. I don't expect to be storing any files larger than 10Gb, but the average file size will be in the range of 100Mb to 5Gb.
- I'd like to be able to expand the capacity of my volume in the future
My plan is:
- Two disks (internal) in JBOD configuration (let's assume 2x 2Tb for now for a initial capacity of 4Tb)
- BTRFS filesystem
- When I want to expand, I put the new disk (e.g. 5Tb) into an external USB enclsoure. It comes up at /dev/sdc - I then use "btrfs-replace" to copy the data from one of the internal disks to the USB drive. When that's done, I power down the NAS, remove the disk from the USB enclsoure and put it in the NAS (replacing the one with the correct serial number). When the NAS comes back up, I then run
btrfs filesystem resize max /dev/sda
to get btrfs to expand to the available capacity.
Will this work? Does anyone see any problems with what I'm proposing?
Volume expansion is supported, but only for volumes with some kind of redundancy e.g. RAID-1 and only with disks that are inside the NAS. If you are familiar with the shell it may be possible to manually expand a JBOD volume but this is not supported.
That won't work. We use BTRFS on top of mdadm (yes, we use mdadm even if you have a single disk volume) and we use different partitions for the OS, swap and the data volume. You would need to enter more commands than that and the command to expand the volume would be a little different (as you are not expanding sda, but a volume on raid).
1 Reply
Replies have been turned off for this discussion
- mdgm-ntgrNETGEAR Employee Retired
Volume expansion is supported, but only for volumes with some kind of redundancy e.g. RAID-1 and only with disks that are inside the NAS. If you are familiar with the shell it may be possible to manually expand a JBOD volume but this is not supported.
That won't work. We use BTRFS on top of mdadm (yes, we use mdadm even if you have a single disk volume) and we use different partitions for the OS, swap and the data volume. You would need to enter more commands than that and the command to expand the volume would be a little different (as you are not expanding sda, but a volume on raid).
Related Content
NETGEAR Academy
Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!