ApsaraDB / PolarDB-for-PostgreSQL

A cloud-native database based on PostgreSQL developed by Alibaba Cloud.
https://apsaradb.github.io/PolarDB-for-PostgreSQL/zh/
Apache License 2.0
2.89k stars 481 forks source link

[Question] Is it possible for PolarFS to view the total space size and free size of the file system please? #354

Closed meiq4096 closed 1 year ago

meiq4096 commented 1 year ago

Describe the problem

I know pfs can build a distributed file system on the shared storage using mkfs option, but I can't find the method to view the total size and free size of the file system. Do you have any plans to do this please? ...

polardb-bot[bot] commented 1 year ago

Hi @meiq4096 ~ Thanks for opening this issue! 🎉

Please make sure you have provided enough information for subsequent discussion.

We will get back to you as soon as possible. ❤️

mrdrivingduck commented 1 year ago

@meiq4096 Use the info command of PFS would display the usage.

meiq4096 commented 1 year ago

@meiq4096 Use the info command of PFS would display the usage.

Thank you for your reply. Yes, You can see the file system metadata in the info parameter, but it's a little less user-friendly. The output of df is better.

postgres@ddf1d8d202f1:~$ sudo pfs -C disk info nvme0n1p2
Blktag Info:
 (0)allocnode: id 0, shift 0, nchild=100, nall 256000, nfree 255643, next 0
Direntry Info:
 (0)allocnode: id 0, shift 0, nchild=100, nall 204800, nfree 204797, next 0
Inode Info:
 (0)allocnode: id 0, shift 0, nchild=100, nall 204800, nfree 204797, next 0

Or maybe you can refer to the output of "hadoop dfsadmin -report " .

image

mrdrivingduck commented 1 year ago

@meiq4096 Good suggestion!

mrdrivingduck commented 1 year ago

/close