/l3/users/sid/nt-scale-2010-03/linux6.unix.nt.unix.nt/root :1 |
|
#vim /etc/network/interfaces
--- /tmp/l3-saved-5759.5424.18706 2010-03-22 15:52:52.000000000 +0200 +++ /etc/network/interfaces 2010-03-22 15:53:01.000000000 +0200 @@ -8,7 +8,7 @@ # The primary network interface allow-hotplug eth0 iface eth0 inet static - address 192.168.15.6 + address 192.168.15.2 netmask 255.255.255.0 network 192.168.15.0 broadcast 192.168.15.255 |
#vim /etc/host
![]() |
#dd -C if=/dev/zero of=disk1.img seek=2048 bs=1024k count1
![]() dd: неверный ключ -- C Попробуйте `dd --help' для получения более подробного описания. |
#dd if=/dev/zero of=disk1.img seek=2048 bs=1024k count1
![]() dd: операнд `count1' не распознан Попробуйте `dd --help' для получения более подробного описания. |
#dd if=/dev/zero of=disk1.img seek=2048 bs=1024k count1
![]() dd: операнд `count1' не распознан Попробуйте `dd --help' для получения более подробного описания. |
#dd if=/dev/zero of=disk1.img seek=2048 bs=1024k count=1
1+0 записей считано 1+0 записей написано скопировано 1048576 байт (1,0 MB), 0,00247818 c, 423 MB/c |
#ls
Desktop disk1.img |
#dd if=/dev/zero of=disk2.img seek=2048 bs=1024k count=1
1+0 записей считано 1+0 записей написано скопировано 1048576 байт (1,0 MB), 0,00248377 c, 422 MB/c |
#dd if=/dev/zero of=disk3.img seek=2048 bs=1024k count=1
1+0 записей считано 1+0 записей написано скопировано 1048576 байт (1,0 MB), 0,00256122 c, 409 MB/c |
#losetup /dev/loop1 disk1.img
|
#losetup /dev/loop3 disk3.img
|
#losetup /dev/loop2 disk2.img
|
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active (auto-read-only) raid5 loop3[3](S) loop2[1] loop1[0] 4196224 blocks level 5, 64k chunk, algorithm 2 [3/2] [UU_] unused devices: <none> |
#losetup /dev/loop2 disk2.img
/dev/md0 -r /dev/loop3 mdadm: hot removed /dev/loop3 |
#mdadm /dev/md0 -f /dev/loop3
![]() mdadm: set device faulty failed for /dev/loop3: No such device |
#losetup /dev/loop2 disk2.img
3 disk3 |
#losetup /dev/loop2 disk2.img
-d /dev/loop3 |
#fdisk -l /dev/loop3
Disk /dev/loop3: 2148 MB, 2148532224 bytes 255 heads, 63 sectors/track, 261 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x00000000 Disk /dev/loop3 doesn't contain a valid partition table |
#mdadm /dev/md0 -a /dev/loop3
mdadm: re-added /dev/loop3 |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid5 loop3[2] loop2[1] loop1[0] 4196224 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU] unused devices: <none> |
#cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] md0 : active raid5 loop3[2] loop2[1] loop1[0] 4196224 blocks level 5, 64k chunk, algorithm 2 [3/3] [UUU] unused devices: <none> |
#kpartx -a /dev/md0
|
#fdisk /dev/md0
![]() Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x0fa3c033. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable. The number of cylinders for this disk is set to 1049056. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) ... Disk identifier: 0x0fa3c033 Device Boot Start End Blocks Id System /dev/md0p1 1 1049056 4196222 83 Linux Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 22: Недопустимый аргумент. The kernel still uses the old table. The new table will be used at the next reboot. Syncing disks. |
#kpartx -a /dev/md0
|
#mkfs.ext3 /dev/mapper/md0p1
mke2fs 1.41.3 (12-Oct-2008) warning: 479 blocks unused. Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 262656 inodes, 1048576 blocks 52452 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=1073741824 32 block groups 32768 blocks per group, 32768 fragments per group 8208 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736 Writing inode tables: done Creating journal (32768 blocks): done Writing superblocks and filesystem accounting information: done This filesystem will be automatically checked every 22 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. |
#mount /dev/mapper/md0p1 /mnt
|
#df -h
Файловая система |