How to monitor greenplum segment disk space

Source: Internet
Author: User
Tags psql

Gp_toolkit Administrative schema:the Greenplum Database includes the Gp_toolkit Schema, which collects system information Through log files and operating system commands. Can run a query against the Gp_toolkit to quickly view free disk space. Results are shown in bytes.

[Gpadmin@mdw ~]$ psql-d zwcdb-u zhongwc-h 192.168.1.23-w

Password for user zhongwc:

Psql (8.2.15)

Type ' help ' for help.

zwcdb=# Select Dfhostname, Dfspace,dfdevice from Gp_toolkit.gp_disk_free order by Dfhostname;

Dfhostname |  Dfspace | Dfdevice

------------+----------+------------

SDW1 |  51692604 | /dev/sdb1

SDW2 |  51692588 | /dev/sdb1

(2 rows)

[Gpadmin@mdw config]$ gpssh-f seg_hosts df-th

[SDW1] FileSystem Type Size Used avail use% mounted on

[SDW1]/dev/mapper/volgroup00-logvol00

[SDW1] ext3 54G 3.7G 47G 8%/

[SDW1]/dev/sda1 ext3 104M 14M 85M 14%/boot

[SDW1] Tmpfs tmpfs 1.1G 0 1.1G 0%/dev/shm

[SDW1]/dev/sdb1 xfs 54G 727M 53G 2%/data

[SDW2] FileSystem Type Size Used avail use% mounted on

[SDW2]/dev/mapper/volgroup00-logvol00

[SDW2] ext3 54G 3.7G 47G 8%/

[SDW2]/dev/sda1 ext3 104M 14M 85M 14%/boot

[SDW2] Tmpfs tmpfs 1.1G 0 1.1G 0%/dev/shm

[SDW2]/dev/sdb1 xfs 54G 727M 53G 2%/data

See more highlights of this column: http://www.bianceng.cnhttp://www.bianceng.cn/database/storage/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.