Skip to contentSkip to conversation

Real time volume free space

DISCUSSION Dan 2 participants 2 messages Dec 19, 2007

lore
Share & tools
lore

Dan

author
#0 lore raw

I've been trying to figure out how to determine the free space of a real time volume. It seems xfs_db might hold the key but no luck so far... Simply running df -h tells me the free space of the meta-data drive only which basically doesn't change even after Terabyte data collections.

I created the filesystem like this:

mkfs.xfs -r rtdev=/dev/md0 /dev/sda

How would I tell how much space is left on /dev/md0?

Thank you,

Dan

#1 lore raw
Quoted 11 lines

I've been trying to figure out how to determine the free space of a real time volume. It seems xfs_db might hold the key but no luck so far... Simply running df -h tells me the free space of the meta-data drive only which basically doesn't change even after Terabyte data collections.

I created the filesystem like this:

mkfs.xfs -r rtdev=/dev/md0 /dev/sda

How would I tell how much space is left on /dev/md0?

The XFS_IOC_FSCOUNTS ioctl exposes this information, and you can use the xfs_quota "free" command to see it (even if you're not using quotas). The df command has no knowledge of the realtime subvolume.

cheers.

--
Nathan