Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
23 lines (20 sloc) 502 Bytes
#!/bin/bash
STORE_DIR=/var/vcap/store
STORE=/var/vcap/instance/disks/<%= link("store").p("name") %>
if ! e2fsck -n $STORE
then
mkfs.ext4 -F $STORE
fi
if ! mountpoint -q $STORE_DIR
then
mkdir -p $STORE_DIR
mount -t ext4 $STORE $STORE_DIR
fi
if [ ! -L /opt ] ; then
rm -rf /opt
fi
mkdir -p /var/cores /var/vcap/store/portworx/osd /var/vcap/data/opt
ln -sf /var/vcap/store/portworx /etc/pwx
ln -sf /var/vcap/data/opt /opt
ln -sf /var/vcap/store/portworx/osd /var/lib/osd
mkdir -p /opt/pwx/bin
You can’t perform that action at this time.