RAID

From Northwestern University Center for Atom-Probe Tomography
Jump to navigation Jump to search

Create RAID Array on VTRAK

minicom

Main Menu
 1. Subsystem Management
 2. Physical Drive Management
 3. Disk Array Management
 4. Logical Drive Management
 5. Network Management
 6. SCSI Management
 7. Maintenance
 8. Event Viewer
 9. Buzzer

 Please enter your menu choice>

2

 ID   Name                     Capacity   Write Cache   Status
--------------------------------------------------------------------------
1    ST3750640AS              750 GB     Enabled       Free
2    ST3750640AS              750 GB     Enabled       Free
5    ST3750640AS              750 GB     Enabled       Free
6    ST3750640AS              750 GB     Enabled       Free
9    ST3750640AS              750 GB     Enabled       Free
10   ST3750640AS              750 GB     Enabled       Free
--------------------------------------------------------------------------
Physical Drive Management
 1. View Parameters
 2. Enable/Disable Write Cache
 3. Wipe Out Boot Sector
 4. Wipe Out Reserved Sector
 5. Blink LED
 6. Diagnostics
 7. IO Statistics
 R. Return to Previous Menu

R

Main Menu
 1. Subsystem Management
 2. Physical Drive Management
 3. Disk Array Management
 4. Logical Drive Management
 5. Network Management
 6. SCSI Management
 7. Maintenance
 8. Event Viewer
 9. Buzzer

 Please enter your menu choice

3

Disk Array Management
 1. Disk Array Auto Creation
 2. Create Disk Array
 3. Delete Disk Array
 4. Disk Array Properties
 5. PDM Auto Start Option
 R. Return to Previous Menu
 Please enter your menu choice>

2

 *********Physical Drives Selection*********
  ID          Name                   Capacity
 --------------------------------------------
  1           ST3750640AS            750 GB
  2           ST3750640AS            750 GB
  5           ST3750640AS            750 GB
  6           ST3750640AS            750 GB
  9           ST3750640AS            750 GB
  10          ST3750640AS            750 GB

 Enter Physical Drive IDs and/or ID ranges
 separated by commas. For example: 1,5,8-15.
 Press Enter to continue after you have finished
 selecting Physical Drives.

 Your input?>

1,2,5,6,9

 *********Physical Drives Selection*********
  ID          Name                   Capacity
 --------------------------------------------
 *1           ST3750640AS            750 GB
 *2           ST3750640AS            750 GB
 *5           ST3750640AS            750 GB
 *6           ST3750640AS            750 GB
 *9           ST3750640AS            750 GB
  10          ST3750640AS            750 GB

 5 Physical Drives have been selected.
 Enter Physical Drive IDs and/or ID ranges
 separated by commas. For example: 1,5,8-15.
 Press C to continue and define the RAID level options.

 Your input?>

C

RAID Level Options:
 0  - RAID 0  (Striping)
 1  - RAID 1  (Mirroring)
 3  - RAID 3  (Parity Dedicated)
 5  - RAID 5  (Parity Distributed)
 10 - RAID 10 (Striping/Mirroring)
 50 - RAID 50

 Please enter RAID level(0,3,5)

5

 Stripe block size(4, 8, 16, 32, 64, 128) in KB?>

128

 Enter the Disk Array name>

VTrak-2006

 Enable initialization(y/n)?

y

 Disk Array creation information:
 Name:                      VTrak-2006
 Number of Physical Drives: 5
 RAID Level:                RAID 5
 Stripe Block Size:         128KB
 SMART Check:               enabled

 Create Disk Array now(y/n)?

y

Mapping for Disk Array 1:
----------
| Free   |
| 3000G  |
----------


Maximum available capacity is 3000G.
Press Enter key to use the maximum capacity
Or specify the capacity in GB for the LD to be created.
Example 1: 12, this will create a 12G Logical Drive.
Example 2: 6x5G, this will create 6 LDs of 5G each.
Example 3: 2 6 32, this will create 3 LDs of 2G, 6G and 32G respectively.

SCSI ID

SCSI Management

 1. Channel TID
 2. RAID Console
 R. Return to Previous Menu
 Please enter your menu choice>1



 ****Modify SCSI Channel TID****
 SCSI Channel #             TIDs
 -------------------------------
 1                           3
 ------------------------------
 2                           4

Setup Array on Freebsd

# reboot

# dmesg |grep -i RAID

twed0: <Unit 0, RAID5, Normal> on twe0
da0: <Promise 5 Disk RAID5 V0.0> Fixed Direct Access SCSI-4 device

twed0 is the old array da0 is the new one. Presumably, da1 will be the next one

# newfs /dev/da0

# mkdir /u2

# mount /dev/da0 /u2

# nano /etc/fstab

# Device                Mountpoint      FStype  Options         Dump    Pass#
/dev/ad0s1b             none            swap    sw              0       0
/dev/ad0s1a             /               ufs     rw              1       1
/dev/twed0s1d           /u1             ufs     rw              2       2
/dev/da0                /u2             ufs     rw              2       2
/dev/acd0               /cdrom          cd9660  ro,noauto       0       0

Change Home Directories

# cd /u1 && cp -pr [a-z] /u2

# nano changehome.sh

#!/bin/sh
for file in `ls -d [a-z]/* | cut -c 3-100`
do
 smbldap-usermod -d /u2/$file $file
done

# nano /usr/local/share/examples/samba/LDAP/smbldap-tools/smbldap-tools-0.8.2-1/smbldap_conf.pm

Change $_userHomePrefix = q(/u1/); to $_userHomePrefix = q(/u2/);