summaryrefslogtreecommitdiffstats
path: root/base/root/scripts
diff options
context:
space:
mode:
authorMartin Schwenke <martin@meltin.net>2009-08-13 13:36:43 +1000
committerMartin Schwenke <martin@meltin.net>2009-08-13 13:36:43 +1000
commitc5b7e1cd4495be2020a3a53d59a90ed7781e6e6e (patch)
tree09130efc1d47bbf2d58567f73bd70bb6a635a600 /base/root/scripts
parentc2b555a65e76742e025e75d785e2ce2f16f3f0df (diff)
Parameterise disk type and the corresponding device file prefix.
The version of kvm under RHEL5.4 does not support the SCSI emulation. So allow the use of ide or virtio instead. Signed-off-by: Martin Schwenke <martin@meltin.net>
Diffstat (limited to 'base/root/scripts')
-rwxr-xr-xbase/root/scripts/setup_tsm_server.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/base/root/scripts/setup_tsm_server.sh b/base/root/scripts/setup_tsm_server.sh
index 6a5c9dc..33dec5d 100755
--- a/base/root/scripts/setup_tsm_server.sh
+++ b/base/root/scripts/setup_tsm_server.sh
@@ -17,17 +17,17 @@ service multipathd stop || true
multipath -F || true
cat <<EOF >> /etc/multipath.conf
blacklist {
- "^sdb"
+ "^@@DISK_PREFIX@@b"
}
EOF
echo "Disabling multipath at boot"
sed -e 's/rhgb/rhgb nompath/g' -i.orig /boot/grub/grub.conf
-mkfs.ext3 -F /dev/sdb
+mkfs.ext3 -F /dev/@@DISK_PREFIX@@b
mkdir -p /tsmdiskpool
cat <<EOF >> /etc/fstab
-/dev/sdb /tsmdiskpool ext3 defaults 1 1
+/dev/@@DISK_PREFIX@@b /tsmdiskpool ext3 defaults 1 1
EOF
mount /tsmdiskpool