Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

RAID-5 creation problem

Status
Not open for further replies.

ogniemi

Technical User
Nov 7, 2003
1,041
PL
Could anyone please answer why the last command failed?


# ssaraid -I -l ssa1 -z
pdisk0 0040AA40445500D system n/a 36.4GB Physical disk
pdisk1 0040AA72463600D system n/a 36.4GB Physical disk
pdisk2 0040AA7446DC00D system n/a 36.4GB Physical disk
pdisk3 0040AA740D7C00D system n/a 36.4GB Physical disk

# MEMBERS=$(ssaraid -I -l ssa1 -z|head -3|awk -F" " '{print $2}')

# SPARE=$(ssaraid -I -l ssa1 -z|tail -1|awk -F" " '{print $2}')


# for i in $MEMBERS;do ssaraid -H -l ssa0 -n $i -a use=free -u;done
hdisk2 deleted

0040AA40445500D detached
hdisk3 deleted

0040AA72463600D detached
hdisk4 deleted

0040AA7446DC00D detached


# ssaraid -H -l ssa0 -n $SPARE -a use=spare -u
hdisk5 deleted

0040AA740D7C00D detached
0040AA740D7C00D changed

# ssaraid -I -l ssa1 -z
pdisk0 0040AA40445500D free n/a 36.4GB Physical disk
pdisk1 0040AA72463600D free n/a 36.4GB Physical disk
pdisk2 0040AA7446DC00D free n/a 36.4GB Physical disk
pdisk3 0040AA740D7C00D spare n/a 36.4GB Physical disk



# ssaraid -C -l ssa0 -t spare_pool -n'pool_A0' -s $SPARE
0040AA740D7C00D changed
pool_A0 changed
pool_A0 attached


# ssaraid -C -l ssa0 -t raid_5 -s $MEMBERS -a strip_size=128 -a spare=true spare_preferred=true -a allow_page_splits=true -a fastwrite=on -d -k RAID5_new
ssacrt: Member 0040AA40445500D is not a valid candidate
ssacrt: Member 0040AA72463600D is not a valid candidate
ssacrt: Member 0040AA7446DC00D is not a valid candidate
 
Sorry, in the problem description instead of ssa1 everywhere should be ssa0.

m.
 
well I didn't find a manpage for using the ssaraid commnd directly, but first glance is that you are making 3 disks "free" where they should be array candidates if I'm not mistaken.
 
free means they are array candidates.

don't ask me why when changing disk to be "array candidate" its status goes in "free"...


r, m.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top