-
Notifications
You must be signed in to change notification settings - Fork 0
/
99_umount_boostfs.sh
64 lines (61 loc) · 1.39 KB
/
99_umount_boostfs.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#!/usr/bin/sh +vx
#
# This script is part of performing Oracle Incremental Merge and Live Mount with Data Domain snapshot with Data Domain BoostFS
#
# Script: 99_umount_boostfs.sh
#
# Author: Trichy Premkumar, prem@acslink.net.au
#
# Disclaimer: Scripts have been developed for testing Oracle incremental merge with Data Domain snapshot
# No support or warranty is included
#
# #IWork4DELL
#
# Pre-requisites:
#
# - BoostFS is mounted to a filesystem using 10_mount_boostfs.sh
#
# Function:
#
# - This script allows to unmount a previously mounted boostfs filesystem using 10_mount_boostfs.sh
#
#
if [ -z ${SCRIPTS_DIR} ]
then
echo " "
echo "Location of scripts is not know - please set environment variable SCRIPTS_DIR to the location of scripts"
echo " "
exit 1
else
if [ -f ${SCRIPTS_DIR}/00_set_environment.inc ]
then
. ${SCRIPTS_DIR}/00_set_environment.inc
else
echo " "
echo "Environment variable script cannot be located.. exiting."
echo " "
exit 1
fi
fi
#
# check if boostfs is already mounted.. else mount it
#
df -k | grep "${BOOSTFS_MOUNT}" > /dev/null
rs=$?
if [ $rs = 0 ];
then
/opt/emc/boostfs/bin/boostfs umount ${BOOSTFS_MOUNT}
else
echo " "
echo "${BOOSTFS_MOUNT} is not mounted "
echo " "
exit 1
fi
if [ $rs = 0 ];
then
echo " "
echo "${BOOSTFS_MOUNT} successfully unmounted "
echo " "
else
exit 1
fi