アップデート自体は、"yum -y update"を実行するのみです(以下は少し端折っています)。
[root@localhost ~]# yum -y update Setting up Update Process Setting up repositories update 100% |=========================| 951 B 00:00 base 100% |=========================| 1.1 kB 00:00 addons 100% |=========================| 951 B 00:00 extras 100% |=========================| 951 B 00:00 Reading repository metadata in from local files primary.xml.gz 100% |=========================| 93 kB 00:00 update : ################################################## 256/256 primary.xml.gz 100% |=========================| 543 kB 00:35 base : ################################################## 1437/1437 primary.xml.gz 100% |=========================| 194 B 00:00 primary.xml.gz 100% |=========================| 1.8 kB 00:00 extras : ################################################## 4/4 Resolving Dependencies --> Populating transaction set with selected packages. Please wait. ---> Downloading header for util-linux to pack into transaction set. ... ... ---> Downloading header for bash to pack into transaction set. bash-3.0-19.7.c4.1.s390.r 100% |=========================| 48 kB 00:00 ---> Package bash.s390 0:3.0-19.7.c4.1 set to be updated --> Running transaction check Dependencies Resolved ============================================================================= Package Arch Version Repository Size ============================================================================= Installing: kernel s390 2.6.9-78.0.8.EL update 17 M sos noarch 1.7-6.6.c4 base 102 k replacing sysreport.noarch 1.3.15-8 Updating: Canna s390 3.7p3-9.c4 update 7.2 M Canna-libs s390 3.7p3-9.c4 update 449 k ... vsftpd s390 2.0.1-7.c4 update 142 k Transaction Summary ============================================================================= Install 2 Package(s) Update 54 Package(s) Remove 0 Package(s) Total download size: 85 M Downloading Packages: (1/56): util-linux-2.12a- 100% |=========================| 1.5 MB 00:03 ... (56/56): bash-3.0-19.7.c4 100% |=========================| 1.8 MB 00:10 warning: rpmts_HdrFromFdno: V3 DSA signature: NOKEY, key ID 443e1821 Public key for util-linux-2.12a-24.c4.s390.rpm is not installed Retrieving GPG key from http://mirror.centos.org/centos/RPM-GPG-KEY-centos4 Importing GPG key 0x443E1821 "CentOS-4 keyアップデートが完了したら、再起動します。" Key imported successfully Running Transaction Test Finished Transaction Test Transaction Test Succeeded Running Transaction Updating : setup ##################### [ 1/111] ... ... Complete!
# shutdown -h nowHerculesのコンソールで、HHCCP010Iメッセージが出たら、再度IPLします。
... Shutting down interface ctc0: OK ! Shutting down loopback interface: OK ! Starting killall: OK ! Sending all processes the TERM signal... Sending all processes the KILL signal... Saving random seed: Turning off swap: Turning off quotas: Unmounting pipe file systems: Unmounting file systems: Halting system... md: stopping all md devices. md: md0 switched to read-only mode. HHCCP042I SYSCONS interface inactive Power down. CPU0000: SIGP Stop and store status (09) CPU0000, PARM 00000000: CC 0 HHCCP010I CPU0000 store status completed. Command ==> IPL 120CentOS for s390が起動したらrootユーザーで再度loginします。
# ssh 192.168.200.1 [root@ap01 ~]# ssh 192.168.200.1 root@192.168.200.1's password: Last login: Sat Jan 16 12:38:27 2010 from 192.168.200.2今後の作業のために一般ユーザーを追加し、一旦ログアウトします。
[root@localhost ~]# useradd -d /home/hoge hoge [root@localhost ~]# passwd hoge Changing password for user hoge. New UNIX password: Retype new UNIX password: passwd: all authentication tokens updated successfully. [root@localhost ~]# exit logout先ほど追加した一般ユーザーで再度ログインします。
[hercules@ap01 ~]$ ssh -l hoge 192.168.200.1 hoge@192.168.200.1's password: [hoge@localhost ~]$次は、デフォルトで起動しているサービスのうち使わないものを停止したいと思います(エミュレータ上でCentOSを動作させているので、無駄なものは極力動かしたくないのです)
[hoge@localhost ~]$ su - Password: [root@localhost ~]# chkconfig --list httpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off cups 0:off 1:off 2:on 3:on 4:on 5:on 6:off autofs 0:off 1:off 2:off 3:on 4:on 5:on 6:off rpcgssd 0:off 1:off 2:off 3:on 4:on 5:on 6:off messagebus 0:off 1:off 2:off 3:on 4:on 5:on 6:off iiim 0:off 1:off 2:on 3:on 4:on 5:on 6:off psacct 0:off 1:off 2:off 3:off 4:off 5:off 6:off netdump 0:off 1:off 2:off 3:off 4:off 5:off 6:off rawdevices 0:off 1:off 2:off 3:on 4:on 5:on 6:off atd 0:off 1:off 2:off 3:on 4:on 5:on 6:off tux 0:off 1:off 2:off 3:off 4:off 5:off 6:off sshd 0:off 1:off 2:on 3:on 4:on 5:on 6:off readahead 0:off 1:off 2:off 3:off 4:off 5:on 6:off auditd 0:off 1:off 2:off 3:off 4:off 5:off 6:off dc_server 0:off 1:off 2:off 3:off 4:off 5:off 6:off netplugd 0:off 1:off 2:off 3:off 4:off 5:off 6:off haldaemon 0:off 1:off 2:off 3:on 4:on 5:on 6:off ipmi 0:off 1:off 2:off 3:off 4:off 5:off 6:off lvm2-monitor 0:off 1:on 2:on 3:on 4:on 5:on 6:off kudzu 0:off 1:off 2:off 3:off 4:off 5:off 6:off mdmpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off crond 0:off 1:off 2:on 3:on 4:on 5:on 6:off saslauthd 0:off 1:off 2:off 3:off 4:off 5:off 6:off xfs 0:off 1:off 2:on 3:on 4:on 5:on 6:off sendmail 0:off 1:off 2:on 3:on 4:on 5:on 6:off rhnsd 0:off 1:off 2:off 3:on 4:on 5:on 6:off mdmonitor 0:off 1:off 2:on 3:on 4:on 5:on 6:off rpcidmapd 0:off 1:off 2:off 3:on 4:on 5:on 6:off ntpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off yum 0:off 1:off 2:off 3:off 4:off 5:off 6:off network 0:off 1:off 2:on 3:on 4:on 5:on 6:off ypbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off dc_client 0:off 1:off 2:off 3:off 4:off 5:off 6:off nfs 0:off 1:off 2:off 3:off 4:off 5:off 6:off portmap 0:off 1:off 2:off 3:on 4:on 5:on 6:off winbind 0:off 1:off 2:off 3:off 4:off 5:off 6:off smb 0:off 1:off 2:off 3:off 4:off 5:off 6:off FreeWnn 0:off 1:off 2:off 3:off 4:off 5:off 6:off canna 0:off 1:off 2:on 3:on 4:on 5:on 6:off iptables 0:off 1:off 2:on 3:on 4:on 5:on 6:off netfs 0:off 1:off 2:off 3:on 4:on 5:on 6:off anacron 0:off 1:off 2:on 3:on 4:on 5:on 6:off nfslock 0:off 1:off 2:off 3:on 4:on 5:on 6:off squid 0:off 1:off 2:off 3:off 4:off 5:off 6:off nscd 0:off 1:off 2:off 3:off 4:off 5:off 6:off rdisc 0:off 1:off 2:off 3:off 4:off 5:off 6:off xinetd 0:off 1:off 2:off 3:on 4:on 5:on 6:off readahead_early 0:off 1:off 2:off 3:off 4:off 5:on 6:off syslog 0:off 1:off 2:on 3:on 4:on 5:on 6:off cpuspeed 0:off 1:on 2:on 3:on 4:on 5:on 6:off vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off xinetd based services: rsync: off klogin: off echo-udp: off eklogin: off gssftp: off echo: off chargen-udp: off kshell: off time-udp: off chargen: off daytime: off cups-lpd: off daytime-udp: off krb5-telnet: off time: off
cups/sendmailはこのマシン上では動かしていてもしょうがない気がする(^^;)ので停止し、もう立ち上がらないようにします(ちなみにランレベルはrunlevelコマンドで確認できます)。
[root@localhost ~]# service cups stop Stopping cups: [ OK ] [root@localhost ~]# service sendmail stop Shutting down sm-client: [ OK ] Shutting down sendmail: [ OK ] [root@localhost ~]# chkconfig cups off [root@localhost ~]# chkconfig sendmail
次回は、(前回も書きましたが)DASDの追加について書きたいと思います。
0 件のコメント:
コメントを投稿