Overnight, I copied the contents (backups and archived files) of an ext4 filesystem on a 1TB USB drive to another
1TB USB drive with a UFS2 filesystem.
The target drive:
The ext4 filesystem:
How can a filesystem of size 902G (which does not include space taken by meta-data; note that gpart says the mediasize is 932G) on which 836G is used have -6.3G available?
And in any case, how can you have -6.3G available? When you are out of space, you are out of space. There was no indication from the copy operation that it had run out of space and
I would not have expected that, since I checked the sizes before starting this exercise and the numbers indicated that everything would fit, with a bit of room to space. Now
I'm seeing this and don't know what to think. Did all my files make it to the UFS2 filesystem? According to the copy operation, which proceeded without error, yes. But the df
output makes me wonder.
Can anyone shed some light on this? Thanks.
1TB USB drive with a UFS2 filesystem.
The target drive:
Code:
root@franz:/usr/home/dca # gpart list da1
Geom name: da1
modified: false
state: OK
fwheads: 255
fwsectors: 63
last: 1953525127
first: 40
entries: 128
scheme: GPT
Providers:
1. Name: da1p1
Mediasize: 1000204845056 (932G)
Sectorsize: 512
Stripesize: 0
Stripeoffset: 20480
Mode: r1w1e1
efimedia: HD(1,GPT,db888f7f-9a3a-11ea-84ea-002324d82060,0x28,0x74706d60)
rawuuid: db888f7f-9a3a-11ea-84ea-002324d82060
rawtype: 516e7cb6-6ecf-11d6-8ff8-00022d09712b
label: archives_backups
length: 1000204845056
offset: 20480
type: freebsd-ufs
index: 1
end: 1953525127
start: 40
Consumers:
1. Name: da1
Mediasize: 1000204885504 (932G)
Sectorsize: 512
Mode: r1w1e2
Code:
root@franz:/usr/home/dca # df /mnt
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da0p1 961360272 875682888 36839308 96% /mnt
root@franz:/usr/home/dca # df -h /mnt
Filesystem Size Used Avail Capacity Mounted on
/dev/da0p1 917G 835G 35G 96% /mnt
root@franz:/usr/home/dca #
The UFS2 filesystem, after the copy:
root@franz:/usr/home/dca # df /tmp/backup
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/da1p1 946087352 876962532 -6562168 101% /tmp/backup
root@franz:/usr/home/dca # df -h /tmp/backup
Filesystem Size Used Avail Capacity Mounted on
/dev/da1p1 902G 836G -6.3G 101% /tmp/backup
root@franz:/usr/home/dca #
And in any case, how can you have -6.3G available? When you are out of space, you are out of space. There was no indication from the copy operation that it had run out of space and
I would not have expected that, since I checked the sizes before starting this exercise and the numbers indicated that everything would fit, with a bit of room to space. Now
I'm seeing this and don't know what to think. Did all my files make it to the UFS2 filesystem? According to the copy operation, which proceeded without error, yes. But the df
output makes me wonder.
Can anyone shed some light on this? Thanks.