Bo's Oracle Station

查看: 2475|回复: 0

课程第25/26次(2017-08-29星期二和2017-08-31星期四)

[复制链接]

1005

主题

1469

帖子

1万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
12012
发表于 2017-8-29 19:45:12 | 显示全部楼层 |阅读模式
模拟IBM ULT3580带库:
  1. yum -y install zlib-devel
  2. yum -y install mtx
  3. yum -y install mt-st
  4. yum -y install lsscsi
  5. yum -y install sg3_utils
  6. yum -y install ncompress

  7. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/mhvtl.tgz
  8. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb-10.3.0.3.0_linux32.zip
  9. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.txt
  10. wget -P /lib -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/ld-2.5.so
  11. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/osb.sh
  12. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/reuseosb.sh
  13. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-2.02-2.el5.1.i386.rpm
  14. rpm -ivh /stage/lzo-2.02-2.el5.1.i386.rpm
  15. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/lzo-devel-2.02-2.el5.1.i386.rpm
  16. rpm -ivh /stage/lzo-devel-2.02-2.el5.1.i386.rpm
  17. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/copytape-root.sh
  18. wget -P /stage -c --tries=100 --wait=5 http://192.168.0.254/pub/O10g/TAPE/revertape-root.sh
  19. cd /stage
  20. tar zxvf mhvtl.tgz
  21. rm -f /stage/mhvtl.tgz
  22. cd /stage
  23. unzip osb-10.3.0.3.0_linux32.zip
  24. rm -f /stage/osb-10.3.0.3.0_linux32.zip
  25. cd /stage/mhvtl-1.2
  26. useradd vtl
  27. echo oracle | passwd --stdin vtl
  28. mkdir /opt/mhvtl
  29. mkdir /etc/mhvtl
  30. chown -R vtl:vtl /opt/mhvtl
  31. chown -R vtl:vtl /etc/mhvtl
  32. make distclean
  33. cd /stage/mhvtl-1.2/kernel
  34. make
  35. make install
  36. cd /stage/mhvtl-1.2/
  37. make
  38. make install
  39. service mhvtl start
  40. perl -i -pe 's,CAPACITY=500,CAPACITY=8000,' /etc/mhvtl/mhvtl.conf
  41. chkconfig mhvtl on
  42. service mhvtl stop
  43. service mhvtl start
  44. mkdir -p /usr/local/oracle/backup
  45. sed -i.bak 's/192.168.0.254/127.0.0.1/g' /etc/resolv.conf
