Configure new disk: Difference between revisions

From DISI
Jump to navigation Jump to search
(Created page with "=Configure new disk= == High level description == * 0.1) remove the disk in the db array as a spare from the system array (this was a workaround for something strange) * 0.2...")
 
No edit summary
Line 36: Line 36:
  ctrl slot=1 create type=ld drives=4E:1:1-4E:1:24 raid=1+0
  ctrl slot=1 create type=ld drives=4E:1:1-4E:1:24 raid=1+0
(for the second array)
(for the second array)
add spares
ctrl slot=1 array A add spares=3E:1:25
ctrl slot=1 array D add spares=1E:1:25
ctrl slot=1 array E add spares=3E:1:25


create physical volume
create physical volume
  command
  cmd here


create volume group
create volume group

Revision as of 17:15, 21 November 2012

Configure new disk

High level description

  • 0.1) remove the disk in the db array as a spare from the system array (this was a workaround for something strange)
  • 0.2) assign the spare disk in the work array as a spare
  • 1) create new raid 1+0 arrays for each chassis then assign slot 25 as a spare
  • 2) assign each to a physical volume
  • 3) create a volume group for each
  • 4) create a logical volume for each
  • 5) create a file system on the logical volume
  • 6) Add to fstab & mount
  • 7) Add to nfs exports and restart nfsd

Steps 0.1 though 1 are done using the HP controller proprietary software. the rest are done as root on the command line

Note

  • 1) there is a spare assigned to array A
  • 2) everything is working off of the controller in "slot 1" (the good one)
  • 3) the dell box does not know how to distinguish drives (the IDs are all the same)
  • 4) we have lots of spares

Command line description

As root on fawlty:

/opt/compaq/hpacucli/bld/hpacucli

then inspect the current configuration:

ctrl all show config

To remove the spare let's just remove all spares (we haven't assigned any important ones yet) run the following command:

ctrl slot=1 array A remove spares=all

create arrays (logical disk with all the disks in a specific chassis)

ctrl slot=1 create type=ld drives=1E:1:1-1E:1:24 raid=1+0
ctrl slot=1 create type=ld drives=4E:1:1-4E:1:24 raid=1+0

(for the second array)

add spares

ctrl slot=1 array A add spares=3E:1:25
ctrl slot=1 array D add spares=1E:1:25
ctrl slot=1 array E add spares=3E:1:25

create physical volume

cmd here

create volume group

command here

create logical volume

command here

create file system on logical volume

command here

add fstab and mount

instructions here


nfsexports, restart nfsd

instructions here

mount everywhere

instructions here