Last change
on this file since 873 was
873,
checked in by mabarracus, 5 years ago
|
Copy trusty code
|
-
Property svn:executable set to
*
|
File size:
780 bytes
|
Line | |
---|
1 | #!/bin/bash |
---|
2 | # |
---|
3 | FOLDER="$1/glusterfs/" |
---|
4 | mkdir ${FOLDER} |
---|
5 | status glusterfs-server > ${FOLDER}"status" |
---|
6 | if [ -e "/etc/init.d/glusterfs-server" ]; then |
---|
7 | echo "init service exists" >> ${FOLDER}"status" |
---|
8 | else |
---|
9 | echo "WARNING!! init service not exists" >> ${FOLDER}"status" |
---|
10 | fi |
---|
11 | |
---|
12 | gluster peer status > ${FOLDER}"cluster" 2>&1 |
---|
13 | echo "***********************************************" >> ${FOLDER}"cluster" |
---|
14 | gluster volume status all >> ${FOLDER}"cluster" |
---|
15 | echo "***********************************************" >> ${FOLDER}"cluster" |
---|
16 | gluster volume info all >> ${FOLDER}"cluster" |
---|
17 | |
---|
18 | if [ -e "/net/.data" ]; then |
---|
19 | python -c "import xattr; print xattr.listxattr('/net/.data')" > ${FOLDER}"net.data.extended.attributes" |
---|
20 | else |
---|
21 | echo "Not exists net/.data folder" > ${FOLDER}"net.data.extended.attributes" |
---|
22 | fi |
---|
Note: See
TracBrowser
for help on using the repository browser.