Initial add of defaria.com
[clearscm.git] / defaria.com / Computers / code / adm / bin / mount_project_lvm
1 #!/bin/bash
2 ################################################################################
3 #
4 # File:         mount_project_lvm
5 # Description:  This script will mount all project's logical volumes
6 # Author:       Andrew DeFaria (defaria@cup.hp.com)
7 # Language:     Korn Shell
8 # Modifications:
9 #
10 # (c) Copyright 2001, Andrew@DeFaria.com, all rights reserved
11 #
12 ################################################################################
13 me=$(basename $0)
14 if [ $(id -u) -ne 0 ]; then
15   print -u2 "$me: Error: You must be root to execute this command!"
16   exit 1
17 fi
18
19 if [ $# -ne 2 ]; then
20   print -u2 "Usage: $me projectID fileserver"
21   exit 1
22 fi
23
24 projectID=$1
25 fileserver=$2
26
27 print Mounting $projectID LVMs on $fileserver and build servers...
28 /app/admin/bin/buildservers "/app/admin/bin/mountlvm $projectID $fileserver"
29
30 print Mounting $projectID and $fileserver on virtual workstations...
31 /app/admin/bin/wrkservers "/app/admin/bin/mountlvm $projectID $fileserver"