This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

Replacing good drives

Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
quzar
NewUser
NewUser
Posts: 4
Joined: 03 Jul 2012 15:35
Status: Offline

Replacing good drives

Post by quzar »

Is there a method to replace a working online drive in a pool with one of higher capacity aside from remove->replace->resilver? It seems to me that there should be a method that involves reading ONLY from the drive being replaced, so as to not incur stress on all drives in the system each step of the way.

For reference, I have an 8x3TB raidz setup that I'm attempting to upgrade to 8x5TB. Originally I had planned on building a second system and zfs sending the data over, but I can no longer do that (lacking the hardware resources).

I'd rather not have all data read and re-read 8 times to finish this process (it seems it may take ~4 weeks to complete this way).

User avatar
crowi
Forum Moderator
Forum Moderator
Posts: 1176
Joined: 21 Feb 2013 16:18
Location: Munich, Germany
Status: Offline

Re: Replacing good drives

Post by crowi »

The only way I see, is to shutdown the server then try to dd each individual drive to a bigger one and then expand the filesystem, but I would not go that way.
NAS 1: Milchkuh: Asrock C2550D4I, Intel Avoton C2550 Quad-Core, 16GB DDR3 ECC, 5x3TB WD Red RaidZ1 +60 GB SSD for ZIL/L2ARC, APC-Back UPS 350 CS, NAS4Free 11.0.0.4.3460 embedded
NAS 2: Backup: HP N54L, 8 GB ECC RAM, 4x4 TB WD Red, RaidZ1, NAS4Free 11.0.0.4.3460 embedded
NAS 3: Office: HP N54L, 8 GB ECC RAM, 2x3 TB WD Red, ZFS Mirror, APC-Back UPS 350 CS NAS4Free 11.0.0.4.3460 embedded

User avatar
b0ssman
Forum Moderator
Forum Moderator
Posts: 2438
Joined: 14 Feb 2013 08:34
Location: Munich, Germany
Status: Offline

Re: Replacing good drives

Post by b0ssman »

this would transfer the array to the new drives, but i am not sure if you can then autoexpand the drives.

a better solution is to set up a new array and copy the data using zfs send. do you have 8 ports free? or a second controller?
Nas4Free 11.1.0.4.4517. Supermicro X10SLL-F, 16gb ECC, i3 4130, IBM M1015 with IT firmware. 4x 3tb WD Red, 4x 2TB Samsung F4, both GEOM AES 256 encrypted.

kenZ71
Advanced User
Advanced User
Posts: 379
Joined: 27 Jun 2012 20:18
Location: Northeast, USA
Status: Offline

Re: Replacing good drives

Post by kenZ71 »

You do have a backup right? Would it be easier to restore from backup?
11.2-RELEASE-p3 | ZFS Mirror - 2 x 8TB WD Red | 28GB ECC Ram
HP ML10v2 x64-embedded on Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz

Extra memory so I can host a couple VMs
1) Unifi Controller on Ubuntu
2) Librenms on Ubuntu

quzar
NewUser
NewUser
Posts: 4
Joined: 03 Jul 2012 15:35
Status: Offline

Re: Replacing good drives

Post by quzar »

dd does not sound like a good idea.

This is all valueless home data, so there's no full backup of the system.

I'm looking in to trying the zfs send method. Is it significantly faster than other transfer mechanisms (CIFS/NFS/FTP/etc)?

Post Reply

Return to “ZFS (only!)”