#!/bin/bash ################################################################################ # # File: mount_project_lvm # Description: This script will mount all project's logical volumes # Author: Andrew DeFaria (defaria@cup.hp.com) # Language: Korn Shell # Modifications: # # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved # ################################################################################ me=$(basename $0) if [ $(id -u) -ne 0 ]; then print -u2 "$me: Error: You must be root to execute this command!" exit 1 fi if [ $# -ne 2 ]; then print -u2 "Usage: $me projectID fileserver" exit 1 fi projectID=$1 fileserver=$2 print Mounting $projectID LVMs on $fileserver and build servers... /app/admin/bin/buildservers "/app/admin/bin/mountlvm $projectID $fileserver" print Mounting $projectID and $fileserver on virtual workstations... /app/admin/bin/wrkservers "/app/admin/bin/mountlvm $projectID $fileserver"