移動させるのですが /dev/hda10,/dev/hda11 の mkfs ファイルシステムを作 成しておく必要が有ります。
何で行うか 間にがあるか
# ls /sbin/mkfs.ext* /sbin/mkfs.ext2* /sbin/mkfs.ext3*
ext3 を採用しましょう。予定としては
/dev/hda10 10445 13055 20972826 83 Linux /* 本体 */ /dev/hda11 13056 15666 20972826 83 Linux /* var/data 以降 */
ということで
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.
/dev/hda11 も
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 28 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override.
$ df /* 192.168.24.5 中継の 計算機 */ Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 9469148 6535112 2445260 73% / /dev/hda8 9614116 1740880 7384864 20% /var/data $ scp 20100523_nl_192.168.24.8_backup.tgz fdopstm@192.168.24.9:/home/fdopstm/ Password: 20100523_nl_192.168.24.8_backup.tgz 0% 8132KB 2.7MB/s 11:21 ETA ... 20100523_nl_192.168.24.8_backup.tgz 100% 1828MB 2.6MB/s 11:37 $ rm 20100523_nl_192.168.24.8_backup.tgz $ df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 9469148 4660984 4319388 52% / /dev/hda8 9614116 1740880 7384864 20% /var/data
初期値 scp の終了時は どのくらい 増加するか??
sv:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 20315812 3210988 16056184 17% / /dev/hda8 20641788 1090668 18502480 6% /var/data
scp の終了時は
sv:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 20315812 5085120 14182052 27% / /dev/hda8 20641788 1090668 18502480 6% /var/data
sv:~# mount /dev/hda10 /mnt/ sv:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 20315812 5085120 14182052 27% / /dev/hda8 20641788 1090668 18502480 6% /var/data /dev/hda10 20641788 32828 19560320 1% /mnt sv:~# ls -al /mnt/ total 24 drwxr-xr-x 3 root root 4096 Feb 6 11:08 ./ drwxr-xr-x 18 root root 4096 Feb 6 06:19 ../ drwx------ 2 root root 16384 Feb 6 11:08 lost+found/ sv:~# rm -r /mnt/lost+found/ sv:~# mv /home/fdopstm/20100523_nl_192.168.24.8_backup.tgz /mnt/ sv:~# ls -l /mnt/ total 1874132 -rw-r--r-- 1 fdopstm users 1917231043 Feb 6 12:34 20100523_nl_192.168.24 .8_backup.tgz sv:~# df Filesystem 1k-blocks Used Available Use% Mounted on /dev/hda7 20315812 3210988 16056184 17% / /dev/hda8 20641788 1090668 18502480 6% /var/data /dev/hda10 20641788 1906944 17686204 10% /mnt
/dev/hda10 に データを 保存しました。
にゃんたろう 拝!
2010年 5月24日 (月) 21:02:51 JST 作成