![]() Notice that both disks have the same UUID (Universal Unique IDentifier) number: UUID: 095d3b5c-58dc-4893-a79a-98d56a84d75d Verify block device $ blkid | tail -2 Incompat features: extref, skinny-metadata Or in one-liner (as-root): mkfs.btrfs -L WD40PURZ -m raid1 -d raid1 /dev/mapper/WD40PURZ-85A /dev/mapper/WD40PURZ-85T There are a lot of write/read errors :( btrfs version $ sudo btrfs -versionīy using mkfs, selecting a disk label, choosing raid1 metadata and data to be on both disks (mirror): $ sudo mkfs.btrfs $ sudo cryptsetup status /dev/mapper/WD40PURZ-85TĬurrent disks $sudo btrfs device stats /mnt/data/ $ sudo cryptsetup status /dev/mapper/WD40PURZ-85A Print block device attributes: $ sudo blkid | tail -2 This will overwrite data on /dev/sdc irrevocably. $ sudo cryptsetup luksFormat /dev/sdc -key-file /etc/crypttab.keys/WD40PURZ-85T This will overwrite data on /dev/sde irrevocably.Īre you sure? (Type 'yes' in capital letters): YES $ sudo cryptsetup luksFormat /dev/sde -key-file /etc/crypttab.keys/WD40PURZ-85A It is time to format and encrypt the hard disks with Luksīe very careful, choose the correct disk, type uppercase YES to confirm. Verify two (2) 4k size random keys, exist on the above directory with list files: $ sudo ls -l /etc/crypttab.keys/WD40PURZ-85* This is also useful for automated scripts (encrypt/decrypt disks) instead of typing a pass phrase.Ĭreate a folder to save the encrypted keys: $ sudo mkdir -pv /etc/crypttab.keys/ I prefer to use random generated keys for the disk encryption. With list hardware: $ sudo lshw -short | grep disk Verify it with hwinfo $ hwinfo -short -disk Try to identify them from the kernel with list block devices: $ lsblk The system sees them as: $ sudo find /sys/devices -type f -name model -exec cat The two (2) Western Digital Purple 4TB are manufacture model: WDC WD40PURZ ![]() When working with Raid 1, the most important things to consider are:Īnd all the disks should have the same specs, otherwise size and speed will downgraded to the smaller and slower disk. One can argue that diversity of models and manufactures to reduce possible firmware issues of a specific series should be preferable. Usually for Raid 1 purposes, I prefer using the same model. It is important to use disks with the exact same size and speed. My primarly daily use is streaming media (video/audio/images) via minidlna instead of cifs/nfs (samba), although the service is still up & running. I had concerns with the slower RPM but in the end of this article, you will see some related stats. ![]() ![]() This will give me about 3.64T (from 1.86T). Western Digital Purple 4TB, about 100€ each, SATA III (6 Gbit/s), 5400 RPM, 64 MB Cache Western Digital Green 1TB, about 70€ each, SATA III (6 Gbit/s), 7200 RPM, 64 MB Cache The existing disks are 7.1y WD 1TB and the new disks are WD Purple 4TB. I had to replace one of my existing data/media setup (btrfs-raid0) due to some random hardware errors in one of the disks. This page servers as my personal guide/documentation, althought you can use it with little intervention.ĭisclaimer: Be very careful! This is a mini-HOWTO article, do not copy/paste commands. Hi! I’m writing this article as a mini-HOWTO on how to setup a btrfs-raid1 volume on encrypted disks (luks). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |