Well, to make a long story short, below is the result of gpart show on my system.
According to the below information only a tiny percentage of the available space within my root partition (ada0p2) is actually being used at the moment.
So, it appears that I'm only using 26 gigabytes out of the available 899 gigabytes within my root partition, so based upon this information, I decided to try and use the below command to create a snapshot of my root partition, and to store that snapshot onto my second hard drive, (ada1).
The above command seemed to execute successfully, but it only took a few seconds to carry out its process, and in the end, I ended up with a snapshot file which is only 140 megabytes in size. See below.
So, my question is, does the above file I created actually contain copies of files, which I could the use to potentially restore my system after a disaster, or does the snapshot file contain something else entirely?
Also, I opted to go with the UFS option because I'm not sure if my system has enough ram to adequately support ZFS, and the two hard drives I have installed in my desktop machine are a little bit on the creaky side, and I don't know if using ZFS and mirroring on these drives is a wise idea. Also, I would like to learn more before I try something like that.
Code:
root@Asus:~ # gpart show
=> 40 1953525088 ada1 GPT (932G)
40 964689920 1 freebsd-ufs (460G)
964689960 8192000 2 freebsd-swap (3.9G)
972881960 980643168 3 freebsd-ufs (468G)
=> 40 1953525088 ada0 GPT (932G)
40 532480 1 efi (260M)
532520 1945624568 2 freebsd-ufs (928G)
1946157088 7368040 3 freebsd-swap (3.5G)
According to the below information only a tiny percentage of the available space within my root partition (ada0p2) is actually being used at the moment.
Code:
root@Asus:~ # df -h
Filesystem Size Used Avail Capacity Mounted on
/dev/ada0p2 899G 26G 801G 3% /
devfs 1.0K 0B 1.0K 0% /dev
/dev/ada0p1 256M 1.3M 255M 0% /boot/efi
/dev/ada1p1 446G 25G 384G 6% /diskbkp
/dev/ada1p3 453G 135G 282G 32% /diskdoc
linprocfs 8.0K 0B 8.0K 0% /compat/linux/proc
linsysfs 8.0K 0B 8.0K 0% /compat/linux/sys
devfs 1.0K 0B 1.0K 0% /compat/linux/dev
fdescfs 1.0K 0B 1.0K 0% /compat/linux/dev/fd
tmpfs 8.9G 4.0K 8.9G 0% /compat/linux/dev/shm
So, it appears that I'm only using 26 gigabytes out of the available 899 gigabytes within my root partition, so based upon this information, I decided to try and use the below command to create a snapshot of my root partition, and to store that snapshot onto my second hard drive, (ada1).
Code:
mksnap_ffs / /diskbkp/snapshot021526/root021526.snap
The above command seemed to execute successfully, but it only took a few seconds to carry out its process, and in the end, I ended up with a snapshot file which is only 140 megabytes in size. See below.
So, my question is, does the above file I created actually contain copies of files, which I could the use to potentially restore my system after a disaster, or does the snapshot file contain something else entirely?
Also, I opted to go with the UFS option because I'm not sure if my system has enough ram to adequately support ZFS, and the two hard drives I have installed in my desktop machine are a little bit on the creaky side, and I don't know if using ZFS and mirroring on these drives is a wise idea. Also, I would like to learn more before I try something like that.