You are on page 1of 51

SCST Configuration How-To Using Gentoo

1 REQUIREMENTS 1.1 1.1.1 1.1.! 1.1." 1.1.# 1.1.$ 1.! Hardware Requirements
High-end Desktop 3 Gigabit or better Network Cards 6 x 3.0 TB 7200 !" HDD#s $ x %00 GB HDD & GB "e'or( )ti*k

Software Requirements Gentoo +in,x x6& Base -nsta.. -'age +atest Gentoo )tage3 Tarba.. +atest !ortage snapshot. )C)T 2.2.0 )o,r*es

1.!.1 1.!.! 1.!." 1.!.#

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $ o3 %$

! GENT%% INST&''&TI%N !.1


(own)oads
Down.oad Gentoo x6& Base insta..ation Disk -)4 3ro' http055dist3i.es.gentoo.org5re.eases5a'd6&5a,tob,i.ds5*,rrent-iso5 - Down.oad the one with the .atest date. %n*e down)oaded+ ,urn it to dis*.

!.1.1

!.1.!

Next we need to down.oad the .atest )tage 3 Tarba.. 3or Gentoo x6&6 to do this 7 go to0 http055dist3i.es.gentoo.org5re.eases5a'd6&5a,tob,i.ds5*,rrent-stage35 and down.oad the .atest one.

%n*e (own)oaded+ *o-. t/e fi)e to t/e memor. sti*0.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 2 o3 %$

!.1."

Next we need to down.oad the .atest !ortage snapshot. Go down.oad the .atest snapshot 3ro' this .ink0 http055de-'irror.org5gentoo5snapshots5portage-.atest.tar.b82 . %n*e (own)oaded+ *o-. t/e fi)e to t/e memor. sti*0.

!.! !.!.1

