Posts

Showing posts with the label Labs

[Level 3] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Advanced ZFS hands-on lab

The following is my lab file, please refer to it.  Wish this helps. regards, Stanley Huang **************************************************************************************************** The purpose of this lab is to let you have advanced ZFS filesystem administration skill. And then you will have the following capabilities. Lab 1: * replace zpool disk. Lab 2: * take ZFS filesystem snapshot, rollback ZFS filesystem. * clone ZFS filesystem. Lab 3: * use ZFS L2ARC * use ZFS ZIL Lab 1: 1. replace zpool disk. # cd /labs/ZFS/files; # zpool create mypool mirror `pwd`/f1 `pwd`/f2 spare `pwd`/f3; # zpool replace mypool `pwd`/f2 `pwd`/f3; # zpool status mypool; -------------------------------------------------------------------------------   pool: mypool  state: ONLINE  scrub: resilver completed after 0h0m with 0 errors on Sun Oct 18 11:13:15 2009 config:     NAME          ...

[Level 2] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Basic ZFS hands-on lab

The following is my lab file, please refer to it.  Wish this helps. regards, Stanley Huang **************************************************************************************************** The purpose of this lab is to let you have basic ZFS administration skill. And then you will have the following capabilities. Lab 1: * create ZFS pool. * check ZFS pool status. * set ZFS pool properties. * destroy ZFS pool. Lab 2: * create ZFS filesystem. * check ZFS filesystem status. * set ZFS filesystem properties. * destroy ZFS filesystem. Lab 1: 1. prepare files with command mkfile. # mkdir -p /labs/ZFS/files; # cd /labs/ZFS/files; # mkfile 128m f1 f2 f3 f4 f5 f6 f7 f8 f9; 2. create ZFS pool. # zpool create mypool mirror `pwd`/f1 `pwd`/f2 spare `pwd`/f3; # zpool create myraidz raidz `pwd`/f4 `pwd`/f5 `pwd`/f6 spare `pwd`/f7; 3. list ZFS pools, and check pool status. # zpool list; --------------------------------------------------- # zpool list mypool...

[Level 2] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Basic DTrace hands-on lab

The following is my lab file, please refer to it.  Wish this helps. regards, Stanley Huang **************************************************************************************************** The purpose of this lab is to let you have basic DTrace skill. And then you will have the following capabilities. Lab 1: * know dtrace probes. * use dtrace tool kits to monitor your system. * download dtrace tool kits. * write your first D-script. 1. list dtrace probes. # dtrace -l; 2. list demo dtrace tools # cd /usr/demo/dtrace; # ls -l *.d; ------------------------------------------------------------------ -rw-r--r--   1 root     bin         1677  5月 14 23:52 applicat.d -rw-r--r--   1 root     bin         1699  5月 14 23:52 badopen.d -rw-r--r--   1 root     bin     ...

[Level 2] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Basic SMF hands-on lab

The following is my lab file, please refer to it. Wish this helps. regards, Stanley Huang **************************************************************************************************** The purpose of this lab is to let you have basic SMF administration skill. And then you will have the following capabilities. Lab 1: * list service. * check service dependenty. * manage service. Lab 1: 1. list services # svcs -a; ## list all service included 'disabled services' ---------------------------- STATE          STIME    FMRI ... ---------------------------- # svcs */milestone/*; ---------------------------------------------------------------------------- STATE          STIME    FMRI online          8:40:05 svc:/milestone/network:default online          8:40:...

[Level 3] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Advanced SMF hands-on lab

The following is my lab file, please refer to it.  Wish this helps. regards, Stanley Huang **************************************************************************************************** The purpose of this lab is to let you have advanced SMF administration skill. And then you will have the following capabilities. Ref:   1. smfmanifest_howto.pdf   2. http://www.sun.com/software/solaris/howtoguides/servicemgmthowto.jsp Lab 1: * create new SMF service. Lab 1: 1. copy smfSample.xml to /temp/. # mkdir /temp; # cp ./smfSample.xml /temp/myService.xml; 2. modify xml file. # cd /temp; # vi /temp/myService.xml; [ find all "REPLACE_ME" to replace ] 3. create myService method. # vi /temp/myService; [ service method just like init method, ex. /etc/init.d/apache ] 4. create myService.main. # vi /temp/myService.main; [ the service main program ] 5. import service configuration. # svccfg import /temp/myService.xml; 6. check service status. # sv...

[Level 3] Solaris 10 Technical Conference ( 2009/10/25,11/13,12/4 ) -- Advanced DTrace hands-on lab

The following is my lab file, please refer to it.  Wish this helps. regards, Stanley Huang   **************************************************************************************************** The purpose of this lab is to let you have advanced DTrace skill. And then you will have the following capabilities. Lab 1: * well known about D-script. Lab 2: * use DTrace to debug your own program. Lab 1: 1. D-script arguments. # cd /temp; # cat ./testArgs.d; ------------------------------------ #!/usr/sbin/dtrace -qs /*  * $ is for digital argument,  * $$ is for quated string argument.  */ BEGIN {   printf("args1=%d\n",$1);   printf("args2=%s\n",$$2); } ------------------------------------ # chmod u+x ./testArgs.d; # ./testArgs.d 1 "a"; ------- args1=1 args2=a ------- ^C 2. D-script control # cd /temp; # cat ./0-60.d; ---------------------------------------------------------------------- #!/usr/sbin/dtrace -qs dt...