Skip to content

Instantly share code, notes, and snippets.

@jameswood
Last active November 23, 2022 10:53
Show Gist options
  • Save jameswood/2e4191c02587c2008ea3d27cb7eb1a7f to your computer and use it in GitHub Desktop.
Save jameswood/2e4191c02587c2008ea3d27cb7eb1a7f to your computer and use it in GitHub Desktop.
Use NVME drives on Synology
ls /dev/nvme* # Find NVMe drives
sudo -i # elevate permissions
fdisk -l /dev/nvme0n1 # List partitions on NVMe1
fdisk -l /dev/nvme1n1 # List partitions on NVMe2
synopartition --part /dev/nvme0n1 12 # Create Syno partitions on NVMe1
synopartition --part /dev/nvme1n1 12 # Create Syno partitions on NVMe2
fdisk -l /dev/nvme0n1 # List partitions on NVMe1
fdisk -l /dev/nvme1n1 # List partitions on NVMe2
cat /proc/mdstat # List RAID arrays/logical drives
# mdadm --create /dev/md4 --level=1 --raid-devices=2 --force /dev/nvme0n1p3 /dev/nvme1n1p3 # Create array
mdadm --create /dev/md3 --level=1 --raid-devices=1 --force /dev/nvme0n1p3 #single drive mirror (add more later)
mdadm --grow /dev/md3 --add /dev/nvme0n1p3 --raid-devices=2 # add another drive (nvme0n1) to the array (/dev/md3)
cat /proc/mdstat # Resync progress
echo 0 > /sys/block/md3/queue/rotational # MKFS SSD mode (redundant?)
mkfs.btrfs -f /dev/md3 # btrfs format array
reboot # Reboot
@jameswood
Copy link
Author

to HECK with this tab formatting 🤣

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment