Вы находитесь на странице: 1из 10

ZFS ============================================================= Q 1.What is ZFS ? A. ZFS is filesystem cum volume managed developed by sun microsystems ( o! its "racle#.

$t is a 1%&'bit file system. Q %.(o! to create ne! )pool ? A. *he ne! )pool can be create using +)pool create pool,name c-t-d- c-t-d+ Q ..What type of raid levels are supported in ZFS ? A. 1. %. .. 5. 6. 7. Striped /dev0s (1A$23# 4irrored /dev0s (1A$21# Striped 4irrored /dev0s (1A$213# 1A$2Z (1A$26'Single parity# 1A$2Z% (1A$27'2ouble parity# 1A$2Z. (*riple 8arity#

Q 5. $s it possible to reduce the )pool si)e ? A. o .9ou can:t reduce the )pool si)e since all the dis;s !ill in stripped by default. Q 6.(o! to list )pool0s ? A. using +)pool list< command Q 7. What is dataset in ZFS ? A. ZFS dataset is a virtual filesystem li;e volume in /=/4 terminology. Q >.(o! to create a ne! dataset in ZFS ? A. ?sing )fs create pool,name@dataset,name Q &.(o! many A? S or 2$SBS can be added to one Z8""A ? A. 264 A? S or 2$SBS can be added to one )pool theoretically. Q C.(o! many dataset can be created per )pool ? A. 264 dataset can be created in single )pool. Q 13.(o! many )pools can be created in Solaris global )one ? A. 264 )pools ca be created in a system. Q 11.(o! to list the )fs snapshots ? A. ?se +)fs list Dgrep E < to get the list of snapshots.

Q 1%. $s it possible to use fsc; in ZFS ? A. o.9ou can0t use fsc; in ZFS.9ou can chec; the )pool integrity using +)pool scrub pool,name< Q 1..$s possible to e-tend )fs dataset in online ? A. 9es. you can increase the ZFS dataset si)e in online !ithout un'mounting it . Q 15.$s possible to e-tend )pool on fly ? A. 9es. 9ou can e-tend the )pool in online by Fust adding ne! dis;s using +)pool add pool,name c-t-d- < command . Q 16.What is minimum physical memory if you are using ZFS ? A. ormally !e recommend to use 5GH physical memory . Q 17.Hest practice of ZFS 4irrored 1oot 8ool 2is; 1eplacement. A. 9ou can perform the live dis; replacement if the server supports hotplug and rpool is mirrored. StepI1 "ffline the dis; in )pool J )pool offline rpool c-t-dStepI% ?nconfigure the dis; from "S level J cfgadm 'c unconfigure c1IIds;@c-t-dStepI. 8hysical replace the dis; StepI5 1econfigure the dis; in "S level J cfgadm 'c configure c1IIds;@c-t-dStepI6 Konfirm that the replacement dis; has an S4$ label and a slice 3 to match the e-isting root pool configuration StepI7 4a;ing ZFS a!are by using belo! command. J )pool replace rpool c-t-d-s3 StepI7 Hring the dis; in to )fs online. J )pool online rpool c-t-d-s3 StepI> $nstall the bootbloc;.

J installboot 'F )fs @usr@platform@Luname 'iL@lib@fs@)fs@bootbl; @dev@rds;@c-t-d-s3 Q 1>. (o! to destroy )fs dataset ? A. ?sing +)fs destroy pool,name@dataset,name< Q 1&.(o! to set ne! mountpoint to )fs dataset ? A. ?sing +)fs set mountpointM@ne!,mount,point pool,name@dataset,name Q.1>.(o! to rename ZFS dataset ? A. We can use +)fs rename pool,name@dataset,name,old pool,name@dataset,name,ne!< Q 1&.$s it possible to recover destroyed )pool ? A. 9es.We can recover destroyed )pool. Q 1C.(o! to assign )pool@)fs dataset to local )ones ? A. We can assign )pool@)fs to local )one. Q %3.(o! to increase rpool si)e ? A. We can increase the rpool si)e by using ne! big dis;s. Q %1.$s it possible to convert root filesystem from ?FS to ZFS ? A. 9es. !e can convert root filesystem from ?FS to ZFS using liveupgrade . Q %%.(o! to create ZFS dataset li;e v-vm@ufs volume ? A. Hy setting Nuota and reservation for dataset O!e can get volumes li;e v-vm. Q %..Will snapshot consume any dis; space !hen you create it ? A. o.$t !ill not consume any space !hen you create snapshot.*he snapshot si)e !ill gro! according to data changes in the volume. Q %5. What is emulated volume in ZFS ? A. $t is a ZFS volume !ithout ZFS filesystem on it.9ou can create ?FS@/=FS on this. Q %6.(o! to do the dry run on )pool? A. 9ou can use +'n< option to run dry run !ithout performing any action.For an e-ample if you !ant to ;no! ho! the obFects !ill be build using command !ithout create the )poolOuse 'n option.
# zpool create -n arenpool raidz cxtxdx cxtxdx cxtxdx would create 'arenapool' with the following layout: arenapool raidz1 cxtxdx cxtxdx cxtxdx

Q %7. $s it possible to use ZFS as s!ap in solaris ?

A. 9es.We can use ZFS emulated volume as s!ap. Q %>.(o! to rename the )pool ? A. We can rename the )pool using belo! method. StepI1 P-port the )pool J )pool e-port pool,name StepI% $mport the )pool name using ne! name. J )pool import pool,name ne!,poolname Q .3. $s it possible to create )pool using files ? A. 9es. !e can create a )pool using files !hich are created by using m;file command. P-I J m;file 75m @test J )pool create aren)pool @test Q .1.2o !e need to update @etc@vfstab for ZFS datasets ? A. Hy defaultO!e no need to update vfstab for )fs dataset. $f you set )fs mountpoint as legacyOthen you have to update it . Q 32.Do we need to maintain any configuration files for zpool ? A. No.We no need to maintain any configuration files.By default all device ased zpool will e imported and mounted according to t!e mountpoint value. Q ... (o! to perform the )pool scrub to chec; )pool integrity ? A. use command +)pool scurb pool,name< Q .5.2o !e have to run m;fs command to create a ZFS on )fs datasets ? A. o.We no need to create ZFS filesystem using m;fs.ZFS !ill automatically create filesystem and mountpoint !hen you create dataset. $t !ill be automatically mount !ith dataset name if you didn0t mentioned the mountpoint there. """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" """"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" Zone Q 1.What are virtuali)ation technologies are supported by oracle ? A. 8lease go through the oracle virtuali)ation technologies to understand various oracle virtuali)ation products.

Q %. What is difference bet!een global )one and non'global )one ? A. Hase Solaris operating system is called global )one.(2irectly installed on physical hard!are#.Solaris operating system !hich are hosted by global )one is called on'global )ones or local )one. Q .. (o! to find the global )one name from on'global )ones ? A. *here is no !ay to find the global )one name from on'global )one."racle made this one intentionally for security reasons. (o!ever you can fe! tric;s to find the global )one name.here. Q 5.What type of on'global )ones in Solaris 13 ? A. *here are three type of non'global )ones in Solaris 13. 1. Whole root )one. %. Sparse root )one. .. Hranded )one. Q 6.What is the difference bet!een !hole root )one and sparse root )one ? A. Whole root )ones have all their binaries of their o!n )one root filesystemO!hile sparse root )ones mount @usrO@libO@platformO@sbin from the global )one. Q 7.(o! to identify !hich is !hole root )one and sparse root )one ? A. ?sing )onecfg ') )one,name you can determine !hether its a !hole root )one or sparse root )one. $f its sparse root )oneOyou can see inherit pac;ages of @usrO@sbin@O@platformO@lib !here as in !hole root )oneOyou !on:t see these.
# zonecfg -z zarena info zonename: zarena zonepath: /zoravol1 brand: native autoboot: false bootargs: pool: limitpriv: scheduling-class: ip-type: shared hostid: inherit-pkg-dir: dir: /lib inherit-pkg-dir: dir: /platform inherit-pkg-dir: dir: /sbin inherit-pkg-dir: dir: /usr

