jeudi 15 février 2018

Disks swaps in kid2, btrfs continued...

Disk (end of) life

Kid2 is happily running the urBackup system for 3 windows laptops but doesn't really have the disk space required to continue the lifesize test (i.e. backuping my most disk-intensive Linux systems). So I ordered a 2TB drive from Amazon. Got i/o errors then sent it back. Still waiting confirmation for the refund, not a terribly good experience so far. I recycled two 2.5" hard disks, one from an older laptop and another from a thrift store, so I could continue running urBackup in the meantime. Then I got i/o errors from the PATA drives (both of them, the 6.4GB from an older desktop and also the 200GB from the thrift store). Long story short, I did order another 2TB drive from eBay this time, it arrived yesterday so I mounted and tested it. I removed the PATA drives and currently the 300GB is still in the box but not connected due to lack of SATA power cables. Benchmarked the new drive, seems OK:


Add to btrfs

Like so:
sudo btrfs device add -f /dev/sdd /var/backup/urBackup
Then:
 sudo btrfs filesystem show
Label: none  uuid: 4881245e-bed5-4526-b9ff-3b5ba39b283d
    Total devices 3 FS bytes used 145.29GiB
    devid    1 size 465.76GiB used 74.03GiB path /dev/sdc1
    devid    3 size 596.17GiB used 74.03GiB path /dev/sda1
    devid    4 size 1.82TiB used 0.00B path /dev/sdd
Make some use of the new available space:
sudo btrfs balance start /var/backup/urBackup
 WARNING:

    Full balance without filters requested. This operation is very
    intense and takes potentially very long. It is recommended to
    use the balance filters to narrow down the scope of balance.
    Use 'btrfs balance start --full-balance' option to skip this
    warning. The operation will start in 10 seconds.
    Use Ctrl-C to stop it.
10 9 8 7 6 5 4 3 2 1
Starting balance without any filters.
....after...a...long...while...
Done, had to relocate 75 out of 75 chunks

Label: none  uuid: 4881245e-bed5-4526-b9ff-3b5ba39b283d
    Total devices 3 FS bytes used 148.21GiB
    devid    1 size 465.76GiB used 50.00GiB path /dev/sdc1
    devid    3 size 596.17GiB used 51.03GiB path /dev/sda1
    devid    4 size 1.82TiB used 51.03GiB path /dev/sdd

Add a new Linux client

Host run12l is a good candidate now that we have more space available.  It has a 300GB HDSSD quite filled up with photos and videos.  It used to have a client already installed, so it was just a matter of reactivating it and defining it in the "Unix" group so that the /home directory becomes the default backup directory instead of the C:\Users windows default.  First full backup started, looks good.