复制代码
  1. [root@station81 mhvtl]# lsscsi -g
  2. [0:0:0:0]    disk    VMware,  VMware Virtual S 1.0   /dev/sda  /dev/sg0
  3. [2:0:0:0]    cd/dvd  NECVMWar VMware SATA CD01 1.00  /dev/sr0  /dev/sg1
  4. [31:0:0:0]   mediumx STK      L700             0102  -         /dev/sg10
  5. [31:0:1:0]   tape    IBM      ULT3580-TD5      0102  /dev/st0  /dev/sg2
  6. [31:0:2:0]   tape    IBM      ULT3580-TD5      0102  /dev/st1  /dev/sg3
  7. [31:0:3:0]   tape    IBM      ULT3580-TD4      0102  /dev/st2  /dev/sg4
  8. [31:0:4:0]   tape    IBM      ULT3580-TD4      0102  /dev/st3  /dev/sg5
  9. [31:0:8:0]   mediumx STK      L80              0102  -         /dev/sg11
  10. [31:0:9:0]   tape    STK      T10000B          0102  /dev/st4  /dev/sg6
  11. [31:0:10:0]  tape    STK      T10000B          0102  /dev/st5  /dev/sg7
  12. [31:0:11:0]  tape    STK      T10000B          0102  /dev/st6  /dev/sg8
  13. [31:0:12:0]  tape    STK      T10000B          0102  /dev/st7  /dev/sg9
  14. [root@station81 mhvtl]# mtx -h
  15. Usage:
  16.   mtx --version
  17.   mtx [ -f <loader-dev> ] noattach <more commands>
  18.   mtx [ -f <loader-dev> ] inquiry | inventory
  19.   mtx [ -f <loader-dev> ] [nobarcode] status
  20.   mtx [ -f <loader-dev> ] first [<drive#>]
  21.   mtx [ -f <loader-dev> ] last [<drive#>]
  22.   mtx [ -f <loader-dev> ] next [<drive#>]
  23.   mtx [ -f <loader-dev> ] previous [<drive#>]
  24.   mtx [ -f <loader-dev> ] [invert] load <storage-element-number> [<drive#>]
  25.   mtx [ -f <loader-dev> ] [invert] unload [<storage-element-number>][<drive#>]
  26.   mtx [ -f <loader-dev> ] [eepos eepos-number] transfer <storage-element-number> <storage-element-number>
  27.   mtx [ -f <device> ] eject
  28. [root@station81 mhvtl]# mtx -f /dev/sg10 load 1 0
  29. [root@station81 mhvtl]# mt -f /dev/nst0 tel
  30. At block 0.
  31. [root@station81 mhvtl]# cd /usr/share/
  32. [root@station81 share]# ls
  33. a2ps                        gimp-print                   nautilus-cd-burner
  34. aclocal                     glib-2.0                     NetworkManager
  35. aclocal-1.4                 gnome                        nm-applet
  36. aclocal-1.5                 gnome-2.0                    ogonkify
  37. aclocal-1.6                 gnome-about                  omf
  38. aclocal-1.7                 gnome-applets                openldap
  39. aclocal-1.9                 gnome-background-properties  oprofile
  40. alacarte                    gnome-default-applications   orca
  41. alsa                        gnome-dictionary             pam_pkcs11
  42. anaconda                    gnome-doc-utils              pirut
  43. application-registry        gnome-mag                    pixmaps
  44. applications                gnome-media                  pkgconfig
  45. apps                        gnome-menus                  poppler
  46. authconfig                  gnome-mount                  pygtk
  47. autoconf                    gnome-netstatus              python-dmidecode
  48. automake-1.4                gnome-panelrc                rhgb
  49. automake-1.5                gnome-power-manager          rhn
  50. automake-1.6                gnome-screensaver            samba
  51. automake-1.7                gnome-screenshot             scim
  52. automake-1.9                gnome-system-log             scrollkeeper
  53. avahi                       gnome-terminal               selinux
  54. awk                         gnome-utils                  setools
  55. backgrounds                 gnome-volume-manager         sgml
  56. baobab                      gnome-vpn-properties         sounds
  57. bison                       gnupg                        splint
  58. cdrdao                      gok                          ss
  59. chewing                     groff                        stardict
  60. conman                      grub                         swig
  61. control-center-2.0          gstreamer-properties         sysreport
  62. cracklib                    gthumb                       system-config-date
  63. cscope                      gtk-2.0                      system-config-display
  64. cups                        gtk-doc                      system-config-keyboard
  65. cvs                         gtkhtml-3.14                 system-config-language
  66. dbus-1                      gtksourceview-1.0            system-config-network
  67. desktop-directories         hal                          system-config-printer
  68. desktop-menu-patches        hplip                        system-config-securitylevel
  69. devhelp                     hwdata                       system-config-selinux
  70. dict                        i18n                         system-config-services
  71. doc                         icons                        system-config-soundcard
  72. dogtail                     idl                          system-config-users
  73. eggcups                     info                         systemtap
  74. emacs                       kde4                         tabset
  75. empty                       krb5-auth-dialog             tcl8.4
  76. enscript                    lftp                         terminfo
  77. eog                         libgnomeprint                texinfo
  78. et                          libgnomeprintui              themes
  79. eula                        libgphoto2                   tk8.4
  80. evince                      libtool                      usermode
  81. evolution-data-server-1.12  libwmf                       vim
  82. festival                    libxklavier                  vnc
  83. file                        linuxwacom                   vte
  84. file-roller                 locale                       X11
  85. firstboot                   logwatch                     xemacs
  86. fonts                       m17n                         xmag.png
  87. foomatic                    magic                        xml
  88. games                       magic.mime                   xml2po
  89. GConf                       man                          xmms
  90. gdb                         metacity                     xmodmap
  91. gdict-1.0                   mime                         xorg
  92. gdm                         mime-info                    xsessions
  93. gedit-2                     misc                         yelp
  94. gettext                     mozilla                      yum-cli
  95. ghostscript                 nano                         zenity
  96. gimp                        nautilus                     zoneinfo
  97. [root@station81 share]# cd backgrounds/
  98. [root@station81 backgrounds]# ls
  99. images  nature  tiles  translucent
  100. [root@station81 backgrounds]# pwd
  101. /usr/share/backgrounds
  102. [root@station81 backgrounds]# ls
  103. images  nature  tiles  translucent
  104. [root@station81 backgrounds]# tar zcvf /dev/nst0 images
  105. images/
  106. images/Green-Dual.jpg
  107. images/Orange.jpg
  108. images/ladybugs.jpg
  109. images/earth_from_space.jpg
  110. images/Blue-5_4.jpg
  111. images/Green.jpg
  112. images/Blue-Wide.jpg
  113. images/Purple-Dual.jpg
  114. images/Orange-Dual.jpg
  115. images/Orange-Wide.jpg
  116. images/Blue.jpg
  117. images/tiny_blast_of_red.jpg
  118. images/default-dual-wide.jpg
  119. images/Blue-Dual.jpg
  120. images/branded/
  121. images/branded/GNOME-Curves.png
  122. images/default-wide.jpg
  123. images/Purple-Wide.jpg
  124. images/Green-Dual-Wide.jpg
  125. images/Purple-5_4.jpg
  126. images/Green-Wide.jpg
  127. images/default.jpg
  128. images/Purple.jpg
  129. images/stone_bird.jpg
  130. images/default-5_4.jpg
  131. images/Purple-Dual-Wide.jpg
  132. images/default-dual.jpg
  133. images/Orange-5_4.jpg
  134. images/Orange-Dual-Wide.jpg
  135. images/Green-5_4.jpg
  136. images/Blue-Dual-Wide.jpg
  137. images/flowers_and_leaves.jpg
  138. [root@station81 backgrounds]#
复制代码


Screenshot.png

bclresult-9a.zip (42.27 KB, 下载次数: 674)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|手机版|Bo's Oracle Station   

GMT+8, 2024-4-28 12:13 , Processed in 0.040997 second(s), 27 queries .

快速回复 返回顶部 返回列表