From 3369dfb94fc09cccdbfa64e2117741df982c46ae Mon Sep 17 00:00:00 2001 From: Victor Hu Date: Thu, 5 Feb 2015 11:05:01 -0500 Subject: [PATCH] Added a print out to help the user configure /etc/fstab for automount of the consistent file storage on reboot --- xCAT-SoftLayer/bin/softlayer_storage.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/xCAT-SoftLayer/bin/softlayer_storage.py b/xCAT-SoftLayer/bin/softlayer_storage.py index 5c82aa6d4..d52609e5d 100755 --- a/xCAT-SoftLayer/bin/softlayer_storage.py +++ b/xCAT-SoftLayer/bin/softlayer_storage.py @@ -48,6 +48,7 @@ def mount_nas_storage(hostname, user, passwd, mountPoint): print "%s\n" %(cmd) def mount_consistent_storage(hostname, user, mountPoint): + # TODO: would be good to be able to specify the nfs version as a argument print "Attempting to mount the Consistent Performance File Storage at %s" %(mountPoint) if xcatutils.isMounted(mountPoint): @@ -60,6 +61,11 @@ def mount_consistent_storage(hostname, user, mountPoint): else: print "Success\n" + # To help out with automount, print this msg + print "\nNote: To configure automount on reboot, add the following into /etc/fstab:" + cmd = "%s:/%s %s nfs4 defaults,hard,intr 0 0" %(hostname,user,mountPoint) + print "%s\n" %(cmd) + def unmount_storage(mountPoint): print "Attempting to unmount the NAS at %s..." %(mountPoint)