Insta))ation
-nsert the Gentoo CD (o, b,rned into the CD Dri9e on the !C6 and press enter on the boot pro'pt that pops ,p.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 3 o3 %$

!.!.!

4n*e booted6 (o, wi.. see this s*reen0

!.!."

:e 3irst need to *hange the root password

1 T(pe -asswd and press ;nter.

1 /t the pro'pt6 t(pe (o,r new password6 and press ;NT;

1 Con3ir' (o,r pasword6 and press ;NT;

again0

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age & o3 %$

!.!.#

Next we need to set ,p the network6 we wi.. si'p.( ,se dh*p to set ,p the network *ard6 and set a 3ixed -! .ater. Ma0e sure t/at .ou /a2e Internet a**ess<

!.!.#.1

=irst we need to *he*k i3 the .i9e *d pi*ked ,p o,r network *ards proper.(. :e ha9e 3 o3 the' so in .in,x 7 the na'es o3 the *ards wi.. be et/36 et/1 and et/! respe*ti9e.(. To test i3 the .i9e *d pi*ked the' a.. ,p.

1 T(pe if*onfig et/3 and press ;nter.

1 T(pe if*onfig et/1 and press ;nter.

1 T(pe if*onfig et/! and press ;nter.

-3 (o, see the i'age be.ow 3or an( o3 the network *ards6 swop it o,t with another one. -t does not ne**e*ari.( 'ean the *ard is 3a,.t(6 it *o,.d be that it has no dri9ers 3or that 'ode. o3 *ard. +oading extra dri9ers is be(ond the s*ope o3 this do*,'ent.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age % o3 %$

!.!.#.!

Now to set ,p the pri'ar( N-C 7 the one we going to ,se to 'anage the box 7 eth0.

1 T(pe d/*-*d -H( et/3 and press ;nter.

Next we need to *he*k i3 we got an ip address. >o, wi.. see the 3o..owing6 i3 it is 'issing an ip address 7 *he*k (o,r network *ab.e 5 DHC! )er9er0

1 T(pe if*onfig et/3 and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 6 o3 %$

!.!.$

Ti'e to read( o,r 'ain hard dri9e 3or the insta..ation. +ets 3irst .ist what dri9es we ha9e a9ai.ab.e to ,s. The o,tp,t wi.. .ook as 3o..ows0

!.!.$.1
1

T(pe fdis0 -) and press ;nter.

/s (o, *an see6 it is disp.a(ing a.. the disks insta..ed in the s(ste'6 and o,r insta..ation disk is o,t o3 the disp.a(. /s it is *onne*ted to port $ on the )/T/ 5 )/) *ontro..er6 it sho,.d be 5de95sda6 +et#s *on3ir' that 7 on this test set,p - ,sed to get the s*reenshots 7 the s(ste' disk is ? GB in si8e6 so .ets .ist on.( 5de95sda on the 3disk o,tp,t. 4,tp,t sho,.d show si'i.ar to this@(o,r disk si8e ob9io,s.(A

T(pe fdis0 4de24sda -) and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 7 o3 %$

!.!.$.!

4k6 so now that we know that it is pi*king ,p o,r dri9e *orre*t.(6 we *an start partitioning it to ho.d o,r operating s(ste'. To do this6 we ha9e to r,n 3disk again6 b,t this ti'e we wi.. not be passing ti the -) para'eter.

1 T(pe fdis0 4de24sda and press ;nter.

1 m wi.. show a .ist o3 the a9ai.ab.e options0

=irst we need to *reate a D4) partition tab.e. The o,tp,t wi.. be /,thor0 1,rie Botha Gentoo 2 )C)T -nsta..ation "an,a. !age ? o3 %$

si'i.ar to this0

1 T(pe o and press ;nter.

Now that we ha9e o,r partition tab.e6 we *an start partitioning the disk. =irst .ets .ook at the partitions we want to *reate. :e need 2 basi* partitions at 'ini','6 one 3or the root o3 the 3i.es(ste'6 and one 3or swapspa*e. :e wi.. be *reating 3 - 5 6 5boot and swap. To ),''ari8e0 5artition 5de95sda$ 5de95sda2 5de95sda3 Si6e 200"B 736%"B $02&"B Use 5boot 5 swap

This wi.. be the .a(o,t 3or '( ? GB Disk6 >o, want to assign the 'aBorit( o3 (o,r disk spa*e to the 5 partition6 as this wi.. be ho.ding (o,r operating s(ste'. +ets *reate o,r 3irst partition. -t now asks ,s what kind o3 partition we want to *reate 7 as seen be.ow0

1 T(pe n and press enter.

:e want to *reate a pri'ar( partition. -t wi.. now ask ,s what partition n,'ber we want to *reate.

T(pe - and press ;nter

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age C o3 %$

This is the 3irst partition.

1 T(pe 1 and then ;nter.

/t the =irst )e*tor !ro'pt6 press ;nter to a**ept the de3a,.t 9a.,e. The 3o..owing wi.. show a3terwards0

1 !ress ;nter to a**ept the de3a,.t 9a.,e.

/t this pro'pt6 we need to te.. 3disk how big we want o,r partition to be. :e are *reating the 5boot partition6 whi*h we want to be 200"B. :e are then ret,rned to the D'ain 'en,E6 o,r partition has been *reated s,**ess3,..(<

T(pe 7!33M and press enter

Re-eat t/e a8o2e ste-s for ea*/ of t/e -artitions6 *hanging on.( the si8e o3 the partition and the partition n,'ber @2nd partition F 2 et*...A a**ording.(. @Note on t/e )ast -artition .ou *reate+ 9ust -ress Enter on a)) t/e -rom-ts to a**e-t t/e defau)ts.A

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $0 o3 %$

Now we B,st need to te.. .in,x that 5de95sda3 is a swap partition.

To do this press t and ;nter+ then " and ;nter6 then :! and ;nter

:hen done6 press w at the 'ain 'en, to write the *hanges to disk. +et#s a.so .ook at the new partition str,*t,re on 5de95sda.

T(pe fdis0 4de24sda -) and press ;nter

!.!.$."

Now we need to 3or'at o,r partitions with the appropriate 3i.es(ste's6 and *reate 2 a*ti9ate the swap spa*e. =irst o336 .ets de*ide what 3i.es(ste's to ,se0 5artition 5de95sda$ 5de95sda2 5de95sda3 Mount 5oint 5boot 5 )wap ;i)es.stem ;GT3 ;GT& N5/

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $$ o3 %$

To *reate o,r 3irst 3i.es(ste' 3or 5de95sda$.

T(pe m0fs.e<t" 4de24sda1 and press ;nter.

To *reate o,r 3i.es(ste' 3or 5de95sda2.

1 T(pe m0fs.e<t# 4de24sda! and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $2 o3 %$

Now6 to *reate o,r swapspa*e.

1 T(pe m0swa- 4de24sda" and press ;nter

/nd 3ina..( 7 we need to a*ti9ate the )wapspa*e.

T(pe swa-on 4de24sda" and press ;nter.

>o,#.. noti*e 7 there#s no o,tp,t te..ing ,s that it has been done 7 b,t it has.

!.!.$.#

Now that (o,r partitions are initia.i8ed and are ho,sing a 3i.es(ste'6 it is ti'e to 'o,nt those partitions. Hse the 'o,nt *o''and. Don#t 3orget to *reate the ne*essar( 'o,nt dire*tories 3or e9er( partition (o, *reated. /s an exa'p.e we 'o,nt the root and boot partition0

1 T(pe mount 4de24sda! 4mnt4gentoo and press ;nter. 1 T(pe m0dir 4mnt4gentoo48oot and press ;nter. 1 T(pe mount 4de24sda1 4mnt4gentoo48oot and press ;nter6

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $3 o3 %$

!.!.=

4k< Now we get to the 3,n part6 insta..ing Gentoo. =irst.( insert the ,sb 'e'or( sti*k *ontaining the two .tar.g8 3i.es into the p*. +et#s *he*k whether it has been dete*ted6 to do this we ,se the fdis0 -) *o''and again. -t sho,.d be the .ast dri9e on the .ist 7 in '( *ase 4de24sd/0

!.!.=.1

1 T(pe fdis0 -) and press ;nter.

Now we need to 'o,nt the 'e'or( sti*k so that we *an a**ess the data on it6 to do this we 3irst need to *reate a 3o.der to 'o,nt it on.

1 T(pe 'kdir 4mnt4us8+ this wi.. *reate a 3o.der ,nder 4mnt *a..ed us8.

Now to 'o,nt o,r 'e'or( sti*k. -n '( *ase the de9i*e na'e 4de24sd/6 and the partition we want to 'o,nt is 4de24sd/1.

1 T(pe mount 4de24sd/1 4mnt4us8 and press ;nter.

Be3ore (o, *ontin,e (o, need to *he*k (o,r date5ti'e and ,pdate it. / 'is-*on3ig,red *.o*k 'a( .ead to strange res,.ts in the 3,t,re<

1 To 9eri3( the *,rrent date5ti'e6 t(pe date and press ;nter.

-3 the date5ti'e disp.a(ed is wrong6 ,pdate it ,sing the date MM((//mm>>>> s(ntax @Month6 (a(6 /o,r6 min,te and >earA. /t this stage6 (o, sho,.d ,se HTC ti'e. >o, wi.. be ab.e to de3ine (o,r ti'e8one .ater on. /,thor0 1,rie Botha Gentoo 2 )C)T -nsta..ation "an,a. !age $& o3 %$

=or instan*e6 to set the date to De*e'ber 06th6 $20%2 in the (ear 20$$6 1 T(pe date 1!3=1!$!!311 and press ;nter.

Go to the Gentoo 'o,ntpoint at whi*h (o, 'o,nted (o,r 3i.es(ste's @5'nt5gentooA.

1 T(pe *d 4mnt4gentoo and press ;nter.

Now ,npa*k (o,r down.oaded stage 3 tarba.. onto (o,r s(ste'. :e ,se tar to pro*eed as it is the easiest 'ethod.

1 T(pe tar <29-f 4mnt4us84stage"-?.tar.86 and press ;nter. @the stage3-I.tar.b8


sho,.d be the na'e o3 (o,r stage3 3i.e on the 'e'or( sti*kA0

+ets *he*k that the extra*tion has been *o'p.eted.

1 T(pe )s and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $% o3 %$

-n the next step6 we extra*t the !ortage snapshot onto (o,r 3i.es(ste'. "ake s,re that (o, ,se the exa*t *o''andJ the .ast option is a *apita. C6 not *

1 T(pe tar <29f 4mnt4us84-ortage-)atest.tar.86! -C 4mnt4gentoo4usr and press ;nter.


. +ets *he*k that the extra*tion has been *o'p.eted.

1 T(pe )s 4mnt4gentoo4usr4-ortage and press ;nter.

Now we need to *on3ig,re o,r 'ake.*on3 3i.e6 3or the sake o3 'aking things easier6 B,st 'ake s,re (o,r 3i.e 4mnt4gentoo4et*4ma0e.*onf .ooks the sa'e as be.ow.

1 T(pe nano 4mnt4gentoo4et*4ma0e.*onf and press ;nter.


C=+/G)FK-42 -'ar*hFk? -pipe -'no-t.s-dire*t-seg-re3sK CGG=+/G)FKLMC=+/G)NK CH4)TFKx?6O6&-p*-.in,x-gn,K "/P;4!T)FK-B2K QQ -9! means ! *ore -ro*essor @ so for quad *ore t.-e -9# =;/TH ;)FKpara..e.-3et*h **a*heK D-)TD- F5ho'e5portage5dist3i.es P; N;+OD- F5,sr5sr*5.in,x /CC;!TO+-C;N);FKIK H);FK''x sse sse2K G;NT44O"- 4 )FKhttp055dist3i.es.gentoo.org http0553tp.twaren.net5+in,x5Gentoo5 http055'irror.swit*h.*h53tp5'irror5gentoo http0553tp.snt.,twente.n.5p,b5os5.in,x5gentooK /,thor0 1,rie Botha Gentoo 2 )C)T -nsta..ation "an,a. !age $6 o3 %$

)>NCFErs(n*055rs(n*$.de.gentoo.org5gentoo-portageE

!.!.=.!

Now we get to insta..ing the Gentoo Base )(ste'. 4ne thing sti.. re'ains to be done be3ore we enter the new en9iron'ent and that is *op(ing o9er the DN) in3or'ation in 4et*4reso)2.*onf. >o, need to do this to ens,re that networking sti.. works e9en a3ter entering the new en9iron'ent. 4et*4reso)2.*onf *ontains the na'eser9ers 3or (o,r network.

1 T(pe *- 4et*4reso)2.*onf 4mnt4gentoo4et*4 and press ;nter.

-n a 3ew 'o'ents6 we wi.. *hange the +in,x root towards the new .o*ation. To 'ake s,re that the new en9iron'ent works proper.(6 we need to 'ake *ertain 3i.e s(ste's a9ai.ab.e there as we... "o,nt the 5pro* 3i.es(ste' on 5'nt5gentoo5pro* to a..ow the insta..ation to ,se the kerne.-pro9ided in3or'ation within the *hrooted en9iron'ent6 and then 'o,ntbind the 5de9 3i.es(ste'.

1 T(pe mount -t -ro* none 4mnt4gentoo4-ro* and press ;nter. 1 T(pe mount --r8ind 4de2 4mnt4gentoo4de2 and press ;nter.

!.!.=."

Now that a.. partitions are initia.i8ed and the base en9iron'ent insta..ed6 it is ti'e to enter o,r new insta..ation en9iron'ent b( *hrooting into it. This 'eans that we *hange 3ro' the *,rrent insta..ation en9iron'ent @-nsta..ation CD or other insta..ation 'edi,'A to (o,r insta..ation s(ste' @na'e.( the initia.i8ed partitionsA.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $7 o3 %$

This *hrooting is done in three steps. =irst we wi.. *hange the root 3ro' 5 @on the insta..ation 'edi,'A to 5'nt5gentoo @on (o,r partitionsA ,sing */root. Then we wi.. *reate a new en9iron'ent ,sing en2-u-date6 whi*h essentia..( *reates en9iron'ent 9ariab.es. =ina..(6 we .oad those 9ariab.es into 'e'or( ,sing sour*e.

1 T(pe */root 4mnt4gentoo 48in48as/ and press ;nter. 1 T(pe en2-u-date and press ;nter. @-3 (o, get errors6 *he*k (o,r 'ake.*on3 3i.eA 1 T(pe sour*e 4et*4-rofi)e and press ;nter. 1 T(pe e<-ort 5S1ABC*/rootD E5S1B and press ;nter.

>o, sho,.d now ,pdate (o,r !ortage tree to the .atest 9ersion. emerge --s.n* does this 3or (o,.

=irst6 a s'a.. de3inition is in order. / pro3i.e is a b,i.ding b.o*k 3or an( Gentoo s(ste'. Not on.( does it spe*i3( de3a,.t 9a.,es 3or H);6 C=+/G) and other i'portant 9ariab.es6 it a.so .o*ks the s(ste' to a *ertain range o3 pa*kage 9ersions. This is a.. 'aintained b( the Gentoo de9e.opers.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $? o3 %$

!re9io,s.(6 s,*h a pro3i.e was ,nto,*hed b( the ,sers. Howe9er6 there 'a( be *ertain sit,ations in whi*h (o, 'a( de*ide a pro3i.e *hange is ne*essar(. >o, *an see what pro3i.e (o, are *,rrent.( ,sing with the 3o..owing *o''and0

1 T(pe ese)e*t -rofi)e )ist and press ;nter.

:e want to r,n the )er9er pro3i.e6 so t(pe the 3o..owing to *hange to it0

1 T(pe ese.e*t pro3i.e set 7 and press ;nter. @If t/e Ser2er -rofi)e num8er differs on
.our )ist+ */ange t/e F to t/e *orres-onding num8er.A

!.!.=.#

Next6 we#.. be *on3ig,ring the kerne.. =irst we need to set the g.ib* .o*a.es6 we need to edit the 3i.e 4et*4)o*a)e.gen.

1 T(pe nano 4et*4)o*a)e.gen and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age $C o3 %$

Hn*o''ent the 3irst two in the .ist b( re'o9ing the Q be3ore the' @the ones starting with en_USA0

To sa9e6 press CTR' 7 % then Enter6 and then exit b( pressing CTR' 7 G. >o,#.. be ret,rned to the *o''and pro'pt. Now we need to generate the new .o*a.es.

1 T(pe )o*a)e-gen and press Enter0

Now we need to se.e*t (o,r ti'e8one so that o,r s(ste' knows where it is .o*ated. +ook 3or (o,r ti'e8one in 4usr4s/are46oneinfo6 then *op( it to 4et*4)o*a)time. !.ease a9oid the 4usr4s/are46oneinfo4Et*4GMT? ti'e8ones as their na'es do not indi*ate the expe*ted 8ones. =or instan*e6 G"T-? is in 3a*t G"TR?.

1 T(pe *- 4usr4s/are46oneinfo4&fri*a4Ho/annes8urg 4et*4)o*a)time and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 20 o3 %$

The *ore aro,nd whi*h a.. distrib,tions are b,i.t is the +in,x kerne.. -t is the .a(er between the ,ser progra's and (o,r s(ste' hardware. Gentoo pro9ides its ,sers se9era. possib.e kerne. so,r*es. / 3,.. .isting with des*ription is a9ai.ab.e at the Perne. G,ide. =or /"D6&-based s(ste's we ha9e gentoo-sour*es @kerne. so,r*e pat*hed 3or extra 3eat,resA. -nsta.. (o,r kerne. so,r*e.

1 T(pe emerge -a2 gentoo-sour*es and press ;nter0

Con3ir' that there are no errors when done6 (o, sho,.d see the 3o..owing0

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 2$ o3 %$

Now we need to *on3ig,re 2 -nsta.. the kerne.. =or si'p.i*it(#s sake 7 we wi.. be ,sing genkerne. to do this. -nsta.. genkerne..

1 T(pe emerge -a2 gen0erne) and press

Enter0

Now that Genkerne.#s -nsta..ed6 we *an *o'pi.e the kerne.. :e a.so need to add the bonding 'od,.e to the kerne.6 sin*e we wi.. need it .ater.

1 T(pe gen0erne) --menu*onfig a)) and pressing Enter0

4n the 'en, that *o'es ,p6 na9igate to (e2i*e (ri2er AI Networ0 de2i*e su--ort6 and se.e*t ,onding dri2er su--ort b( high.ighting it and pressing M. Now press ;)C & ti'es to ret,rn to 'ain 'en,. Next we need to enab.e G!T !artition s,pport6 na9igate to =i)e s.stems AI 5artition T.-es and 'ake s,re that E;I GUI( 5artition Su--ort has a ? next to it. /3terwards6 press ;)C 6 ti'es and se.e*t >es to sa9e *hanges.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 22 o3 %$

-3 3inished s,**ess3,..(6 (o, wi.. see the 3o..owing0

4n*e genkerne. *o'p.etes6 a kerne.6 3,.. set o3 'od,.es and initia. ra' disk @initra'3sA wi.. be *reated. :e wi.. ,se the kerne. and initrd when *on3ig,ring a boot .oader .ater in this do*,'ent. :rite down the na'es o3 the kerne. and initrd as (o, wi.. need it when writing the boot.oader *on3ig,ration 3i.e.

1 T(pe

)s 48oot40erne)? 48oot4initramfs? and press ;nter.

!.!.=.$ Configuring t/e ;i)es.stem.


Hnder +in,x6 a.. partitions ,sed b( the s(ste' ',st be .isted in 5et*53stab. This 3i.e *ontains the 'o,nt points o3 those partitions @where the( are seen in the 3i.e s(ste' str,*t,reA6 how the( sho,.d be 'o,nted and with what spe*ia. options @a,to'ati*a..( or not6 whether ,sers *an 'o,nt the' or not6 et*.A

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 23 o3 %$

4et*4fsta8 ,ses a spe*ia. s(ntax. ;9er( .ine *onsists o3 six 3ie.ds6 separated b( whitespa*e @spa*e@sA6 tabs or a 'ixt,reA. ;a*h 3ie.d has its own 'eaning0 The first fie)d shows the partition des*ribed @the path to the de9i*e 3i.eA The se*ond fie)d shows the 'o,nt point at whi*h the partition sho,.d be 'o,nted The t/ird fie)d shows the 3i.es(ste' ,sed b( the partition The fourt/ fie)d shows the 'o,nt options ,sed b( 'o,nt when it wants to 'o,nt the partition. /s e9er( 3i.es(ste' has its own 'o,nt options6 (o, are en*o,raged to read the 'o,nt 'an page @'an 'o,ntA 3or a 3,.. .isting. ",.tip.e 'o,nt options are *o''a-separated. The fift/ fie)d is ,sed b( d,'p to deter'ine i3 the partition needs to be d,'ped or not. >o, *an genera..( .ea9e this as 0 @8eroA. The si<t/ fie)d is ,sed b( 3s*k to deter'ine the order in whi*h 3i.es(ste's sho,.d be *he*ked i3 the s(ste' wasn#t sh,t down proper.(. The root 3i.es(ste' sho,.d ha9e $ whi.e the rest sho,.d ha9e 2 @or 0 i3 a 3i.es(ste' *he*k isn#t ne*essar(A. Im-ortant The de3a,.t 5et*53stab 3i.e pro9ided b( Gentoo is not a 9a.id 3stab 3i.e. >o, ha9e to *reate (o,r own 5et*53stab. 4pen 5et*53stab with nano6 and rep.a*e the *ontents with the 3o..owing0

1 T(pe nano 4et*4fsta8 and press ;nter.


/dev/sda1 /dev/sda2 /dev/sda3 /dev/cdrom proc shm /boot / none ext3 ext4 swap auto proc tmpfs defaults,noatime noatime sw 1 2 0 1 0 0 0 0 0 0 0 0

/mnt/cdrom /proc /dev/shm

noauto,user defaults nodev,nosuid,noexec

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 2& o3 %$

!.!.=.= Networ0ing J Hostname


Next6 we need to set the hostna'e o3 o,r 'a*hine6 to do this we need to edit the 3i.e /etc/conf.d/hostname.

T(pe nano 4et*4*onf.d4/ostname and press ;nter.

Change the na'e inside the S,otes to what (o, want to na'e the 'a*hine. Next we need to *on3ig,re o,r network settings.

1 T(pe nano -w 4et*4*onf.d4net and press ;nter.

To enter (o,r own -! address6 net'ask and gatewa(6 (o, need to set both config_eth0 and routes_eth00

1 T(pe *onfigKet/3ABIP_Address netmas0 Subnet 8rd T(pe routesKet/3ABdefau)t 2ia router_ipB

broadcast

N, Replace the italic alues !ith "our net!or# settings

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 2% o3 %$

To ha9e (o,r network inter3a*e eth0 a*ti9ated at boot6 (o, need to add the' to the de3a,.t r,n.e9e.6 exe*,te the *o''ands be.ow0

1 T(pe *d 4et*4init.d4 and press ;nter. 1 T(pe )n -s net.)o net.et/3 and press ;nter. 1 T(pe r*-u-date add net.et/3 defau)t and press ;nter.

:e wi.. *on3ig,re the other inter3a*es .ater. >o, now need to in3or' +in,x abo,t (o,r network. This is de3ined in /etc/hosts and he.ps in reso.9ing host na'es to -! addresses 3or hosts that aren#t reso.9ed b( (o,r na'eser9er. >o, need to de3ine (o,r s(ste'. >o, 'a( a.so want to de3ine other s(ste's on (o,r network i3 (o, don#t want to set ,p (o,r own interna. DN) s(ste'. 4pen the 3i.e ,sing nano and 3i.. in the appropriate 9a.,es 7

1 T(pe nano 4et*4/osts and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 26 o3 %$

!.!.=.F S.stem Information


Now we need to set the root password 3or o,r new insta..ation.

1 T(pe -asswd and press ;nter. 1 /t the pro'pt6 t(pe (o,r new password6 and press ;NT; 1 Con3ir' (o,r pasword6 and press ;NT; again.

Gentoo ,ses /etc/conf.d/h!cloc# to set *.o*k options. ;dit it a**ording to (o,r needs. -3 (o,r hardware *.o*k is not ,sing HTC6 (o, need to add cloc#$%local% to the 3i.e. 4therwise (o, wi.. noti*e so'e *.o*k skew.

1 T(pe nano 4et*4*onf.d4/w*)o*0 and press ;nter.@&dit it according to


"our needs.A

!.!.=.: Insta))ing Ne*essar. S.stem Too)s.


)o'e too.s are 'issing 3ro' the stage3 ar*hi9e be*a,se se9era. pa*kages pro9ide the sa'e 3,n*tiona.it(. -t is now ,p to (o, to *hoose whi*h ones (o, want to insta... The 3irst too. (o, need to de*ide on has to pro9ide .ogging 3a*i.ities 3or (o,r s(ste'. Hnix and +in,x ha9e an ex*e..ent histor( o3 .ogging *apabi.ities -- i3 (o, want (o, *an .og e9er(thing that happens on (o,r s(ste' in .og3i.es. This happens thro,gh the s(ste' .ogger.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 27 o3 %$

To insta.. the s(ste' .ogger o3 (o,r *hoi*e6 e'erge it and ha9e it added to the de3a,.t r,n.e9e. ,sing r*-,pdate. The 3o..owing exa'p.e insta..s s(s.og-ng. 43 *o,rse s,bstit,te with (o,r s(ste' .ogger0

1 T(pe emerge -2 s.s)og-ng and press ;nter. 1 T(pe r*-u-date add s.s)og-ng defau)t and press ;nter.

Next is the *ron dae'on. /.tho,gh it is optiona. and not reS,ired 3or (o,r s(ste'6 it is wise to insta.. one. B,t what is a *ron dae'onT / *ron dae'on exe*,tes s*hed,.ed *o''ands. -t is 9er( hand( i3 (o, need to exe*,te so'e *o''and reg,.ar.( @3or instan*e dai.(6 week.( or 'onth.(A.

1 T(pe emerge -2 2i<ie-*ron and press ;nter.

-3 (o, want to index (o,r s(ste'#s 3i.es so (o, are ab.e to S,i*k.( .o*ate the' ,sing the )o*ate too.6 (o, need to insta.. s"s'apps/mlocate.

T(pe emerge -2 m)o*ate and press ;nter.

-3 (o, need to a**ess (o,r s(ste' re'ote.( a3ter insta..ation6 don#t 3orget to add sshd to the de3a,.t r,n.e9e.0

1 T(pe r*-u-date add ss/d defau)t and press ;nter.

!.!.=.L Configuring T/e ,oot)oader


Now that (o,r kerne. is *on3ig,red and *o'pi.ed and the ne*essar( s(ste' *on3ig,ration 3i.es are 3i..ed in *orre*t.(6 it is ti'e to insta.. a progra' that wi.. 3ire ,p (o,r kerne. when (o, start the s(ste'. ),*h a progra' is *a..ed a boot.oader.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 2? o3 %$

1 To insta.. G

HB6 t(pe emerge 'a grub0

Next we need to *on3ig,re Gr,b. T(pe nano '! /boot/grub/grub.conf6 and *op( the 3o..owing into it6 s,bstit,ting the bo.d na'es with the ones (o, wrote down when *o'pi.ing (o,r kerne..

1 T(pe

nano -w 48oot4gru84gru8.*onf and press ;nter.

default 0 timeout 30 splashimage=(hd0,0)/boot/grub/splash.xpm.gz title Gentoo Linux 2. .3!"r# root (hd0,0) $ernel /boot/kernel-genkernel-amd 4-2! !34-gentoo-r1 real%root=/de&/sda2 initrd /boot/initramfs-genkernel-amd 4-2! !34-gentoo-r1

To insta.. G HB (o, wi.. need to iss,e the gr,b-insta.. *o''and. Howe9er6 gr,b-insta.. won#t work o33-the-she.3 sin*e we are inside a *hrooted en9iron'ent. :e need to *reate 5et*5'tab whi*h .ists a.. 'o,nted 3i.es(ste's. =ort,nate.(6 there is an eas( wa( to a**o'p.ish this - B,st *op( o9er 5pro*5'o,nts to 5et*5'tab6 ex*.,ding the root3s .ine i3 (o, ha9en#t *reated a separate boot partition. The 3o..owing *o''and wi.. work in both *ases0

1 T(pe gre- -2 rootfs 4-ro*4mounts I 4et*4mta8 and press ;nter.

Now we *an Dinsta..E the boot.oader0

1 T(pe gru8-insta)) --no-f)o--. 4de24sda and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 2C o3 %$

;xit the *hrooted en9iron'ent and ,n'o,nt a.. 'o,nted partitions. Then t(pe in that one 'agi*a. *o''and (o, ha9e been waiting 3or0 reboot.

1 T(pe e<it and press ;nter. 1 T(pe *d and press ;nter. 1 T(pe umount -) 4mnt4gentoo4de2M4s/m+4-ts+N and press ;nter. 1 T(pe umount -) 4mnt4gentooM48oot+4-ro*+N and press ;nter. 1 T(pe re8oot and press ;nter.
Q e<it
' ' ' ' cd umount -l /mnt/gentoo/dev"/shm,/pts,# umount -l /mnt/gentoo"/boot,/proc,# reboot

/nd now (o, *an pat (o,rse.3 on the ba*k6 (o, ha9e B,st insta..ed Gentoo +in,x<

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 30 o3 %$

!.!.=.13

;inis/ing Tou*/es
Now a.. that is .e3t is to *on3ig,re the /-D on the data disks 2 o,r other two network inter3a*es6 na'e.(0 et/1 2 et/!. :e#.. start o33 with the two network inter3a*es6 we *on3ig,re the' in the 3i.e 4et*4*onf.d4net. :e need to *reate the *on3ig,ration settings 3or the inter3a*es6 sa'e as we did 3or eth0. The on.( di33eren*e is the na'e o3 the *on3ig,ration para'eter *hanges s.ight.(. *onfigKet/3 be*o'es *onfigKet/1 3or the eth$ inter3a*e6 and *onfigKet/! 3or the eth2 inter3a*e. /.so the two inter3a*es idea..( sho,.d be on a di33erent s,bnet than (o,r prod,*tion network. )ee exa'p.e be.ow0

B,t we are going to set ,p the re'aining inter3a*es ,sing N-C bonding6 .inking the two network *ards together so the( are seen as $ inter3a*e. This in*reases the bandwidth that wi.. be a9ai.ab.e to o,r i)C)- *.ients. =irst.( we need to te.. Gentoo to .oad the bonding kerne. 'od,.es on start,p6 to do this we need to edit 4et*4*onf.d4modu)es

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 3$ o3 %$

1 T(pe nano 4et*4*onf.d4modu)es and press ;nter. ;dit the 3i.e as be.ow6
rep.a*ing the K"K1K= with (o,r kerne. 9ersion.

Next we need to insta.. 8ase)a.out.

U T(pe emerge -2 8ase)a.out and press ;nter.

Next we need to insta.. ifens)a2e.

1 T(pe emerge -2 ifens)a2e and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 32 o3 %$

Next we need to set ,p the network *on3ig,ration 3or the bond. :e do this in 4net4et*4*onf.d4net.

1 T(pe

nano 4et*4*onf.d4net and press ;nter. ;dit the 3i.e a**ording.(6 3i..ing in the 9a.,es exa*t.( as the( are in the s*reenshot @>o,r own -!5Network in3or'ation ob9io,s.(A.

Next we need to add the bond to the start,p pro*ed,re.

1 T(pe )n -sf 4et*4init.d4net.)o 4et*4init.d4net.8ond3 and press ;nter. 1 T(pe r*-u-date de) net.et/1 and press ;nter. 1 T(pe r*-u-date de) net.et/! and press ;nter. 1 T(pe r*-u-date add net.8ond3 defau)t and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 33 o3 %$

Now reboot the 'a*hine. The bonded inter3a*e sho,.d *o'e ,p and be assigned an -! address6 .ets *he*k that.

1 T(pe if*onfig 8ond3 and press ;nter.

Next .ets see i3 we *an ping an ip address thro,gh the bond. -3 a.. is we.. (o, sho,.d see the o,tp,t in the s*reenshot.

1 T(pe -ing -* # Oi- on .our networ0Csame su8net as 8ondDI and


press ;nter.

Now that o,r N-C bond has been set ,p s,**ess3,..(6 we *an start setting ,p o,r /-D /rra(. >o, *o,.d do this with hardware /-D6 b,t - pre3er ,sing +in,x ): /-D 3or the 3.exibi.it(. ): /-D does add extra o9erhead6 so it is not as 3ast as H: /-D6 b,t seeing as we ha9e a beast o3 a 'a*hine6 this sho,.d not be an iss,e. :e wi.. be ,sing mdadm to set ,p the arra(6 so .et#s insta.. it.

1 T(pe emerge -2 mdadm and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 3& o3 %$

Then we need to .oad the appropriate kerne. 'od,.es. There are a 3ew6 b,t we wi.. be ,sing /-D%.

1 T(pe mod-ro8e raid$ and press ;nter.

Next6 we need to partition o,r disks6 we wi.. set ,p the 3irst disk and then si'p.( *op( the partition tab.e to the other disks. =irst .et#s *he*k what dri9es are a9ai.ab.e to ,s6 we know that 5de95sda is o,r s(ste' disk6 so we wi.. be .ea9ing that one o,t o3 this operation.

1 T(pe fdis0 -) P more and press ;nter. )*ro.. thro,gh the .ist b( pressing
;nter repeated.(6 ,nti. (o, are ret,rned to the *o''and pro'pt.

- a' going to ass,'e that (o, wi.. be ,sing 2TB or .arger disks 3or (o,r data dri9es6 there3ore we wi.. be partitioning the disks ,sing a G!T partition tab.e 9ia -arted.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 3% o3 %$

43 *o,rse6 we wi.. ha9e to insta.. -arted 3irst.

1 T(pe emerge -2 -arted and press ;nter.

4ka(6 now we need to partition o,r 3irst disk6 na'e.( 4de24sd8.

1 T(pe -arted 4de24sd8 and press ;nter.

Next6 .ets *reate o,r G!T partition tab.e.

1 T(pe m0)a8e) g-t and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 36 o3 %$

Next we need to *reate o,r partition6 to si'p.i3( this - wi.. *hange the de3a,.t ,nit si8e parted ,ses to TB@Terrab(teA6 and *reate a 3 TB partition @If "our dis# si(e differs) ad*ust accoringl") "ou+ll notice that m" commands in the
screenshots dont reflect the unit t"pe change or ,.0 -. dis# si(e) I am using a /0 for the purpose of creating this document and therefore opted to use 1000. dis#s.A

1 T(pe unit T, and press ;nter 1 T(pe m0-art -rimar. 3 3 and press ;nter.

Next we need to set the partition t(pe to /-D.

1 T(pe set 1 raid on and press ;nter. 1 T(pe quit and press ;nter.

Now we need to *reate a 3i.es(ste' 3or o,r partition.

1 T(pe m0fs.e<t# 4de24sd81 and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 37 o3 %$

epeat the abo9e steps @starting with *reating the partition tab.eA 3or ea*h o3 (o,r disks6 then *ontin,e with the instr,*tions be.ow. /nd 3ina..(6 we *reate o,r /-D /rra(<

1 T(pe mdadm --*reate 4de24md3 --)e2e)Araid$ --raid-de2i*esA=


4de24sdQ8*defgR1 and press ;nter6 t(pe .es at pro'pt.

Now .ets *he*k the stat,s o3 o,r /-D arra(.

1 T(pe *at 4-ro*4mdstat and press ;nter.

Next we need to add a *on3ig,ration entr( to the 3i.e 4et*4mdadm.*onf

1 T(pe nano 4et*4mdadm.*onf and press ;nter. Then add the 3o..owing
to the botto' o3 the 3i.e0
&RR&> 4de24md3 de2i*esA4de24sd81+4de24sd*1+4de24sdd1+4de24sde1+4de24sdf1+4de24sdg1

Next6 reboot the 'a*hine and 'ake s,re that the /-D /rra( *o'es on.ine and has the de9i*e na'e md3.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 3? o3 %$

Next we need to *reate the partition 3or the /-D arra(.

1 T(pe -arted 4de24md3 m0)a8e) g-t and press ;nter.

1 T(pe -arted 4de24md3 m0-art -rimar. 3S 133S and press ;nter6

Next we need to *reate a 3i.es(ste' 3or the partition. =or the p,rpose o3 this set,p6 whi*h wi.. be hand.ing .arge 3i.es6 we wi.. be ,sing the G=) 3i.es(ste'6 as it is we.. s,ited to hand.e .arge 3i.es. =irst we need to insta.. the ne*essar( too.s 3or the G=) 3i.es(ste'.

1 T(pe emerge -2 <fs-rogs and press ;nter.

:e are going to ,se a s*ript to do this 3or ,s6 as it opti'i8es the 3i.es(ste' 3or /-D. This s*ript reS,ires the bash *a.*,.ator6 so .ets insta.. that.

1 T(pe emerge -2 8* and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age 3C o3 %$

1 T(pe nano <fs*reate.s/6 and *op( the 3o..owing into the 3i.e.
Q<5bin5bash B+4CP)-V;F&0C6 Q "ake s,re this is in b(tes CHHNP)-V;F%$2 Q This is (o,r /-D Ch,nk si8e6 t(pe *at 4-ro*4mdstat to *he*k (o,r raid *h,nk si8e. NH")!-ND+;)F6 Q N,'ber o3 disks in arra( /-DOT>!;F% Q /-D +e9e. @% in o,r *aseA /-DOD;W-C;ON/";FK5de95'd0K Q )pe*i3( de9i*e na'e 3or (o,r /-D de9i*e =)+/B;+FKi)C)-K Q )pe*i3( 3i.es(ste' .abe. 3or generating 'k3s .ine here *ase KL /-DOT>!;K in 0A /-DOD-)P)FLMNH")!-ND+;)NJ JJ $A /-DOD-)P)FLMNH")!-ND+;)NJ JJ $0A /-DOD-)P)FLMNH")!-ND+;)NJ JJ %A /-DOD-)P)FXe*ho KLMNH")!-ND+;)N - $K Y b*XJ JJ 6A /-DOD-)P)FXe*ho KLMNH")!-ND+;)N - 2K Y b*XJ JJ IA e*ho K!.ease spe*i3( /-DOT>!; as one o30 06 $6 $06 %6 or 6.K exit JJ esa* )HN-TFXe*ho KLMCHHNP)-V;N I $02& 5 %$2K Y b*X ):-DTHFXe*ho KL /-DOD-)P) I LM)HN-TNK Y b*X e*ho K)(ste' b.o*ksi8eFLMB+4CP)-V;NK e*ho KCh,nk )i8eFLMCHHNP)-V;N PiBK e*ho KN,')pind.esFLMNH")!-ND+;)NK e*ho K /-D T(peFLM /-DOT>!;NK e*ho K /-D Disks @,sab.e 3or dataAFLM /-DOD-)P)NK e*ho KCa.*,.ated 9a.,es0K e*ho K)tripe HnitFLM)HN-TNK e*ho -e K)tripe :idthFLM):-DTHNZnK e*ho K'k3s .ine0K e*ho -e K'k3s.x3s -b si8eFLMB+4CP)-V;N -d s,nitFLM)HN-TN6swidthFLM):-DTHN -+ LM=)+/B;+N L M /-DOD;W-C;ON/";NZnK e*ho K'o,nt .ine0K e*ho -e K'o,nt -o re'o,nt6s,nitFLM)HN-TN6swidthFLM):-DTHNZnK e*ho K/dd these options to (o,r 5et*53stab to 'ake per'anent0K e*ho Ks,nitFLM)HN-TN6swidthFLM):-DTHNK

Next we need to 'ake the 3i.e exe*,tab.e.

1 T(pe */mod 7< <fs*reate.s/ and press ;nter.


/,thor0 1,rie Botha Gentoo 2 )C)T -nsta..ation "an,a. !age &0 o3 %$

/nd now we exe*,te it6 so it shows ,s whi*h para'eters to ,se when *reating the 3i.es(ste'.

1 T(pe .4<fs*reate.s/ and press ;nter.

Now we *reate the 3i.es(ste'. @Note0 The 9a.,es 3or sunit and swidt/ sho,.d be the ones (o, saw in the s*ript o,tp,tA

1 T(pe m0fs.<fs -8 si6eA#3L= -d sunitA13!#+swidt/A$1!3 -' iSCSI


4de24md3-1 -f and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age &$ o3 %$

Next6 .ets *reate a 'o,ntpoint and 'o,nt o,r 3i.es(ste'.

1 T(pe m0dir 4mnt4is*si and press ;nter. 1 T(pe mount -o sunitA13!#+swidt/A$1!3 4de24md3-1
4mnt4is*si and press ;nter. @2ote3 -he alues for sunit and s!idth should be the ones "ou sa! in the script outputA

Next6 we need to add the partition to 3stab6 so that it is 'o,nted at s(ste' boot.

1 T(pe nano 4et*4fsta8 and press ;nter. /dd the 3o..owing .ine to 3stab6
as seen in the s*reenshot be.ow0 4de24md3-1 4mnt4is*si <fs defau)ts+a))o*si6eA=#m+sunitA13!#+swidt/A$1!3 33

/nd *ongrat,.ations6 (o, ha9e B,st set ,p a +in,x ): /-D % /rra( with a G=) =i.es(ste' 4pti'i8ed 3or o,r /-D 9o.,'e. we *an now *ontin,e on the insta...ation o3 )C)T and its dependen*ies.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age &2 o3 %$

" Insta))ing SCST


Now we *an start with the 3ina. phase o3 this proBe*t 7 -nsta..ing )C)T. =irst.( we need to do so'e preperation6 we need to down.oad the so,r*e 3ro' the )C)T webpage. 4pen (o,r browser6 and na9igate to U http055s*st.so,r*e3orge.net5down.oads.ht'. Down.oad the .atest 9ersion o3 s*st 3ro' here.

C.i*k on the DDown.oad e.eased WersionsE .ink at the botto' o3 the page. 4n the next page6 down.oad the .atest re.eased 9ersions o3 the 3o..owing6 'ake s,re the 9ersion n,'bers *orrespond0 s*st is*si-s*st s*stadmin )a9e the s*st6 is*si-s*st 2 s*stad'in tarba..s to a H)B =.ash disk6 and p,t the 3.ash disk in (o,r )C)T 'a*hine. Next6 we need to 'o,nt the 'e'or( sti*k. /,thor0 1,rie Botha Gentoo 2 )C)T -nsta..ation "an,a. !age &3 o3 %$

+ets *he*k whi*h de9i*e it is.

1 T(pe

fdis0 -) and press ;nter. -t sho,.d be the .ast de9i*e on the .ist.

Now we 'o,nt it<

1 T(pe m0dir 4mnt4us8 and press ;nter. 1 T(pe mount 4de24sd/1 4mnt4us8 and press ;nter.

Next6 .ets *reate a 3o.der to work 3ro' 7 where we *an extra*t the )C)T so,r*e and *o'pi.e it. =or *on9enien*e we wi.. be ,sing root#s ho'e dire*tor(. /.so *op( the so,r*e there.

1 T(pe m0dir 4root4sour*es and press ;nter. 1 T(pe *- 4mnt4us84s*st-?.tar.g6 4root4sour*es4 and press ;nter. 1 T(pe *- 4mnt4us84s*stadmin-?.tar.86! 4root4sour*es4 and press ;nter. 1 T(pe *- 4mnt4us84is*si-s*st-?.tar.86! 4root4sour*es4 and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age && o3 %$

Next6 we need to extra*t the tarba...

1 T(pe *d 4root4sour*es and press ;nter. 1 T(pe tar <9-f s*st-?.tar.86! and press ;nter. 1 T(pe tar <9-f s*stadmin-?.tar.86! and press ;nter. 1 T(pe tar <9-f is*si-s*st-?.tar.86! and press ;nter.

4P6 Now we need to app.( the kerne. pat*hes 3or )C)T. =irst we na9igate to the kerne. so,r*e dire*tor(.

1 T(pe *d 4usr4sr*4)inu<-".1.=-gentoo4 and press ;nter. @rep.a*e the D-3.$.6E with (o,r
kerne. 9ersionA

Now we app.( the pat*hes6 'ake s,re (o, app.( the ones re.e9ant to (o,r kerne. 9ersion6 a.so the path to the pat*hes 'ight di33er in (o,r *ase6 adB,st a**ording.(.

1 T(pe -at*/ --1 O 4root4sour*es4is*si-s*st40erne)4-at*/es4-utK-ageK*a))8a*0".1.-at*/ and press ;nter.

1 T(pe -at*/ --1 O 4root4sour*es4s*st40erne)4s*stKe<e*KreqKfifo-".1.-at*/ and


press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age &% o3 %$

1 T(pe ma0e *)ean and press ;nter.

Now we need to se.e*t the kerne. 'od,.es and re*o'pi.e the kerne..

1 T(pe gen0erne) @menu*onfig a)) and press ;nter.

These are the 'od,.es (o, need to se.e*t5*hange0 )e.e*t Networking s,pport -[ Networking options -[ TC!5-! networking )e.e*t Networking s,pport -[ Networking options -[ TC!5-! 8ero-*op( trans3er *o'p.etion noti3i*ation )e.e*t De9i*e Dri9ers -[ )C)- de9i*e s,pport -[ )C)- disk s,pport )e.e*t ;nab.e the b.o*k .a(er -[ -4 )*hed,.ers -[ C=\ -54 )*hed,.er )et ;nab.e the B.o*k .a(er -[ -4 )*hed,.ers -[ De3a,.t -54 )*hed,.er to #C=\# )et !ro*essor t(pe and 3eat,res -[ !ree'ption "ode. to #No =or*ed !ree'ption @)er9erA#

;xit the 'en, and sa( >;) to sa9e the *hanges. The kerne. wi.. now re*o'pi.e with the options we ha9e added to the kerne..

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age &6 o3 %$

:hen the re*o'pi.ing is done6 reboot the s(ste'.

1 T(pe

re8oot and press ;nter.

Now it is ti'e to insta.. )C)T. 4n*e .ogged in6 na9igate to the s*st so,r*e dire*tor(. Next6 .ets start insta..ing.

1 T(pe ma0e insta)) and press ;nter.

:hen that is done6 na9igate to (o,r is*si-s*st so,r*e dire*tor(6 and then0

1 T(pe ma0e insta)) and press ;nter.

:hen that is done6 na9igate to (o,r s*stadmin so,r*e dire*tor(6 and then0 1 T(pe ma0e insta)) and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age &7 o3 %$

Next we need to set ,p o,r initiator na'e. The 'ost *on9ienient wa( o3 doing this is b( insta..ing open-is*si.

1 T(pe emerge -2 o-en-is*si and press ;nter.

Next6 t(pe the 3o..owing0

1 T(pe 4et*4init.d4is*sid sto- and press ;nter. 1 T(pe M e*/o TInitiatorNameAECif Q -e 4usr4s8in4is*si-iname RU t/en 4usr4s8in4is*siinameU e)se 4s8in4is*si-inameU fiDTU and press ;nter. 1 T(pe e*/o TInitiator&)iasAEC/ostnameDTU N I4et*4is*si4initiatorname.is*si and press ;nter. 1 T(pe 4et*4init.d4is*sid start and press ;nter. Next6 .ets see i3 the na'e has been *orre*t.( generated.

1 T(pe *at 4et*4is*si4initiatorname.is*si and press ;nter.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age &? o3 %$

Now .et#s set ,p a si'p.e sa'p.e *on3ig 3or s*st.*onf. "ake s,re (o,r 3i.e .ooks .ike the one in the s*reenshot.

1 T(pe nano 4et*4s*st.*onf and press ;nter.

Peep in 'ind that 3or ea*h target6 +HN0 ',st exist. Now6 .ets .oad the kerne. 'od,.es.

1 T(pe mod-ro8e s*st and press ;nter. 1 T(pe mod-ro8e s*stK2dis0 and press ;nter. 1 T(pe mod-ro8e is*si-s*st and press ;nter

Now6 .ets start s*st on boot.

1 T(pe r*-u-date add s*st defau)t and press ;nter.

Now .et#s app.( o,r s*st *on3ig,ration. /,thor0 1,rie Botha Gentoo 2 )C)T -nsta..ation "an,a. !age &C o3 %$

1 T(pe s*stadmin -*onfig 4et*4s*st.*onf and press ;nter.

/nd 9io.a< )C)T is now insta..ed 2 ,p and r,nning<< Now (o, B,st need to *reate (o,r +HNs and ,pdate the *on3ig,ration the wa( (o, need it.

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age %0 o3 %$

# Configuring SCST

/,thor0 1,rie Botha

Gentoo 2 )C)T -nsta..ation "an,a.

!age %$ o3 %$

You might also like