+ trap '' SIGINT + prog_name=/bin/image + vg_name=vg_splat + current_snap_mountpoint=/mnt/current_snap_mountpoint + lvm2_gprefix=/dev/vg_splat + lvm2_sbin=/usr/sbin + volume_default_size=5.0 + volumes_to_keep=lv_upgrade + status_dir=/var/log/image + restore_status_dir=/var/log/image + restore_status_file=restore_track_actions.conf + dup_status_dir=/var/log/image + dup_status_file=dup_track_actions.conf + snapshot_log_file=/var/log/image/snapshot.log + exclude_dir=/var/log/image/exclude + restore_max_retry=3 + restore_retry_file=/var/log/image/image_restore_retry.cont + dup_mountpoint=/mnt/backup + dup_snap_mountpoint=/mnt/snap + dup_snap_name=lv_current_snap + perform_restore=0 + upload_dir=/var/log/upload + download_dir=/var/log/download + tmp_snap=/var/log/tmp_snapshots + tmp_log=/var/log/tmp_snapshots/log + lock_file=/tmp/.lock.backup_restore + save_var_log=0 + lock_file_name=.lock.import_export_lock_file + progress_interval=5 + progress_max_retry=10 + snapshot_excluded_files_dir=/var/log/excluded_files_snapshot + snap_excluded_files=snapshot_excluded_files.txt + snap_excluded_file_ids=snapshot_excluded_file_ids.txt ++ /usr/bin/is_scalable_platform.sh + IS_SCALABLE_PLATFORM=0 + fs_type_file=image.filesystem + EXT3=ext3 + XFS=xfs + PARSE_ERROR='if [ $IMAGE_DEBUG = 1 ]; then echo "${FUNCNAME}():${LINENO}: parse error"; fi ; return 1' + FATAL_ERROR='if [ $IMAGE_DEBUG = 1 ]; then echo "${FUNCNAME}():${LINENO}: fatal error"; fi ; return 1' + exit_ok=0 + exit_fatal_error=1 + exit_insufficient_disk_space=2 + exit_insufficient_boot_space=3 + exit_internal_error=4 + '[' X = X ']' + IMAGE_DEBUG=0 + '[' X '!=' X ']' + '[' '!' -f /etc/cp-release ']' + main dup type user name Take66 id 1 description + '[' 8 -lt 1 ']' + perform_restore=0 + cmd=dup + updateCommandsPerFileSystemAndCommandVersion ++ cat /etc/fstab ++ grep -m1 lv_log ++ awk '{print $3}' + fileSystemType=xfs + [[ xfs == \e\x\t\3 ]] + [[ xfs == \x\f\s ]] + mountCmd='/bin/mount -o nouuid' + mkfsCmd='mkfs.xfs -f' + dumpCmd='/sbin/xfsdump -l 0 -F -' + restoreCmd='/sbin/xfsrestore -F - .' + lvcreate --yes + grep -q 'unrecognized option `--yes'\''' + '[' 1 -eq 0 ']' + lvcreate_yes_parameter=--yes + lvcreateCmd='lvcreate --yes ' + RUN_VGSCAN=0 + shift + case ${cmd} in + func=image_dup + RUN_VGSCAN=1 + '[' 1 == 1 ']' ++ vgscan File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 7 (socket:[48651]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 8 (socket:[48652]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 9 (socket:[48653]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 10 (socket:[49393]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 11 (socket:[45999]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 12 (socket:[46000]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 13 (socket:[46001]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 15 (socket:[46004]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 16 (socket:[46006]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 20 (socket:[66008]) leaked on vgscan invocation. Parent PID 30263: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on vgscan invocation. Parent PID 30263: /bin/bash + snap_log 'Before dup: Reading volume groups from cache. Found volume group "vg_splat" using metadata type lvm2' + '[' 'XBefore dup: Reading volume groups from cache. Found volume group "vg_splat" using metadata type lvm2' = X ']' + log_msg='Before dup: Reading volume groups from cache. Found volume group "vg_splat" using metadata type lvm2' ++ date -u '+%F %T' + echo '2022-07-31 11:45:58 Before dup: Reading volume groups from cache. Found volume group "vg_splat" using metadata type lvm2' + image_dup type user name Take66 id 1 description + touch /tmp/.lock.backup_restore + echo 'Performing image snapshot ...' + '[' 0 = 1 ']' + '[' 7 -ge 4 ']' + '[' type = type ']' + '[' Xuser '!=' X ']' + '[' name = name ']' + '[' XTake66 '!=' X ']' + shift + image_desc= + image_type=user + shift + shift + image_name=Take66 + shift + echo progress:Take66:30263 + id=0 + '[' 3 -gt 1 ']' + '[' id = id ']' + shift + '[' X1 '!=' X ']' + id=1 + shift + get_values_from_db 1 + '[' X '!=' X ']' + set +x + activate_retention_policy pre + handler=pre + '[' X == X1 ']' + '[' 1 -gt 0 ']' + '[' description = description ']' + shift ++ echo '' ++ awk '{ print substr($0, 0, 64) }' + image_desc= + case $image_type in + image_volume_name=lv_Take66 ++ image_free ++ sed 's/.$//' ++ volume_overhead=1.1 +++ vgs --noheadings --nosuffix --aligned --units g -o vg_free vg_splat +++ sed 's/^ \{1,\}//' File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 7 (socket:[48651]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 8 (socket:[48652]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 9 (socket:[48653]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 10 (socket:[49393]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 11 (socket:[45999]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 12 (socket:[46000]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 13 (socket:[46001]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 15 (socket:[46004]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 16 (socket:[46006]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 20 (socket:[66008]) leaked on vgs invocation. Parent PID 30351: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on vgs invocation. Parent PID 30351: /bin/bash ++ free=78.97 +++ lvm2_sizeof lv_current +++ sed 's/.$//' +++ '[' Xlv_current = X ']' +++ lv_name=lv_current ++++ /usr/sbin/lvs --noheadings --nosuffix --aligned --units g -o lv_size /dev/vg_splat/lv_current ++++ sed 's/^ \{1,\}//' ++++ sed 's/ \{1,\}$//' File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 30360: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 30360: /bin/bash +++ size=32.00 +++ '[' X32.00 = X ']' +++ echo 32.00G +++ return 0 ++ lv_current_size=32.00 ++ sum=0 ++ for vol in ${volumes_to_keep} ++ lvm2_volume_exists lv_upgrade ++ '[' 1 -ge 1 ']' ++ lv_name=lv_upgrade ++ /usr/sbin/lvs ++ grep -q lv_upgrade File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 30349: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 30349: /bin/bash ++ lv_exist=1 ++ return 1 +++ awk '{ x=$1*$2 } END { print x } ' ++ extra_size=35.2 +++ awk '{ x=$1+$2 } END { print x } ' ++ sum=35.2 +++ awk '{ x=$1-$2 } END { print x } ' ++ free=43.77 ++ echo 43.77 ++ grep -q '\-' ++ negative=1 ++ '[' 1 = 0 ']' ++ echo 43.77G ++ return 0 + vg_free=43.77 + '[' user = system ']' ++ lvm2_get_actual_volume_usage lv_current ++ sed 's/.$//' ++ '[' Xlv_current '!=' X ']' ++ factor=1.15 ++ lv_name=lv_current ++ lvm2_volume_exists lv_current ++ '[' 1 -ge 1 ']' ++ lv_name=lv_current ++ /usr/sbin/lvs ++ grep -q lv_current File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 30381: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 30381: /bin/bash ++ lv_exist=0 ++ return 0 ++ '[' 0 '!=' 0 ']' ++ need_umount=0 ++ lvm2_volume_is_mounted lv_current ++ '[' 1 -ge 1 ']' ++ vol_name=lv_current +++ lvm2_get_current_rdev ++++ awk -Froot= '{print $2}' /proc/cmdline ++++ awk '{print $1}' +++ current_rdev=/dev/mapper/vg_splat-lv_current +++ echo /dev/mapper/vg_splat-lv_current +++ return 0 ++ root=/dev/mapper/vg_splat-lv_current ++ '[' -L /dev/mapper/vg_splat-lv_current ']' ++ '[' /dev/mapper/vg_splat-lv_current = /dev/mapper/vg_splat-lv_current ']' ++ return 0 ++ '[' 0 '!=' 0 ']' +++ df -P /dev/mapper/vg_splat-lv_current +++ tail -1 +++ awk '{ printf "%d\n", $3 }' ++ vol_used_k=11767412 ++ '[' 0 = 1 ']' +++ awk '{ x=$1/1024/1024 ; if ( x == 0 ) x=0.1 ; printf "%.2f\n", x }' ++ vol_used_g=11.22 +++ awk '{ x=$1*$2 ; printf "%.2f\n", x }' ++ volume_usage=12.90 +++ lvm2_sizeof lv_current +++ sed 's/.$//' +++ '[' Xlv_current = X ']' +++ lv_name=lv_current ++++ /usr/sbin/lvs --noheadings --nosuffix --aligned --units g -o lv_size /dev/vg_splat/lv_current ++++ sed 's/^ \{1,\}//' ++++ sed 's/ \{1,\}$//' File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 30405: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 30405: /bin/bash +++ size=32.00 +++ '[' X32.00 = X ']' +++ echo 32.00G +++ return 0 ++ lv_size=32.00 +++ awk '{ if ( $1 < $2 ) print $1 ; else print $2 }' ++ actual_usage=12.90 ++ '[' 0 = 1 ']' ++ echo 12.90 ++ egrep -q '^[0-9\.,]+$' ++ echo 12.90G ++ return 0 + lv_size=12.90 ++ . /opt/CPshared/5.0/tmp/.CPprofile.sh ++ export SUPPRESS_GUI_CONN=1 ++ SUPPRESS_GUI_CONN=1 ++ /bin/cpbackup_util gaia_snapshot_size --type snapshot_logs ++ head -n 1 + backup_size_k=8278932 + status_arr=("${PIPESTATUS[@]}") + [[ 0 -eq 0 ]] + [[ 8278932 -gt 0 ]] ++ awk '{ x=$1/1024/1024 ; if ( x == 0 ) x=0.1 ; printf "%.2f\n", x }' + backup_size=7.90 ++ awk '{ x=$1+$2 } END { print x }' + lv_new_size=20.8 ++ awk '{ x=$1/$2 } END { if ( x > 1 ) print 0 ; else print 1 }' + space_is_available=0 + '[' 0 -eq 0 ']' + lv_size=20.8 + save_var_log=1 ++ awk '{ x=$1/$2 } END { if ( x > 1 ) print 0 ; else print 1 }' + space_is_available=0 + case $image_name in + '[' 0 = 1 ']' + '[' 0 '!=' 0 ']' ++ image_calc_boot ++ flist='Kerntypes* System.map* config* initrd* kernel* vmlinuz* vmcoreinfo*' ++ pushd /boot +++ awk '{x+=$1}END{print int(x/1024) + 1}' +++ du 'Kerntypes*' System.map System.map-3.10.0-957.21.3cpx86_64 config-3.10.0-957.21.3cpx86_64 initrd initrd-3.10.0-957.21.3cpx86_64.img initrd-x86_64 'kernel*' vmlinuz vmlinuz-3.10.0-957.21.3cpx86_64 vmlinuz-x86_64 vmcoreinfo-3.10.0-957.21.3cpx86_64 ++ size_of_file_to_copy=20 ++ '[' 0 = 0 ']' +++ check_for_enough_space_in_boot 20 +++ '[' -z 20 ']' +++ size_to_copy=20 ++++ get_max_boot_subdir_size_in_mbyte ++++ maxsize=0 +++++ image_scan ++++++ /usr/sbin/lvs --noheading -o name ++++++ egrep -v '\blv_current\b|\blv_log\b|\blv_fcd_|\bhwdiag\b|\bRMATOOL\b' ++++++ sed s/lv_//g +++++ image_list= +++++ '[' X == X ']' +++++ return 1 ++++ echo 0 ++++ return 0 +++ max_boot_subdirs_size=0 ++++ echo 20 0 ++++ awk '{print ($1 > $2 ? $1 : $2) }' +++ max_boot_size=20 ++++ get_boot_dir_free_spcae_in_mbyte ++++ df ++++ grep boot ++++ awk '{ print int($4 / 1024)}' ++++ return 0 +++ boot_free_space=212 ++++ awk 'BEGIN { print (ARGV[1] + ARGV[2] <= ARGV[3]) }' 20 20 212 +++ space_in_boot_is_available=1 +++ echo 1 +++ return 0 ++ space_in_boot_is_available=1 ++ '[' 0 = 0 ']' ++ popd ++ '[' 1 = 1 ']' ++ echo 0 ++ return 0 + space_in_boot_is_available=0 + '[' 0 '!=' 0 ']' + '[' -n '' ']' + '[' -n user ']' + echo user + [[ xfs == \x\f\s ]] ++ date +%c + echo Sun Jul 31 13:45:59 2022 + lvm2_duplicate_volume lv_Take66 20.8G 43.77G + '[' 3 -ge 1 ']' + user_mountpoint=/mnt/backup + snap_mountpoint=/mnt/snap + snap_name=lv_current_snap ++ lvm2_get_current_lvname +++ lvm2_get_current_rdev ++++ awk -Froot= '{print $2}' /proc/cmdline ++++ awk '{print $1}' +++ current_rdev=/dev/mapper/vg_splat-lv_current +++ echo /dev/mapper/vg_splat-lv_current +++ return 0 ++ crd=/dev/mapper/vg_splat-lv_current +++ echo /dev/mapper/vg_splat-lv_current +++ awk -F/ '{print $NF}' ++ clv=vg_splat-lv_current ++ echo vg_splat-lv_current ++ return 0 + lv_current=vg_splat-lv_current + lv_name=lv_Take66 + lv_size=20.8G + vg_free=43.77G + '[' lv_Take66 = vg_splat-lv_current ']' + cd / + fuser -s -k /mnt/backup + fuser -s -k /mnt/snap + umount -f /mnt/backup + umount -f /mnt/snap + '[' -f /var/log/excluded_files_snapshot/snapshot_excluded_files.txt ']' + /usr/sbin/lvs File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation.+ grep -q lv_Take66 Parent PID 30263: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 30263: /bin/bash + exist=1 + '[' 1 ']' + lvremove -f /dev/vg_splat/lv_Take66 + lvcreate --yes -L20.8G -n lv_Take66 vg_splat + rv=0 + '[' 0 '!=' 0 ']' + mkfs.xfs -f /dev/vg_splat/lv_Take66 + rv=0 + '[' 0 '!=' 0 ']' + mkdir -p /mnt/backup + umount -f /mnt/backup + /bin/mount -o nouuid -n /dev/vg_splat/lv_Take66 /mnt/backup + rv=0 + '[' 0 '!=' 0 ']' + echo snapshot:Take66:30263 + sync + sync + /usr/sbin/lvs + grep -q lv_current_snap File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 30263: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 30263: /bin/bash + exist=1 + '[' 1 ']' + lvremove -f /dev/vg_splat/lv_current_snap ++ echo vg_splat-lv_current ++ sed s/vg_splat-// + path=lv_current + '[' 0 = 0 ']' ++ calc_snapshot_size +++ lvm2_vgfree vg_splat +++ sed 's/.$//' +++ '[' Xvg_splat = X ']' +++ vg_name=vg_splat +++ sed 's/[^0-9.]*//g' ++++ vgs --noheadings --aligned --units g -o vg_free vg_splat ++++ sed 's/^ \{1,\}//' ++++ sed 's/ \{1,\}$//' File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 7 (socket:[48651]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 8 (socket:[48652]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 9 (socket:[48653]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 10 (socket:[49393]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 11 (socket:[45999]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 12 (socket:[46000]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 13 (socket:[46001]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 15 (socket:[46004]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 16 (socket:[46006]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 20 (socket:[66008]) leaked on vgs invocation. Parent PID 31398: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on vgs invocation. Parent PID 31398: /bin/bash +++ free=58.16g +++ '[' X58.16g = X ']' +++ echo 58.16gG +++ return 0 ++ vg_free=58.16 +++ lvm2_sizeof lv_current +++ '[' Xlv_current = X ']' +++ sed 's/.$//' +++ lv_name=lv_current ++++ /usr/sbin/lvs --noheadings --nosuffix --aligned --units g -o lv_size /dev/vg_splat/lv_current ++++ sed 's/^ \{1,\}//' ++++ sed 's/ \{1,\}$//' File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 31408: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 31408: /bin/bash +++ size=32.00 +++ '[' X32.00 = X ']' +++ echo 32.00G +++ return 0 ++ lv_size=32.00 +++ lvm2_get_actual_volume_usage lv_current +++ sed 's/.$//' +++ '[' Xlv_current '!=' X ']' +++ factor=1.15 +++ lv_name=lv_current +++ lvm2_volume_exists lv_current +++ '[' 1 -ge 1 ']' +++ lv_name=lv_current +++ /usr/sbin/lvs +++ grep -q lv_current File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 31416: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 31416: /bin/bash +++ lv_exist=0 +++ return 0 +++ '[' 0 '!=' 0 ']' +++ need_umount=0 +++ lvm2_volume_is_mounted lv_current +++ '[' 1 -ge 1 ']' +++ vol_name=lv_current ++++ lvm2_get_current_rdev +++++ awk -Froot= '{print $2}' /proc/cmdline +++++ awk '{print $1}' ++++ current_rdev=/dev/mapper/vg_splat-lv_current ++++ echo /dev/mapper/vg_splat-lv_current ++++ return 0 +++ root=/dev/mapper/vg_splat-lv_current +++ '[' -L /dev/mapper/vg_splat-lv_current ']' +++ '[' /dev/mapper/vg_splat-lv_current = /dev/mapper/vg_splat-lv_current ']' +++ return 0 +++ '[' 0 '!=' 0 ']' ++++ tail -1 ++++ df -P /dev/mapper/vg_splat-lv_current ++++ awk '{ printf "%d\n", $3 }' +++ vol_used_k=11772924 +++ '[' 0 = 1 ']' ++++ awk '{ x=$1/1024/1024 ; if ( x == 0 ) x=0.1 ; printf "%.2f\n", x }' +++ vol_used_g=11.23 ++++ awk '{ x=$1*$2 ; printf "%.2f\n", x }' +++ volume_usage=12.91 ++++ lvm2_sizeof lv_current ++++ '[' Xlv_current = X ']' ++++ lv_name=lv_current +++++ /usr/sbin/lvs --noheadings --nosuffix --aligned --units g -o lv_size /dev/vg_splat/lv_current +++++ sed 's/^ \{1,\}//' ++++ sed 's/.$//' +++++ sed 's/ \{1,\}$//' File descriptor 3 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::session_ticket_mtx_name) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 4 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::sfk_mtx_name) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 7 (socket:[48651]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 8 (socket:[48652]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 9 (socket:[48653]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 10 (socket:[49393]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 11 (socket:[45999]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 12 (socket:[46000]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 13 (socket:[46001]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 14 (anon_inode:[eventpoll]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 15 (socket:[46004]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 16 (socket:[46006]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 17 (/var/opt/CPshrd-R81.10/tmp/CKP_mutex::__CkpReg_Mutex_) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 20 (socket:[66008]) leaked on lvs invocation. Parent PID 31443: /bin/bash File descriptor 22 (/proc/bus/pci/00/1f.4) leaked on lvs invocation. Parent PID 31443: /bin/bash ++++ size=32.00 ++++ '[' X32.00 = X ']' ++++ echo 32.00G ++++ return 0 +++ lv_size=32.00 ++++ awk '{ if ( $1 < $2 ) print $1 ; else print $2 }' +++ actual_usage=12.91 +++ '[' 0 = 1 ']' +++ echo 12.91 +++ egrep -q '^[0-9\.,]+$' +++ echo 12.91G +++ return 0 ++ used_cur_size=12.91 +++ expr '12.91*2' +++ bc ++ snap_size=25.82 ++ fcomp 32.00 25.82 ++ awk -v n1=32.00 -v n2=25.82 'BEGIN{ if (n1