Q >. (o! do you login to )one0s "S console ? A. From global )oneOuse +)login 'K )one,name< Q &.$s it possible to assign ZFS@Z8""A to local )one ? A. 9es.$ts possible to assign Z8""A@ZFS to local )one. Q C.$s it possible to assign /=FS filesystem to local )one ? A. 9es.We can mount /=FS filesystem on non'global )one Q 13.$s it possible to put resource control on Solaris on'global )one ? !hat are the resources can be control ? A. 9es.We can restrict memoryOs!apOcpu for local )one. Q 11.$s it possible to modify the resource value dynamically ? $f yes (o! to perform the dynamic resource control in )ones? A. We can modify the resource values dynamically using rcapadm and pooladm. Step by step guide can be found here. Q 1%.(o! to 8erform resource capping ? A. 1esource capping can be done using )onecfg. Q 1..(o! to patch the Solaris global )one !ith v-fs root local )ones ? A. 9ou can loo; at this article. Q 15.$s it possible to add )one as resource in /KS ? A. 9es. 9ou can add )one as resource in /KS. Q 16.(o! to boot local )one in single user mode ? A. using +)oneadm ') boot 's< command you can boot )one in single user mode. Q 17.(o! to prevent non'global )one coredumps from global )one? A. Hy modifying coreadm parameterOyou can stop the on'global )one coredumps in global )one. Q 1>. $s it possible to add ne! $8 address on on'global )one on fly ? $f yes ho! to do that? A. 9es.!e can plumb ne! $8 on )ones using ifconfig command. (ere is the step by step guide. Q 1&.(o! to get )one !ise process list using prstat command ? A. ?se prstat 'Z to get )one !ise statistics. Q 1C.What is Hranded )one ? A. Hranded )one is used to install older version of Solaris or Ainu- in Solaris 13 global )one.

Hrand Qsolaris&R provides a Solaris & environment on a Solaris 13 system. Hrand QsolarisCR provides a Solaris C environment on a Solaris 13 system. Ql-0 provides a 1ed (at Pnterprise Ainu- . environment on a Solaris 13 system Qs13brand0 provides a Solaris 13 environment on an "penSolaris or "racle Solaris 11 system

Q %3.(o! to boot local )one ? A. ?sing +)oneadm ') )one,name boot< from global )oneO!e can boot non' global )one. Q %1.(o! to halt the local )one ? A. ?sing +)oneadm ') )one,name halt< from global )oneO!e can halt the local )one. Q %%.What are the different type of states in non'global )one ? A. ta le.ta leizer#ta le $ order% &p' solid ()))* font#family% * font#size% &2p'* + .ta leizer# ta le td $ padding% ,p'* margin% 3p'* order% &p' solid (ccc* + .ta leizer#ta le t! $ ac-ground#color% (&.,/0B* color% (111* font#weig!t% old* + State Description )onfigured )onfiguration was completed and committed 2ncomplete 3ransition state during install or uninstall operation 2nstalled 3!e pac-ages !ave een successfully installed 4eady 3!e virtual platform !as een esta lis!ed 4unning 3!e zone ooted successfully and is now running 5!utting down 3!e zone is in t!e process of s!utting down63emporary state7 3!e zone !as completed t!e s!ut down process and is down 6temporary Down state7

Q %..Where the )one0s configuration file resides ? A. Zone configuration can be found in @etc@)ones@)one,name.-ml. Q %5.Which configuration file !ill be having )one0s current state ? A. All )one:s state !ill be !ritten in global )one0s @etc@)ones@inde-.-ml . Q %6. Which )one !ill be having space optimi)ed root filesystem ? A. Sparse root )one. 4ost of the binaries !ill be mounted in sparse root using lofs. Q %7.(o! many Solaris )ones can be create in on global )one?

A. 4a-imum of &1C1 local )ones can be created !ithin a single operating system instance. MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM Solaris OBP (Open Boot Prompt) ok boot -a 6interactive oot8 used to supply alternate oot files li-e 9etc9system if default one is corrupted7 #2 ok banner 5un :ltra ;9&. :<A9<)2 6:ltra5<A4)#22i 333=>z78 No ?ey oard @penBoot 3.&;8 &20 =B memory installed8 5erial (number. /t!ernet address number8 >ost 2D% number. Aou can find @B< version8 5erver model8 5erial num er8 >ost 2D and /t!er net mac address from Banner command Note% =ac address displayed is <ort . 6zero7 of on oard networ- card. 1or /'ample 2 !ave Buad port on oard N2) card and two Quad <ort <)2#e )ards. @ut of total &2 mac address8 one displayed !ere is from on oard zero port. 3!is clarity will !elp w!e you are trou les!ooting Co- oot net D installE trou le s!oot errors. ok setenv local-mac-address? true W!en you configure 2<=< you !ave to set local#mac#address? to 3rue8 t!en only eac! N2) card use itFs =ac address w!ic! is very important for 2<=<. Veri ! net"ork inter ace connectivit! and c#eck $%& address o t#e '(& ports $2+ o- watc!#net#all 9pciG&f8H.....9networ-G& 9pciG&f8H.....9networ-G&% lin- down 9pciG&d8H.....9pciG29pciG,9networ-G2 9pciG&d8H.....9pciG29pciG,9networ-G2% &.. = ps !alf duple' lin- up Watc! et!ernet pac-ets I.F is a good pac-et and IJF is a ad pac-et <ress any -ey to stop

using networ- device alias o-K cd 9net& o-K .properties :sing Networ- device p!ysical pat! or cd 9pciG&d8H.....9pciG29pciG,9networ-G2 o-K .properties

&annot open )etc)pat#*to*inst 5ystem can not find t!e 9etc9pat!LtoLinstall file .2t mig!t e missing or corrupted and needs to e re uild. 3o re uild t!is file oot t!e system wit! #ar option % o-K oot #ar <ress enter to select default values for t!e Buestions as-ed during ooting and select yes to re uild 9etc9pat!LtoLinstall 3!e 9etc9pat!LtoLinst on your system does not e'ist or is empty. Do you want to re uild t!is file MnN? y system will continue ooting after re uilding t!e file. bootblk+ can,t ind t#e boot pro-ram oot loc- can not find t!e oot programe D ufs oot in 5olaris ./it!er ufs oot is missing or corrupted . 2n suc! cases it can e restored from t!e cdrom after ooting from cdrom O mounting t!e !ard dis( cp 9platform9Puname #iP9ufs oot 9mnt9platform9Puname #iP boot+ cannot open kernel)uni. ?ernel directory or uni' -ernel file in t!is directory is not found .<ro a ly deleted during fsc- or deleted y mista-e. )opy it from t!e cdrom or restore from t!e ac-up tape. ( cp 9platform9Puname #iP9-ernel9uni' 9mnt9platform9Puname #iP9-ernel /#e ile 0ust loaded does not appear to be e.ecutable Boot loc- on t!e !ard dis- is corrupted .Boot t!e system in single user mode wit! cdrom and reinstall oot loc- . (install oot 9usr9platform9Puname #iP9li 9fs9ufs9 oot l- 9dev9rds-9c.t3d.s.

(3ype of 2<=< Qin- Based

<ro e Based 1ink Based (P$P + # 3!e mpat!d daemon uses t!e interface -ernel driver to c!ec- t!e status of t!e interface. # in.mpat!d daemon o serves t!e c!anges to 211L4:NN2NR flag on t!e interface to determine failure. # No test addresses reBuired for failure detection. # /na led y default 6if supported y t!e interface7. # @ne of t!e advantage of lin- ased 2<=< is it does not depend on e'ternal sources to send 2)=< reply to ensure t!e lin- status and it also saves 2< addresses as it is not reBuire any test addresses for failure detection # Probe Based (P$P+ in.mpat!d daemon sends out 2)=< pro e messages on test address to one or more target systems on t!e same su net. # in.mpat!d daemon determines t!e availa le target systems to pro e d!namicall!. 2t uses a Call !ostsE multicast 622,.....&7 address to determine t!e target systems to pro e. e.amples o tar-et s!stems + 23 all de ault routes on same subnet3 23 all #ost routes on same subnet3 (con i-ured "it# 4route -p add5 command) # All test addresses s!ould e in t!e same su net.

Вам также может понравиться