Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
Apache
: 172.26.7.228 | : 3.21.12.122
Cant Read [ /etc/named.conf ]
5.6.40-24+ubuntu18.04.1+deb.sury.org+1
www-data
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
sbin /
[ HOME SHELL ]
Name
Size
Permission
Action
acpi_available
112
B
-rwxr-xr-x
agetty
55.23
KB
-rwxr-xr-x
apm_available
81
B
-rwxr-xr-x
apparmor_parser
1.41
MB
-rwxr-xr-x
badblocks
26.01
KB
-rwxr-xr-x
blkdeactivate
14.49
KB
-rwxr-xr-x
blkdiscard
26.08
KB
-rwxr-xr-x
blkid
86.11
KB
-rwxr-xr-x
blockdev
38.07
KB
-rwxr-xr-x
bridge
86.16
KB
-rwxr-xr-x
capsh
17.99
KB
-rwxr-xr-x
cfdisk
94.44
KB
-rwxr-xr-x
cgdisk
182.17
KB
-rwxr-xr-x
chcpu
22.07
KB
-rwxr-xr-x
cryptdisks_start
1.11
KB
-rwxr-xr-x
cryptdisks_stop
1.16
KB
-rwxr-xr-x
cryptsetup
86.23
KB
-rwxr-xr-x
cryptsetup-reencrypt
80.96
KB
-rwxr-xr-x
ctrlaltdel
18.07
KB
-rwxr-xr-x
debugfs
217.47
KB
-rwxr-xr-x
depmod
146.18
KB
-rwxr-xr-x
devlink
78.16
KB
-rwxr-xr-x
dhclient
488.42
KB
-rwxr-xr-x
dhclient-script
15.25
KB
-rwxr-xr-x
dmeventd
46.08
KB
-rwxr-xr-x
dmsetup
158.8
KB
-rwxr-xr-x
dmstats
158.8
KB
-rwxr-xr-x
dosfsck
58.08
KB
-rwxr-xr-x
dosfslabel
54.08
KB
-rwxr-xr-x
dumpe2fs
26.08
KB
-rwxr-xr-x
e2fsck
306.72
KB
-rwxr-xr-x
e2image
34.08
KB
-rwxr-xr-x
e2label
102.25
KB
-rwxr-xr-x
e2undo
18.07
KB
-rwxr-xr-x
ebtables
5.99
KB
-rwxr-xr-x
ebtables-restore
9.99
KB
-rwxr-xr-x
ebtables-save
1.63
KB
-rwxr-xr-x
ethtool
338.9
KB
-rwxr-xr-x
fatlabel
54.08
KB
-rwxr-xr-x
fdisk
122.13
KB
-rwxr-xr-x
findfs
10.07
KB
-rwxr-xr-x
fixparts
62.17
KB
-rwxr-xr-x
fsadm
23.5
KB
-rwxr-xr-x
fsck
46.13
KB
-rwxr-xr-x
fsck.cramfs
34.11
KB
-rwxr-xr-x
fsck.ext2
306.72
KB
-rwxr-xr-x
fsck.ext3
306.72
KB
-rwxr-xr-x
fsck.ext4
306.72
KB
-rwxr-xr-x
fsck.fat
58.08
KB
-rwxr-xr-x
fsck.minix
90.1
KB
-rwxr-xr-x
fsck.msdos
58.08
KB
-rwxr-xr-x
fsck.vfat
58.08
KB
-rwxr-xr-x
fsck.xfs
433
B
-rwxr-xr-x
fsfreeze
10.07
KB
-rwxr-xr-x
fstab-decode
5.99
KB
-rwxr-xr-x
fstrim
42.08
KB
-rwxr-xr-x
gdisk
190.17
KB
-rwxr-xr-x
getcap
9.99
KB
-rwxr-xr-x
getpcaps
9.99
KB
-rwxr-xr-x
getty
55.23
KB
-rwxr-xr-x
halt
178.08
KB
-rwxr-xr-x
hdparm
128.18
KB
-rwxr-xr-x
hwclock
58.19
KB
-rwxr-xr-x
ifconfig
77.11
KB
-rwxr-xr-x
init
1.54
MB
-rwxr-xr-x
insmod
146.18
KB
-rwxr-xr-x
installkernel
2.58
KB
-rwxr-xr-x
integritysetup
39.66
KB
-rwxr-xr-x
ip
545.12
KB
-rwxr-xr-x
ip6tables
92.74
KB
-rwxr-xr-x
ip6tables-restore
92.74
KB
-rwxr-xr-x
ip6tables-save
92.74
KB
-rwxr-xr-x
ipmaddr
17.99
KB
-rwxr-xr-x
iptables
92.74
KB
-rwxr-xr-x
iptables-restore
92.74
KB
-rwxr-xr-x
iptables-save
92.74
KB
-rwxr-xr-x
iptunnel
21.99
KB
-rwxr-xr-x
iscsi-iname
9.99
KB
-rwxr-xr-x
iscsi_discovery
5.16
KB
-rwxr-xr-x
iscsiadm
381.95
KB
-rwxr-xr-x
iscsid
398.15
KB
-rwxr-xr-x
iscsistart
354.13
KB
-rwxr-xr-x
isosize
22.08
KB
-rwxr-xr-x
kbdrate
9.99
KB
-rwxr-xr-x
killall5
22.08
KB
-rwxr-xr-x
ldconfig
387
B
-rwxr-xr-x
ldconfig.real
1001.67
KB
-rwxr-xr-x
logsave
10
KB
-rwxr-xr-x
losetup
82.19
KB
-rwxr-xr-x
lsmod
146.18
KB
-rwxr-xr-x
lvchange
2.42
MB
-rwxr-xr-x
lvconvert
2.42
MB
-rwxr-xr-x
lvcreate
2.42
MB
-rwxr-xr-x
lvdisplay
2.42
MB
-rwxr-xr-x
lvextend
2.42
MB
-rwxr-xr-x
lvm
2.42
MB
-rwxr-xr-x
lvmconf
12.55
KB
-rwxr-xr-x
lvmconfig
2.42
MB
-rwxr-xr-x
lvmdiskscan
2.42
MB
-rwxr-xr-x
lvmdump
10.07
KB
-rwxr-xr-x
lvmetad
82.13
KB
-rwxr-xr-x
lvmpolld
70.45
KB
-rwxr-xr-x
lvmsadc
2.42
MB
-rwxr-xr-x
lvmsar
2.42
MB
-rwxr-xr-x
lvreduce
2.42
MB
-rwxr-xr-x
lvremove
2.42
MB
-rwxr-xr-x
lvrename
2.42
MB
-rwxr-xr-x
lvresize
2.42
MB
-rwxr-xr-x
lvs
2.42
MB
-rwxr-xr-x
lvscan
2.42
MB
-rwxr-xr-x
mdadm
577.37
KB
-rwxr-xr-x
mdmon
321.21
KB
-rwxr-xr-x
mii-tool
18.46
KB
-rwxr-xr-x
mkdosfs
34.5
KB
-rwxr-xr-x
mke2fs
126.31
KB
-rwxr-xr-x
mkfs
10.07
KB
-rwxr-xr-x
mkfs.bfs
30.08
KB
-rwxr-xr-x
mkfs.cramfs
34.01
KB
-rwxr-xr-x
mkfs.ext2
126.31
KB
-rwxr-xr-x
mkfs.ext3
126.31
KB
-rwxr-xr-x
mkfs.ext4
126.31
KB
-rwxr-xr-x
mkfs.fat
34.5
KB
-rwxr-xr-x
mkfs.minix
78.09
KB
-rwxr-xr-x
mkfs.msdos
34.5
KB
-rwxr-xr-x
mkfs.ntfs
78.11
KB
-rwxr-xr-x
mkfs.vfat
34.5
KB
-rwxr-xr-x
mkfs.xfs
423.52
KB
-rwxr-xr-x
mkhomedir_helper
18.02
KB
-rwxr-xr-x
mkntfs
78.11
KB
-rwxr-xr-x
mkswap
78.08
KB
-rwxr-xr-x
modinfo
146.18
KB
-rwxr-xr-x
modprobe
146.18
KB
-rwxr-xr-x
mount.fuse
9.99
KB
-rwxr-xr-x
mount.lowntfs-3g
106.67
KB
-rwxr-xr-x
mount.ntfs
142.7
KB
-rwxr-xr-x
mount.ntfs-3g
142.7
KB
-rwxr-xr-x
mount.vmhgfs
42.16
KB
-rwxr-xr-x
nameif
14.14
KB
-rwxr-xr-x
ntfsclone
54.12
KB
-rwxr-xr-x
ntfscp
34.1
KB
-rwxr-xr-x
ntfslabel
26.1
KB
-rwxr-xr-x
ntfsresize
70.12
KB
-rwxr-xr-x
ntfsundelete
50.1
KB
-rwxr-xr-x
on_ac_power
2.16
KB
-rwxr-xr-x
pam_extrausers_chkpwd
34
KB
-rwxr-sr-x
pam_extrausers_update
34
KB
-rwxr-xr-x
pam_tally
10.01
KB
-rwxr-xr-x
pam_tally2
14.01
KB
-rwxr-xr-x
parted
78.09
KB
-rwxr-xr-x
partprobe
10.07
KB
-rwxr-xr-x
pivot_root
10.07
KB
-rwxr-xr-x
plipconfig
10
KB
-rwxr-xr-x
plymouthd
86.25
KB
-rwxr-xr-x
poweroff
178.08
KB
-rwxr-xr-x
pvchange
2.42
MB
-rwxr-xr-x
pvck
2.42
MB
-rwxr-xr-x
pvcreate
2.42
MB
-rwxr-xr-x
pvdisplay
2.42
MB
-rwxr-xr-x
pvmove
2.42
MB
-rwxr-xr-x
pvremove
2.42
MB
-rwxr-xr-x
pvresize
2.42
MB
-rwxr-xr-x
pvs
2.42
MB
-rwxr-xr-x
pvscan
2.42
MB
-rwxr-xr-x
rarp
32.45
KB
-rwxr-xr-x
raw
14.07
KB
-rwxr-xr-x
reboot
178.08
KB
-rwxr-xr-x
resize2fs
58.07
KB
-rwxr-xr-x
rmmod
146.18
KB
-rwxr-xr-x
route
64.3
KB
-rwxr-xr-x
rtacct
40.13
KB
-rwxr-xr-x
rtmon
50
KB
-rwxr-xr-x
runlevel
178.08
KB
-rwxr-xr-x
runuser
42.07
KB
-rwxr-xr-x
setcap
9.99
KB
-rwxr-xr-x
setvtrgb
14.13
KB
-rwxr-xr-x
sfdisk
106.08
KB
-rwxr-xr-x
sgdisk
174.17
KB
-rwxr-xr-x
shadowconfig
885
B
-rwxr-xr-x
shutdown
178.08
KB
-rwxr-xr-x
slattach
40.45
KB
-rwxr-xr-x
start-stop-daemon
35.1
KB
-rwxr-xr-x
sulogin
46.08
KB
-rwxr-xr-x
swaplabel
14.07
KB
-rwxr-xr-x
swapoff
18.07
KB
-rwxr-xr-x
swapon
46.08
KB
-rwxr-xr-x
switch_root
14.07
KB
-rwxr-xr-x
sysctl
22.07
KB
-rwxr-xr-x
tc
453.79
KB
-rwxr-xr-x
telinit
178.08
KB
-rwxr-xr-x
tipc
53.99
KB
-rwxr-xr-x
tune2fs
102.25
KB
-rwxr-xr-x
udevadm
574.4
KB
-rwxr-xr-x
unix_chkpwd
34
KB
-rwxr-sr-x
unix_update
34
KB
-rwxr-xr-x
ureadahead
34.34
KB
-rwxr-xr-x
veritysetup
35.45
KB
-rwxr-xr-x
vgcfgbackup
2.42
MB
-rwxr-xr-x
vgcfgrestore
2.42
MB
-rwxr-xr-x
vgchange
2.42
MB
-rwxr-xr-x
vgck
2.42
MB
-rwxr-xr-x
vgconvert
2.42
MB
-rwxr-xr-x
vgcreate
2.42
MB
-rwxr-xr-x
vgdisplay
2.42
MB
-rwxr-xr-x
vgexport
2.42
MB
-rwxr-xr-x
vgextend
2.42
MB
-rwxr-xr-x
vgimport
2.42
MB
-rwxr-xr-x
vgimportclone
2.42
MB
-rwxr-xr-x
vgmerge
2.42
MB
-rwxr-xr-x
vgmknodes
2.42
MB
-rwxr-xr-x
vgreduce
2.42
MB
-rwxr-xr-x
vgremove
2.42
MB
-rwxr-xr-x
vgrename
2.42
MB
-rwxr-xr-x
vgs
2.42
MB
-rwxr-xr-x
vgscan
2.42
MB
-rwxr-xr-x
vgsplit
2.42
MB
-rwxr-xr-x
wipefs
38.08
KB
-rwxr-xr-x
xfs_repair
631.16
KB
-rwxr-xr-x
xtables-multi
92.74
KB
-rwxr-xr-x
zramctl
90.19
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : lvmdump
#!/bin/bash # We use some bash-isms (getopts?) # Copyright (C) 2007-2017 Red Hat, Inc. All rights reserved. # # This file is part of LVM2. # # This copyrighted material is made available to anyone wishing to use, # modify, copy, or redistribute it subject to the terms and conditions # of the GNU General Public License v.2. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software Foundation, # Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA # lvm_dump: This script is used to collect pertinent information for # the debugging of lvm issues. # following external commands are used throughout the script # echo and test are internal in bash at least MKDIR=mkdir # need -p TAR=tar # need czf RM=rm # need -rf CP=cp TAIL=tail # we need -n LS=ls # need -la PS=ps # need alx SED=sed DD=dd CUT=cut GREP=grep DATE=date BASENAME=basename UDEVADM=udevadm UNAME=uname TR=tr SOCAT=socat # either socat or nc is needed for dumping lvmetad state NC=nc if test "yes" = yes; then DDFLAGS='iflag=direct oflag=direct' else DDFLAGS= fi # user may override lvm and dmsetup location by setting LVM_BINARY # and DMSETUP_BINARY respectively LVM=${LVM_BINARY-lvm} DMSETUP=${DMSETUP_BINARY-dmsetup} LVMETAD_SOCKET=${LVM_LVMETAD_SOCKET-/var/run/lvm/lvmetad.socket} LVMPOLLD_SOCKET=${LVM_LVMPOLLD_SOCKET-/var/run/lvm/lvmpolld.socket} die() { code=$1; shift echo "$@" 1>&2 exit "$code" } "$LVM" version >& /dev/null || die 2 "Could not run lvm binary '$LVM'" "$DMSETUP" version >& /dev/null || DMSETUP=: function usage { echo "$0 [options]" echo " -h print this message" echo " -a advanced collection - warning: if lvm is already hung," echo " then this script may hang as well if -a is used" echo " -c if running clvmd, gather cluster data as well" echo " -d <directory> dump into a directory instead of tarball" echo " -l gather lvmetad state if running" echo " -p gather lvmpolld state if running" echo " -m gather LVM metadata from the PVs" echo " -s gather system info and context" echo " -u gather udev info and context" echo "" exit 1 } advanced=0 clustered=0 metadata=0 sysreport=0 udev=0 while getopts :acd:hlpmus opt; do case $opt in a) advanced=1 ;; c) clustered=1 ;; d) userdir=$OPTARG ;; h) usage ;; l) lvmetad=1 ;; p) lvmpolld=1 ;; m) metadata=1 ;; s) sysreport=1 ;; u) udev=1 ;; :) echo "$0: $OPTARG requires a value:"; usage ;; \?) echo "$0: unknown option $OPTARG"; usage ;; *) usage ;; esac done NOW=$("$DATE" -u +%G%m%d%k%M%S | "$TR" -d ' ') if test -n "$userdir"; then dir=$userdir else dirbase="lvmdump-$HOSTNAME-$NOW" dir="$HOME/$dirbase" fi if test -d "$dir" ; then (shopt -s nullglob dotglob; test -r "$dir" -a -w "$dir" -a -x "$dir" && cd "$dir" && files=(*) && ((! ${#files[@]}))) || \ die 5 "Fatal: directory $dir already exists and is not empty or inaccessible" else test -e "$dir" && die 3 "Fatal: $dir already exists" "$MKDIR" -p "$dir" || die 4 "Fatal: could not create $dir" fi log="$dir/lvmdump.log" myecho() { echo "$@" echo "$@" >> "$log" } log() { echo "$@" >> "$log" eval "$@" } warnings() { if test "$UID" != 0 && test "$EUID" != 0; then myecho "WARNING! Running as non-privileged user, dump is likely incomplete!" elif test "$DMSETUP" = ":"; then myecho "WARNING! Could not run dmsetup, dump is likely incomplete." fi } warnings myecho "Creating dump directory: $dir" echo " " if (( advanced )); then myecho "Gathering LVM volume info..." myecho " vgscan..." log "\"$LVM\" vgscan -vvvv >> \"$dir/vgscan\" 2>&1" myecho " pvscan..." log "\"$LVM\" pvscan -v >> \"$dir/pvscan\" 2>> \"$log\"" myecho " lvs..." log "\"$LVM\" lvs -a -H -o +devices,kernel_major,kernel_minor >> \"$dir/lvs\" 2>> \"$log\"" myecho " pvs..." log "\"$LVM\" pvs -a -o +major,minor -v >> \"$dir/pvs\" 2>> \"$log\"" myecho " vgs..." log "\"$LVM\" vgs -v >> \"$dir/vgs\" 2>> \"$log\"" fi if (( clustered )); then myecho "Gathering cluster info..." { for i in nodes status services; do cap_i=$(echo "$i"|tr a-z A-Z) echo "$cap_i:" echo "----------------------------------" log "cman_tool $i 2>> \"$log\"" echo done echo "LOCKS:" echo "----------------------------------" if [ -f /proc/cluster/dlm_locks ] then echo clvmd > /proc/cluster/dlm_locks cat /proc/cluster/dlm_locks echo echo "RESOURCE DIR:" cat /proc/cluster/dlm_dir echo echo "DEBUG LOG:" cat /proc/cluster/dlm_debug echo fi if [ -f /debug/dlm/clvmd ] then cat /debug/dlm/clvmd echo echo "WAITERS:" cat /debug/dlm/clvmd_waiters echo echo "MASTER:" cat /debug/dlm/clvmd_master fi } >> "$dir/cluster_info" fi myecho "Gathering LVM & device-mapper version info..." { echo "LVM VERSION:" "$LVM" lvs --version echo "DEVICE MAPPER VERSION:" "$DMSETUP" --version echo "KERNEL VERSION:" "$UNAME" -a echo "DM TARGETS VERSIONS:" "$DMSETUP" targets } >> "$dir/versions" 2>> "$log" myecho "Gathering dmsetup info..." log "\"$DMSETUP\" info -c >> \"$dir/dmsetup_info\" 2>> \"$log\"" log "\"$DMSETUP\" table >> \"$dir/dmsetup_table\" 2>> \"$log\"" log "\"$DMSETUP\" status >> \"$dir/dmsetup_status\" 2>> \"$log\"" # cat as workaround to avoid tty ioctl (selinux) log "\"$DMSETUP\" ls --tree 2>> \"$log\" | cat >> \"$dir/dmsetup_ls_tree\"" myecho "Gathering process info..." log "$PS alx >> \"$dir/ps_info\" 2>> \"$log\"" myecho "Gathering console messages..." log "$TAIL -n 75 /var/log/messages >> \"$dir/messages\" 2>> \"$log\"" myecho "Gathering /etc/lvm info..." log "$LS -laR /etc/lvm >> \"$dir/etc_lvm_listing\" 2>> \"$log\"" log "$CP -RL --preserve=all /etc/lvm \"$dir/lvm\" 2>> \"$log\"" log "$LVM dumpconfig --type diff --file \"$dir/config_diff\" 2>> \"$log\"" log "$LVM dumpconfig --type missing --file \"$dir/config_missing\" 2>> \"$log\"" myecho "Gathering /dev listing..." log "$LS -laR /dev >> \"$dir/dev_listing\" 2>> \"$log\"" myecho "Gathering /sys/block listing..." log "$LS -laR /sys/block >> \"$dir/sysblock_listing\" 2>> \"$log\"" log "$LS -laR /sys/devices/virtual/block >> \"$dir/sysblock_listing\" 2>> \"$log\"" if (( metadata )); then myecho "Gathering LVM metadata from Physical Volumes..." log "$MKDIR -p \"$dir/metadata\"" pvs=$("$LVM" pvs --separator , --noheadings --units s --nosuffix -o \ name,pe_start 2>> "$log" | $SED -e 's/^ *//') for line in $pvs do test -z "$line" && continue pv=$(echo "$line" | "$CUT" -d, -f1) pe_start=$(echo "$line" | "$CUT" -d, -f2) name=$("$BASENAME" "$pv") myecho " $pv" log "$DD if=$pv \"of=$dir/metadata/$name\" $DDFLAGS bs=512 count=$pe_start 2>> \"$log\"" done fi if (( sysreport )); then myecho "Gathering system info..." sysreport_dir="$dir/sysreport" log_lines=10000 SYSTEMCTL=$(which systemctl 2>> "$log") JOURNALCTL=$(which journalctl 2>> "$log") LSBLK=$(which lsblk 2>> "$log") log "$MKDIR -p \"$sysreport_dir\"" if test -z "LSBLK"; then myecho "WARNING: lsblk not found" else if "$LSBLK" --help | "$GREP" -- --output-all >/dev/null; then log "$LSBLK -O >> \"$sysreport_dir/lsblk_O\"" else log "$LSBLK >> \"$sysreport_dir/lsblk\"" fi if "$LSBLK" --help | "$GREP" -- --inverse >/dev/null; then log "$LSBLK -s >> \"$sysreport_dir/lsblk_s\"" fi fi if test -z "$SYSTEMCTL"; then myecho "WARNING: systemctl not found" elif test -z "$JOURNALCTL"; then myecho "WARNING: journalctl not found" else log "$JOURNALCTL -b --no-pager -o short-precise > \"$sysreport_dir/journal_content\" 2>> \"$log\"" log "$SYSTEMCTL status -l --no-pager -n $log_lines -o short-precise dm-event.socket dm-event.service \ lvm2-monitor.service \ lvm2-lvmetad.socket lvm2-lvmetad.service \ lvm2-lvmpolld.socket lvm2-lvmpolld.service \ lvm2-cluster-activation.service \ lvm2-clvmd.service \ lvm2-cmirrord.service \ lvm2-activation-early.service \ lvm2-activation.service \ lvm2-activation-net.service \ > \"$sysreport_dir/systemd_lvm2_services_status\" 2>> \"$log\"" log "$SYSTEMCTL list-units -l -a --no-legend --no-pager > \"$sysreport_dir/systemd_unit_list\" 2>> \"$log\"" for unit in $("$GREP" lvm2-pvscan "$sysreport_dir/systemd_unit_list" | cut -d " " -f 1); do log "$SYSTEMCTL status -l --no-pager -n $log_lines -o short-precise $unit >> \"$sysreport_dir/systemd_lvm2_pvscan_service_status\"" done fi fi if (( udev )); then myecho "Gathering udev info..." udev_dir="$dir/udev" log "$MKDIR -p \"$udev_dir\"" log "$UDEVADM info --version >> \"$udev_dir/version\" 2>> \"$log\"" log "$UDEVADM info --export-db >> \"$udev_dir/db\" 2>> \"$log\"" log "$CP -a /etc/udev/udev.conf \"$udev_dir/conf\" 2>> \"$log\"" log "$LS -la /lib/udev >> \"$udev_dir/lib_dir\" 2>> \"$log\"" log "$CP -RL --preserve=all /etc/udev/rules.d \"$udev_dir/rules_etc\" 2>> \"$log\"" log "$CP -RL --preserve=all /lib/udev/rules.d \"$udev_dir/rules_lib\" 2>> \"$log\"" fi if (( lvmetad )); then (echo 'request="dump"'; echo '##') | { if type -p "$SOCAT" >& /dev/null; then echo "$SOCAT unix-connect:$LVMETAD_SOCKET -" >> "$log" "$SOCAT" "unix-connect:$LVMETAD_SOCKET" - 2>> "$log" elif echo | "$NC" -U "$LVMETAD_SOCKET"; then echo "$NC -U $LVMETAD_SOCKET" >> "$log" "$NC" -U "$LVMETAD_SOCKET" 2>> "$log" else myecho "WARNING: Neither socat nor nc -U seems to be available." 1>&2 echo "# DUMP FAILED" return 1 fi } > "$dir/lvmetad.txt" fi if (( lvmpolld )); then (echo 'request="dump"'; echo '##') | { if type -p "$SOCAT" >& /dev/null; then echo "$SOCAT unix-connect:$LVMPOLLD_SOCKET -" >> "$log" "$SOCAT" "unix-connect:$LVMPOLLD_SOCKET" - 2>> "$log" elif echo | "$NC" -U "$LVMPOLLD_SOCKET"; then echo "$NC -U $LVMPOLLD_SOCKET" >> "$log" "$NC" -U "$LVMPOLLD_SOCKET" 2>> "$log" else myecho "WARNING: Neither socat nor nc -U seems to be available." 1>&2 echo "# DUMP FAILED" return 1 fi } > "$dir/lvmpolld.txt" fi if test -z "$userdir"; then lvm_dump="$dirbase.tgz" myecho "Creating report tarball in $HOME/$lvm_dump..." fi warnings if test -z "$userdir"; then cd "$HOME" "$TAR" czf "$lvm_dump" "$dirbase" 2>/dev/null "$RM" -rf "$dir" fi exit 0
Close