Today I replaced the last spinning root disk in the house. The media server still has 4x3TB spinning disks, but the old 120GB spinning boot disk has been replaced by a cheap 1 TB SSD. Boot times improved dramatically, and the database access for various things now feels instantaneous.
Process follows, but it’s nothing extraordinary.
- I shut down the machine
- Disconnected the four storage drives, just to be careful
- Connected the new SSD
- Booted to single user mode
- Partitioned the new SSD (sdb1 and sdb2, for root and swap)
- dd if=/dev/sda1 of=/dev/sdb1 bs=1M
- that took about 30 minutes
- grub-install /dev/sdb
- e2fsck -f /dev/sdb1
- resize2fs /dev/sdb1
- Double-checked UUIDs from /dev/disks/by-uuid and /boot/grub/grub.cfg
- shut down the machine
- unplugged the old root drive, moved the SSD over to that SATA port, reconnected the storage drives
- power up
- marvel at the speed of boot, investigate other issues like the ethernet claiming to be flaky (the plug was loose; replugging solved it).