Added a print out to help the user configure /etc/fstab for
automount of the consistent file storage on reboot
This commit is contained in:
parent
d324f22ed6
commit
3369dfb94f
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user