this post was submitted on 29 May 2024
1 points (100.0% liked)

It's A Digital Disease!

23 readers
1 users here now

This is a sub that aims at bringing data hoarders together to share their passion with like minded people.

founded 2 years ago
MODERATORS
 
The original post: /r/datahoarder by /u/bloepz on 2024-05-29 06:47:35.

I currently have 2*3TB in RAID1 (HDD) and have two new disks (6TB HDD) which I want to use instead.

It is encrypted and looks like this:

/dev/sd(d,e)1 (partitions) -> /dev/md1 (raid1) -> /dev/mapper/raid1 (crypt) -> /files/raid1 (ext4)

Is it better/faster to:

  • Create a new RAID1 on the two 6TB, encrypt it, create filesystem and copy the data from the old RAID1 to this new RAID1

or

  • Add disks to the existing RAID1, grow it and resize the crypt and fs like this:

mdadm /dev/md1 --add /dev/sdf1 /dev/sdh1 --replace /dev/sdd1 /dev/sde1 --with /dev/sdf1 /dev/sdh1

mdadm /dev/md1 --remove /dev/sdd1 /dev/sde1

cryptsetup --resize /dev/mapper/raid1

resize2fs /dev/mapper/raid1

Availability is not an issue - it can be offline for the whole time. I'm assuming growing the existing would take more time but that's purely a guess. And does one of those models do more wear on the new disks?

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here