mardi 24 avril 2018

kid2/kid3 : new disk situation

So now kid3 only has two remaining disks: 500GB for system(s) and 2TB for btrfs /home

The WD 2TB drive has been moved to kid2 and after twiddling with the BIOS boot order kid2 went online again and happily started a full backup of run12l.

So I have a little bit of time to fiddle with the btrfs again.  Here's the situation (in addition, there's still an unconnected HDD in kid2, don't know what it is).

Systems are on /dev/sdb : 149,1 GiB, 160041885696 octets, 312581808 secteurs
btrfs small part on /dev/sda1 : 596,2 GiB, 640135028736 octets, 1250263728 secteurs
btrfs large part on /dev/sdd : 1,8 TiB, 2000398934016 octets, 3907029168 secteurs
So /dev/sdc is the WD migrated from kid3:

Disque /dev/sdc : 1,8 TiB, 2000398934016 octets, 3907029168 secteurs
Unités : sectors of 1 * 512 = 512 octets
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x000ef301

Périphérique Amorçage     Start        Fin   Secteurs   Size Id Type
/dev/sdc1                  2048  976575284  976573237 465,7G 83 Linux
/dev/sdc2             976576512 3907029167 2930452656   1,4T 8e LVM Linux


So after:
sudo btrfs device add -f /dev/sdc1 /var/backup/urBackup/

I get:
Label: none  uuid: 4881245e-bed5-4526-b9ff-3b5ba39b283d
        Total devices 3 FS bytes used 1.10TiB
        devid    3 size 596.17GiB used 567.03GiB path /dev/sda1
        devid    4 size 1.82TiB used 567.03GiB path /dev/sdd
        devid    5 size 465.67GiB used 0.00B path /dev/sdc1


Then to free the small 640GB drive I can use:
sudo btrfs device remove /dev/sda1 /var/backup/urBackup/

lundi 23 avril 2018

kid3/kid2 hard disks: current state

/dev/sdc6         101253   7981     88106   9% /
/dev/sdc3         111493    126    111368   1% /videos
/dev/sdc2         218500  48874    169627  23% /windows
/dev/sda1        1907729 873821   1032357  46% /home


/dev/sdc is the original Windows/Linux boot/Swap disk and has the root in sdc6:

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdc1              63  81835109  81835047    39G 27 Hidden NTFS WinRE
/dev/sdc2  *     81836032 529324031 447488000 213,4G  6 FAT16
/dev/sdc3       529324032 757660408 228336377 108,9G  7 HPFS/NTFS/exFAT
/dev/sdc4       757661694 976771071 219109378 104,5G  5 Extended
/dev/sdc5       968599552 976771071   8171520   3,9G 82 Linux swap / Solaris
/dev/sdc6       757661696 968599551 210937856 100,6G 83 Linux


/dev/sda is a single btrfs drive, on the 2TB that came from base:
Device     Boot Start        End    Sectors  Size Id Type
/dev/sda1        2048 3907029167 3907027120  1,8T 83 Linux



/dev/sdb is currently unused and contains:
Device     Boot     Start        End    Sectors   Size Id Type
/dev/sdb1            2048  976575284  976573237 465,7G 83 Linux
/dev/sdb2       976576512 3907029167 2930452656   1,4T 8e Linux LVM


/dev/sdb1 and /dev/sdc3 are empty; sdb2 is the old /home LVM that didn't mount very well lately.  So /dev/sdb is essentially free to be reused to extend the btrfs, or move to kid2 (the new backup server with urBackup).

But extending kid3's home directory is not urgent (currently not yet 50% used and could probably be cleaned too).  On kid2, the btrfs for urBackup is not under stress either, with 1.10 TB used on 3 drives, including one 2TB drive that could be enough to hold everything anyway.

So I decide to not decide doing anything right now.  Maybe I could free the 2 extra drives in kid2 as they're small capacity and could be reused to revive an old laptop or so:
 
sudo btrfs device remove /dev/sdc1 /var/backup/urBackup/

So the above command did take a while, but ended up freeing /dev/sdc1 which is the 500GB hard drive that I bought for 5€.  The 640GB that remains can't be freed for the moment as it is part of the RAID1 profile.  So now I'm planning to add the 2TB drive to this:

Label: none  uuid: 4881245e-bed5-4526-b9ff-3b5ba39b283d
    Total devices 2 FS bytes used 1.10TiB
    devid    3 size 596.17GiB used 567.03GiB path /dev/sda1
    devid    4 size 1.82TiB used 567.03GiB path /dev/sdd



and when done I could easily remove the sda1 small drive.

lundi 9 avril 2018

LVM hiccups

LVM doesn't start OK anymore

This happened yesterday on kid3 (oops - allmost all my data lives there)

Symptom: boot interrupted (can't mount /home in mount -a during boot).  Troubleshooting: turns out that /dev/mapper no longer contains the required links.  Also, it seems to contain snapshots probably created by the urBackup agent but that's another story.

Cure: wait for the maintenance login promt, re-create the missing links with vgscan --mknodes, mount /home again.

Further plan: remove the 2TB seagate drive from base (Packard Bell) and install it in kid3 (ACER).  I will need an extender cable for the SATA power to be able to reach the DVD drive, due to rerouting its power cable to the drive coming from base.  Create a btrfs on that disk instead of the LVM+ext4 configuration that the other 2TB drive currently has.  Mount that under /home2 and:

sudo rsync -vaxHAX /home /home2