Hi.

Two news (one is OT and advertising to my btrfsManage script)

I had to recreate from scratch two corrupted btrfs filesystems probably due to 
out of space during a snapshot receive.

Almost it's a habit rebuild the filesystems after a few months.



OT

I have released the latest version of my backup and btrfs manage scritp.

https://sourceforge.net/projects/btrfsmanage/

Bash script for managing btrfs filesystem (local and remote):
- Perform scrubs
- Creating snapshots
- Send snapshots
- List and delete snapshot
- Mount snapshot
- Simple to use and verify proper operation.
- Designed to be run from the shell or from the crontab.
- No setup, just copy btrfsManage.
- The subvolume on which to perform the snapshot is detected by the subvolume 
currently mounted.
- The subvolume necessary to btrfsManage are created and mounted 
automatically.


For example

/usr/local/bin/btrfsManage OPTION:usage SEND / /dev/sda3


(2017-08-19 15:45:01) Start btrfsManage
. . . Start managing SEND ' / ' filesystem ' root ' snapshot in ' /dev/sda3 '

Sending ' root-2017-08-19_15:20:01.129 ' source snapshot to ' btrfsreceive ' 
subvolume
. . . btrfs send -p /tmp/tmp.p8JVMMpzZI/btrfssnapshot/root/
root-2017-08-17_10:43:01.128 /tmp/tmp.p8JVMMpzZI/btrfssnapshot/root/
root-2017-08-19_15:20:01.129 | btrfs receive /tmp/tmp.UexL3E9E2F/btrfsreceive/
root/.part/
. . . At subvol /tmp/tmp.p8JVMMpzZI/btrfssnapshot/root/
root-2017-08-19_15:20:01.129
. . . At snapshot root-2017-08-19_15:20:01.129

Creation ' root-2017-08-19_15:20:01.129 ' snapshot from ' .part/
root-2017-08-19_15:20:01.129 ' subvolume
. . . Create a readonly snapshot of '/tmp/tmp.UexL3E9E2F/btrfsreceive/
root/.part/root-2017-08-19_15:20:01.129' in '/tmp/tmp.UexL3E9E2F/btrfsreceive/
root/root-2017-08-19_15:20:01.129'
. . . Delete subvolume (commit): '/tmp/tmp.UexL3E9E2F/btrfsreceive/root/.part/
root-2017-08-19_15:20:01.129'

btrfs filesystem usage -T /tmp/tmp.UexL3E9E2F
Overall:
 Device size: 830.44GiB
 Device allocated: 513.02GiB
 Device unallocated: 317.42GiB
 Device missing: 0.00B
 Used: 509.83GiB
 Free (estimated): 318.41GiB (min: 159.70GiB)
 Data ratio: 1.00
 Metadata ratio: 2.00
 Global reserve: 512.00MiB (used: 0.00B)

 Data Metadata System 
Id Path single DUP DUP Unallocated
-- --------- --------- -------- -------- -----------
 1 /dev/sda3 505.01GiB 8.00GiB 16.00MiB 317.42GiB
-- --------- --------- -------- -------- -----------
 Total 505.01GiB 4.00GiB 8.00MiB 317.42GiB
 Used 504.01GiB 2.91GiB 80.00KiB 

Snapshot list in ' /dev/sda3 ' device
. . . btrfsreceive/root/root-2017-07-23_19:46:01.117
. . . btrfsreceive/root/root-2017-07-29_15:20:01.118
. . . btrfsreceive/root/root-2017-07-29_16:54:01.119
. . . btrfsreceive/root/root-2017-08-05_15:20:01.120
. . . btrfsreceive/root/root-2017-08-06_17:59:01.121
. . . btrfsreceive/root/root-2017-08-12_13:00:01.122
. . . btrfsreceive/root/root-2017-08-12_15:20:01.123
. . . btrfsreceive/root/root-2017-08-14_17:59:01.124
. . . btrfsreceive/root/root-2017-08-15_15:20:01.125
. . . btrfsreceive/root/root-2017-08-15_15:56:01.126
. . . btrfsreceive/root/root-2017-08-16_18:40:01.127
. . . btrfsreceive/root/root-2017-08-17_10:43:01.128
. . . btrfsreceive/root/root-2017-08-19_15:20:01.129

(2017-08-19 15:46:09) End btrfsManage
. . . End managing SEND ' / ' filesystem ' root ' snapshot in ' /dev/sda3 '
CORRECTLY


 
Regards.
 
 
Gdb

--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to