Show Table of Contents
5.7. 显示配置的资源
请使用以下命令显示所有配置的资源。
pcs resource show
例如:如果已使用资源
VirtualIP 和 WebSite 配置系统,则 pcs resource show 命令的输出结果如下。
# pcs resource show
VirtualIP (ocf::heartbeat:IPaddr2): Started
WebSite (ocf::heartbeat:apache): Started
要显示所有配置的资源列表及为那些资源配置的参数,请使用
pcs resource show 命令的 --full 选项,如下例所示。
# pcs resource show --full
Resource: VirtualIP (type=IPaddr2 class=ocf provider=heartbeat)
Attributes: ip=192.168.0.120 cidr_netmask=24
Operations: monitor interval=30s
Resource: WebSite (type=apache class=ocf provider=heartbeat)
Attributes: statusurl=http://localhost/server-status configfile=/etc/httpd/conf/httpd.conf
Operations: monitor interval=1min
请使用以下命令显示某个资源的配置的参数。
pcs resource show resource_id
例如:以下命令显示目前为资源
VirtualIP 配置的参数。
# pcs resource show VirtualIP
Resource: VirtualIP (type=IPaddr2 class=ocf provider=heartbeat)
Attributes: ip=192.168.0.120 cidr_netmask=24
Operations: monitor interval=30s
Where did the comment section go?
Red Hat's documentation publication system recently went through an upgrade to enable speedier, more mobile-friendly content. We decided to re-evaluate our commenting platform to ensure that it meets your expectations and serves as an optimal feedback mechanism. During this redesign, we invite your input on providing feedback on Red Hat documentation via the discussion platform.