Difference between revisions of "OBCP Cluster Management"
Jump to navigation
Jump to search
(Use obcpAddUser.sh to add user, not ./addUser.sh.) |
|||
(5 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
− | '''Add Capacity to OBCP Cluster NAS | + | '''OBCP Cluster Management''' |
+ | |||
+ | |||
+ | |||
+ | == Add New User == | ||
+ | |||
+ | <!-- | ||
+ | # Go to ''johnsonlab'' folder. | ||
+ | ## <code>$ cd /data/johnsonlab/</code> | ||
+ | # Modify ''addUser.sh'' by changing ''NEW_USER'' variable at top to the new username. Exit and save when finished. | ||
+ | ## <code>$ sudo nano addUser.sh</code> | ||
+ | ## <code>... NEW_USER=[username] ...</code> | ||
+ | # Execute ''addUser.sh'' and enter password for new user. Enter full name of user when prompted. The rest of the options before the disk quota can be ignored. | ||
+ | ## <code>$ sudo ./addUser.sh</code> | ||
+ | --> | ||
+ | To add a new user, run the ''obcpAddUser.sh'' script; | ||
+ | this script is located in ''/usr/local/bin''. | ||
+ | # Execute ''obcpAddUser.sh'' with username on command line; when prompted, enter the password for new user, the full name of the user, and the user's PI for Other. The rest of the options before the disk quota can be ignored. | ||
+ | ## <code>$ sudo obcpAddUser.sh <username></code> | ||
+ | # When the disk quotas configuration is displayed, change the soft limits for the number of blocks and inodes allowed by the user on the OS filesystem to 1GB. | ||
+ | ## Move the cursor to the first ''0'', which is the third column, and change the value to ''1000000''. | ||
+ | ## Move the cursor to the next to the last ''0'', which is the sixth column, and change the value to ''1000000''. | ||
+ | # Force the user to change this password upon first login. | ||
+ | ## <code>$ sudo chage -d 0 <username> </code> | ||
+ | |||
+ | |||
+ | == Initiate OBCP Cluster iSCSI Connection == | ||
+ | |||
+ | Command: <code>sudo iscsiadm -m node -T iqn.1991-05.com.microsoft:d2l7t6v1-obcp-nas-target -p 192.168.5.2:3260 --login</code> | ||
+ | |||
+ | |||
+ | == Mount iSCSI Volumes == | ||
+ | |||
+ | Command: <code>sudo mount /dev/sdb1 /data</code> | ||
+ | |||
+ | Command: <code>sudo mount /dev/sdc1 /data2</code> | ||
+ | |||
+ | |||
+ | == Add Capacity to OBCP Cluster NAS == | ||
# Insert hard disk with caddy into next available slot within NAS | # Insert hard disk with caddy into next available slot within NAS | ||
Line 14: | Line 52: | ||
# Within the cluster Ubuntu OS, prepare to extend the iSCSI partition and filesystem | # Within the cluster Ubuntu OS, prepare to extend the iSCSI partition and filesystem | ||
## Kill any processes accessing the iSCSI interface | ## Kill any processes accessing the iSCSI interface | ||
− | ## Logout from the iSCSI connection and unmount the iSCSI filesystem ( | + | ## Logout from the iSCSI connection and unmount the iSCSI filesystem (<code>umount /dev/sdb1</code> - may require a restart) |
− | ## Within the Ubuntu GUI, open GParted and | + | ## Within the Ubuntu GUI, open GParted and extend the partition stored on the NAS |
− | ## Log back into the iSCSI connection and remount the iSCSI filesystem ( | + | ## Log back into the iSCSI connection and remount the iSCSI filesystem (<code>mount -a</code>) |
# The cluster is now ready to use the additional storage capacity | # The cluster is now ready to use the additional storage capacity | ||
[[Category:OSUC Private]] | [[Category:OSUC Private]] |
Latest revision as of 20:14, 21 December 2015
OBCP Cluster Management
Contents
Add New User
To add a new user, run the obcpAddUser.sh script; this script is located in /usr/local/bin.
- Execute obcpAddUser.sh with username on command line; when prompted, enter the password for new user, the full name of the user, and the user's PI for Other. The rest of the options before the disk quota can be ignored.
$ sudo obcpAddUser.sh <username>
- When the disk quotas configuration is displayed, change the soft limits for the number of blocks and inodes allowed by the user on the OS filesystem to 1GB.
- Move the cursor to the first 0, which is the third column, and change the value to 1000000.
- Move the cursor to the next to the last 0, which is the sixth column, and change the value to 1000000.
- Force the user to change this password upon first login.
$ sudo chage -d 0 <username>
Initiate OBCP Cluster iSCSI Connection
Command: sudo iscsiadm -m node -T iqn.1991-05.com.microsoft:d2l7t6v1-obcp-nas-target -p 192.168.5.2:3260 --login
Mount iSCSI Volumes
Command: sudo mount /dev/sdb1 /data
Command: sudo mount /dev/sdc1 /data2
Add Capacity to OBCP Cluster NAS
- Insert hard disk with caddy into next available slot within NAS
- Within the NAS Windows OS, open Dell Open Manage Server Administrator
- Initialize the new physical disk
- Reconfigure the virtual disk (RAID-6) to include the new disk
- Re-initialize the virtual disk to prepare for added capacity
- Within the NAS Windows OS, open Windows Computer Management
- In Disk Management, extend the virtual disk volume to use the added capacity
- In iSCSI Software Management, go to Device and extended the virtual disk volume to use the added capacity
- Within the cluster Ubuntu OS, prepare to extend the iSCSI partition and filesystem
- Kill any processes accessing the iSCSI interface
- Logout from the iSCSI connection and unmount the iSCSI filesystem (
umount /dev/sdb1
- may require a restart) - Within the Ubuntu GUI, open GParted and extend the partition stored on the NAS
- Log back into the iSCSI connection and remount the iSCSI filesystem (
mount -a
)
- The cluster is now ready to use the additional storage capacity