Hi,
I currently have a single disk containing @ (root) and @home subvolumes. I'm using timeshift to take backups of the root partition and snapper (btrfs-assistant) to take backups of /home. Everything is working great except my disk is getting maxed out and so I want to migrate /home to a dedicated 1TB drive.
Currently the @ (root) and @home are mounted as such:
UUID=f6e56409-da8e-43b1-b238-d041419bbce4 / btrfs subvol=@,compress=zstd:1,ssd,noatime,space_cache=v 2,discard=async 0 0
UUID=f6e56409-da8e-43b1-b238-d041419bbce4 /home btrfs subvol=@home,compress=zstd:1,ssd,noatime,space_cac he=v2,discard=async 0 0
These are the available filesystems
~/ sudo btrfs filesystem show
Label: 'fedora_localhost-live' uuid: f6e56409-da8e-43b1-b238-d041419bbce4
Total devices 1 FS bytes used 159.65GiB
devid 1 size 199.30GiB used 192.07GiB path /dev/nvme1n1p3
Label: 'Home' uuid: 54678ba4-0944-45a9-8027-497aee5cfba4
Total devices 1 FS bytes used 637.52GiB
devid 1 size 953.87GiB used 641.02GiB path /dev/nvme0n1p1
These are the subvolumes mounted on /
btrfs subvolume list /
ID 257 gen 120222 top level 5 path @home
ID 494 gen 120207 top level 5 path @
ID 511 gen 120152 top level 257 path @home/.snapshots
ID 638 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-01_20-06-55/@
ID 674 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-03_10-00-01/@
ID 694 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-04_14-00-02/@
ID 723 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-05_12-00-01/@
ID 875 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-09_21-00-02/@
ID 876 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-09_22-14-31/@
ID 877 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-09_23-21-20/@
ID 972 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-13_14-00-02/@
ID 1012 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-14_18-00-01/@
ID 1254 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-23_21-00-01/@
ID 1257 gen 66675 top level 494 path var/lib/docker/btrfs/subvolumes/ab0d5fbba151ed84f96f00aa448b463675913c2a5224d42ecc f9093f229b4037
ID 1258 gen 66673 top level 494 path var/lib/docker/btrfs/subvolumes/f52451a1a0cee52d1de74348b840cbd2c25da13efe116b15b7 d45de2d4d024a9-init
ID 1259 gen 66673 top level 494 path var/lib/docker/btrfs/subvolumes/f52451a1a0cee52d1de74348b840cbd2c25da13efe116b15b7 d45de2d4d024a9
ID 1260 gen 66676 top level 494 path var/lib/docker/btrfs/subvolumes/6ba6a864c29a7d1a01ac3201587ec3d6471f717242c968fa71 a3c3061e7557f4-init
ID 1261 gen 66676 top level 494 path var/lib/docker/btrfs/subvolumes/6ba6a864c29a7d1a01ac3201587ec3d6471f717242c968fa71 a3c3061e7557f4
ID 1363 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-27_20-00-01/@
ID 1537 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-10-05_08-55-04/@
ID 1769 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-10-13_13-42-30/@
ID 1822 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-10-16_13-00-01/@
.....
etc
I formatted my new drive, with gnome-disks as a btrfs. Mounted it to /mnt/new_home and copied all the data from /home to it using tar -cf - /home |tar -C /mnt/new-home -xvf - and all files and permissions look to be okay.
At this point I'm not sure how to proceed. I tried to update the fstab by commenting out the original /home entry and replacing it with the one below but It goes straight to system maintenance mode until I put the original entry back in place. I'm guessing I may to do some work in a liveboot environment, not sure
# New Home:
UUID=54678ba4-0944-45a9-8027-497aee5cfba4 /home btrfs subvol=home,compress=zstd:1,ssd,noatime,space_cach e=v2,discard=async 0 0
Anyone know what I need to do get the new home drive mounted up right so I can back it up with Snapper and also how I can mount the original home to /mnt/old_home until everythings working and i can delete it?
I'm learning btrfs atm so any help is really appreciated!
Cheers
Sunny
I currently have a single disk containing @ (root) and @home subvolumes. I'm using timeshift to take backups of the root partition and snapper (btrfs-assistant) to take backups of /home. Everything is working great except my disk is getting maxed out and so I want to migrate /home to a dedicated 1TB drive.
Currently the @ (root) and @home are mounted as such:
UUID=f6e56409-da8e-43b1-b238-d041419bbce4 / btrfs subvol=@,compress=zstd:1,ssd,noatime,space_cache=v 2,discard=async 0 0
UUID=f6e56409-da8e-43b1-b238-d041419bbce4 /home btrfs subvol=@home,compress=zstd:1,ssd,noatime,space_cac he=v2,discard=async 0 0
These are the available filesystems
~/ sudo btrfs filesystem show
Label: 'fedora_localhost-live' uuid: f6e56409-da8e-43b1-b238-d041419bbce4
Total devices 1 FS bytes used 159.65GiB
devid 1 size 199.30GiB used 192.07GiB path /dev/nvme1n1p3
Label: 'Home' uuid: 54678ba4-0944-45a9-8027-497aee5cfba4
Total devices 1 FS bytes used 637.52GiB
devid 1 size 953.87GiB used 641.02GiB path /dev/nvme0n1p1
These are the subvolumes mounted on /
btrfs subvolume list /
ID 257 gen 120222 top level 5 path @home
ID 494 gen 120207 top level 5 path @
ID 511 gen 120152 top level 257 path @home/.snapshots
ID 638 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-01_20-06-55/@
ID 674 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-03_10-00-01/@
ID 694 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-04_14-00-02/@
ID 723 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-05_12-00-01/@
ID 875 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-09_21-00-02/@
ID 876 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-09_22-14-31/@
ID 877 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-09_23-21-20/@
ID 972 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-13_14-00-02/@
ID 1012 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-14_18-00-01/@
ID 1254 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-23_21-00-01/@
ID 1257 gen 66675 top level 494 path var/lib/docker/btrfs/subvolumes/ab0d5fbba151ed84f96f00aa448b463675913c2a5224d42ecc f9093f229b4037
ID 1258 gen 66673 top level 494 path var/lib/docker/btrfs/subvolumes/f52451a1a0cee52d1de74348b840cbd2c25da13efe116b15b7 d45de2d4d024a9-init
ID 1259 gen 66673 top level 494 path var/lib/docker/btrfs/subvolumes/f52451a1a0cee52d1de74348b840cbd2c25da13efe116b15b7 d45de2d4d024a9
ID 1260 gen 66676 top level 494 path var/lib/docker/btrfs/subvolumes/6ba6a864c29a7d1a01ac3201587ec3d6471f717242c968fa71 a3c3061e7557f4-init
ID 1261 gen 66676 top level 494 path var/lib/docker/btrfs/subvolumes/6ba6a864c29a7d1a01ac3201587ec3d6471f717242c968fa71 a3c3061e7557f4
ID 1363 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-09-27_20-00-01/@
ID 1537 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-10-05_08-55-04/@
ID 1769 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-10-13_13-42-30/@
ID 1822 gen 119007 top level 5 path timeshift-btrfs/snapshots/2022-10-16_13-00-01/@
.....
etc
I formatted my new drive, with gnome-disks as a btrfs. Mounted it to /mnt/new_home and copied all the data from /home to it using tar -cf - /home |tar -C /mnt/new-home -xvf - and all files and permissions look to be okay.
At this point I'm not sure how to proceed. I tried to update the fstab by commenting out the original /home entry and replacing it with the one below but It goes straight to system maintenance mode until I put the original entry back in place. I'm guessing I may to do some work in a liveboot environment, not sure
# New Home:
UUID=54678ba4-0944-45a9-8027-497aee5cfba4 /home btrfs subvol=home,compress=zstd:1,ssd,noatime,space_cach e=v2,discard=async 0 0
Anyone know what I need to do get the new home drive mounted up right so I can back it up with Snapper and also how I can mount the original home to /mnt/old_home until everythings working and i can delete it?
I'm learning btrfs atm so any help is really appreciated!
Cheers
Sunny
Comment