source: dr-valentin-server-common/trunk/fuentes/install-files/usr/share/dr-valentin/server/actions/080-glusterfs @ 873

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#
3FOLDER="$1/glusterfs/"
4mkdir ${FOLDER}
5status glusterfs-server > ${FOLDER}"status"
6if [ -e "/etc/init.d/glusterfs-server" ]; then
7        echo "init service exists" >> ${FOLDER}"status"
8else
9        echo "WARNING!! init service not exists" >> ${FOLDER}"status"
10fi
11
12gluster peer status > ${FOLDER}"cluster" 2>&1
13echo "***********************************************" >> ${FOLDER}"cluster"
14gluster volume status all >> ${FOLDER}"cluster"
15echo "***********************************************" >> ${FOLDER}"cluster"
16gluster volume info all >> ${FOLDER}"cluster"
17
18if [ -e "/net/.data" ]; then
19        python -c "import xattr; print xattr.listxattr('/net/.data')" > ${FOLDER}"net.data.extended.attributes"
20else
21        echo "Not exists net/.data folder" > ${FOLDER}"net.data.extended.attributes"
22fi     
Note: See TracBrowser for help on using the repository browser.