戻る

前へ

FLORA 350 後片付け

/dev/hda10 データ削除

データーの バックアップ

sv:~# mount /dev/hda10 /mnt/
sv:~# cd /mnt/etc/mail
sv:/mnt/etc/mail# cp access /home/fdopstm/
sv:/mnt/etc/mail# chown fdopstm:users /home/fdopstm/access

$ scp fdopstm@192.168.24.9:/home/fdopstm/access . /* 中継の 計算機 */
Password: 
access                                        100% 1845KB   1.8MB/s   00:01   
$ scp access fdopstm@192.168.24.8:/home/fdopstm/
Password: 
access                                        100% 1845KB   1.8MB/s   00:00    
nl:~# cd /etc/mail   /*  新しく サーバーになった計算機 で   */ 
nl:/etc/mail# mv access 20100524_access
nl:/etc/mail# cp 20100524_access access
nl:/etc/mail# cat /home/fdopstm/access >>access
nl:/etc/mail# sort access | uniq >jjjj
nl:/etc/mail# wc -l jjjj 
  66593 jjjj
nl:/etc/mail# cat jjjj >access
nl:/etc/mail# rm jjjj 
nl:/etc/mail# wc -l access
  66593 access
nl:/etc/mail# makemap hash /etc/mail/access.db < /etc/mail/access
nl:/etc/mail# cd /var/log
nl:/var/log# kill -HUP `head -1 /var/run/sendmail.pid `
nl:/var/log# cat maillog 
May 28 17:24:32 nl mta-daemon[311]: restarting /usr/sbin/sendmail due to signal
May 28 17:24:32 nl mta-daemon[626]: starting daemon (8.14.1): SMTP+queueing@00:15:00
nl:/var/log# :>maillog 

後は細々したものですので 省略

データーの 削除

/dev/hda10 & /dev/hda11

面倒ですので フォーマットしませう

sv:~# df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/hda7             20315812   3211232  16055940  17% /
/dev/hda8             20641788   1090668  18502480   6% /var/data
sv:~# ls /sbin | grep ext3
fsck.ext3*
mkfs.ext3*
sv:~# /sbin/mkfs.ext3 /dev/hda10
mke2fs 1.34 (25-Jul-2003)
warning: 326 blocks unused.

Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2626560 inodes, 5242880 blocks
262160 blocks (5.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16416 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 39 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
sv:~# /sbin/mkfs.ext3 /dev/hda11
mke2fs 1.34 (25-Jul-2003)
warning: 326 blocks unused.

Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
2626560 inodes, 5242880 blocks
262160 blocks (5.00%) reserved for the super user
First data block=0
160 block groups
32768 blocks per group, 32768 fragments per group
16416 inodes per group
Superblock backups stored on blocks: 
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 
        4096000

Writing inode tables: done                            
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
sv:~# mount /dev/hda10 /mnt/
sv:~# ls -a /mnt/
./  ../  lost+found/
sv:~# umount /mnt/
sv:~# mount /dev/hda11 /mnt/
sv:~# ls -a /mnt/
./  ../  lost+found/
sv:~# umount /mnt/

カーネルの コピー 削除

これで完了です

sv:~# mount -t vfat /dev/hda1 /mnt/
sv:~# mount -t vfat /dev/hda1 /mnt/
sv:~# ls /mnt/
001oexec.bat*  device.raw*    gem.bat*    hda7_ker*      setup.bat*
autoexec.bat*  fdconfig.sys*  gemapps/    kernel.sys*    shell.raw*
command.com*   fdos/          hda10_ker*  org-exec.bat*  work/
sv:~# rm /mnt/hda10_ker 
sv:~# umount /mnt/

再起動 確認

では 再起動で確認して その後停止 しましょう。

sv:~# shutdown -r now

Broadcast message from root (pts/0) (Fri May 28 22:14:16 2010):

The system is going down for reboot NOW!
sv:~# Connection to 192.168.24.9 closed by remote host.
Connection to 192.168.24.9 closed.
$ ping -c3 192.168.24.9
PING 192.168.24.9 (192.168.24.9): 56 octets data
64 octets from 192.168.24.9: icmp_seq=0 ttl=64 time=0.3 ms
64 octets from 192.168.24.9: icmp_seq=1 ttl=64 time=0.2 ms
64 octets from 192.168.24.9: icmp_seq=2 ttl=64 time=0.2 ms

--- 192.168.24.9 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.2/0.2/0.3 ms
$ ssh -l fdopstm 192.168.24.9
ssh: connect to host 192.168.24.9 port 22: Connection refused

あれまあ! 強制電源斷 して 起動させると

$ ping -c3 192.168.24.9
PING 192.168.24.9 (192.168.24.9): 56 octets data
64 octets from 192.168.24.9: icmp_seq=0 ttl=64 time=0.6 ms
64 octets from 192.168.24.9: icmp_seq=1 ttl=64 time=0.2 ms
64 octets from 192.168.24.9: icmp_seq=2 ttl=64 time=0.2 ms

--- 192.168.24.9 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 0.2/0.3/0.6 ms
$ ssh -l fdopstm 192.168.24.9
Password: 
fdopstm@sv:~$ su -
Password: 
sv:~# lspci
00:00.0 Host bridge: Intel Corp. 440LX/EX - 82443LX/EX Host bridge (rev 03)
00:01.0 PCI bridge: Intel Corp. 440LX/EX - 82443LX/EX AGP bridge (rev 03)
00:07.0 ISA bridge: Intel Corp. 82371AB/EB/MB PIIX4 ISA (rev 01)
00:07.1 IDE interface: Intel Corp. 82371AB/EB/MB PIIX4 IDE (rev 01)
00:07.2 USB Controller: Intel Corp. 82371AB/EB/MB PIIX4 USB (rev 01)
00:07.3 Bridge: Intel Corp. 82371AB/EB/MB PIIX4 ACPI (rev 01)
00:13.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 43)
01:00.0 VGA compatible controller: ATI Technologies Inc 3D Rage Pro AGP 1X/2X (rev 5c)

良しとしましょう 再現性が あれば 再度調査です。ちゃんちゃん!

にゃんたろう 拝!

2010年 5月28日 (金) 21:12:57 JST 作成


前へ

戻る

Copyright © 2006.-2010. nyantarou All Rights Reserved.