Журнал лабораторных работ

Содержание

Журнал

Среда (03/24/10)

/dev/pts/0
15:04:39
$ssh root@192.168.15.10
root@192.168.15.10's password:
Linux linux10 2.6.26-2-686 #1 SMP Tue Mar 9 17:35:51 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Mar 24 16:07:25 2010 from linux8.unix.nt
l3-agent is already running: pid=3272; pidfile=/root/.lilalo/l3-agent.pid
/dev/pts/8
15:05:36
#exit
Connection to 192.168.15.3 closed.
15:05:46
$ping 192.168.15.154
PING 192.168.15.154 (192.168.15.154) 56(84) bytes of data.
^C
--- 192.168.15.154 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1014ms
15:06:18
$ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data.
64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=2.40 ms
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=0.644 ms
^C
--- 192.168.15.254 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1006ms
rtt min/avg/max/mdev = 0.644/1.524/2.404/0.880 ms
/dev/pts/0
15:07:42
#screen -x
/dev/pts/2
15:09:00
#ping 192.168.16.102
PING 192.168.16.102 (192.168.16.102) 56(84) bytes of data.
64 bytes from 192.168.16.102: icmp_seq=1 ttl=64 time=10.4 ms
64 bytes from 192.168.16.102: icmp_seq=2 ttl=64 time=0.261 ms
^C
--- 192.168.16.102 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1005ms
rtt min/avg/max/mdev = 0.261/5.354/10.448/5.094 ms
15:09:52
#lsp
lspci    lspgpot
15:09:52
#lsp
lspci    lspgpot
15:09:52
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)
15:12:45
#lspci
00:00.0 Host bridge: Intel Corporation 82Q35 Express DRAM Controller (rev 02)
00:02.0 VGA compatible controller: Intel Corporation 82Q35 Express Integrated Graphics Controller (rev 02)
00:03.0 Communication controller: Intel Corporation 82Q35 Express MEI Controller (rev 02)
00:03.2 IDE interface: Intel Corporation 82Q35 Express PT IDER Controller (rev 02)
00:03.3 Serial controller: Intel Corporation 82Q35 Express Serial KT Controller (rev 02)
00:19.0 Ethernet controller: Intel Corporation 82566DM-2 Gigabit Network Connection (rev 02)
00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 02)
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 02)
00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IO (ICH9DO) LPC Interface Controller (rev 02)
00:1f.2 RAID bus controller: Intel Corporation 82801 SATA RAID Controller (rev 02)
15:12:54
#apt-cache search xen
aide-xen - Advanced Intrusion Detection Environment - static binary for XEN
autopkgtest-xenlvm - Xen/LVM2 based testbed snapshot system
autopkgtest - automatic as-installed testing for Debian packages
caudium - An extensible WWW server written in Pike
claws-mail-themes - Pixmap icon themes for the Claws Mail mailer
libdoxia-java-doc - a powerful content generation framework
libdoxia-java - a powerful content generation framework
dtc-xen-firewall - A small firewall script for your dom0
dtc-xen - SOAP daemon and scripts to allow control panel management for Xen VMs
dtc-common - web control panel for admin and accounting hosting services (common files)
...
redhat-cluster-modules-2.6-xen-686 - Redhat Cluster infrastructure for Linux 2.6 on i686
redhat-cluster-modules-2.6.26-2-xen-686 - Redhat Cluster infrastructure for Linux 2.6.26 on i686
speakup-modules-2.6-xen-686 - Screen review module for Linux 2.6 on i686
speakup-modules-2.6.26-2-xen-686 - Screen review module for Linux 2.6.26 on i686
squashfs-modules-2.6-xen-686 - Compression filesystem for Linux 2.6 on i686
squashfs-modules-2.6.26-2-xen-686 - Compression filesystem for Linux 2.6.26 on i686
tp-smapi-modules-2.6-xen-686 - ThinkPad hardware/firmware access for Linux 2.6 on i686
tp-smapi-modules-2.6.26-2-xen-686 - ThinkPad hardware/firmware access for Linux 2.6.26 on i686
xen-linux-system-2.6.26-1-xen-686 - XEN system with Linux 2.6.26 image on i686
xen-linux-system-2.6.26-2-xen-686 - XEN system with Linux 2.6.26 image on i686
15:20:03
#apt-get install xen-linux-system-2.6.26-2-xen-686
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  libc6-xen libxenstore3.0 linux-image-2.6.26-2-xen-686 linux-modules-2.6.26-2-xen-686
  xen-hypervisor-3.2-1-i386 xen-utils-3.2-1 xen-utils-common xenstore-utils
Предлагаемые пакеты:
  linux-doc-2.6.26 xen-docs-3.2
Рекомендуемые пакеты:
  xen-hypervisor-3.2-1
...
Searching for GRUB installation directory ... found: /boot/grub
Searching for default file ... found: /boot/grub/default
Testing for an existing GRUB menu.lst file ... found: /boot/grub/menu.lst
Searching for splash image ... none found, skipping ...
Found Xen hypervisor 3.2-1-i386,  kernel: /boot/vmlinuz-2.6.26-2-xen-686
Found kernel: /boot/vmlinuz-2.6.26-2-xen-686
Found kernel: /boot/vmlinuz-2.6.26-2-686
Updating /boot/grub/menu.lst ... done
Настраивается пакет xen-linux-system-2.6.26-2-xen-686 (2.6.26-21lenny4) ...
Настраивается пакет xen-utils-3.2-1 (3.2.1-2) ...
15:22:34
#cat /boot/grub/menu.lst
# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-legacy-doc/.
## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
...
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sdb1
title           Microsoft Windows XP Professional
root            (hd1,0)
savedefault
makeactive
map             (hd0) (hd1)
map             (hd1) (hd0)
chainloader     +1
15:23:03
#reboot

/dev/pts/0
15:26:45
$l3-agent

15:26:53
$ssh root@192.168.15.10
root@192.168.15.10's password:
Linux linux10 2.6.26-2-xen-686 #1 SMP Tue Mar 9 20:11:42 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Mar 24 16:27:09 2010 from 192.168.15.3
l3-agent is already running: pid=3364; pidfile=/root/.lilalo/l3-agent.pid
15:27:14
#screen -x
15:27:15
#screen -x
/dev/pts/2
15:27:22
$ssh root@192.168.15.2
The authenticity of host '192.168.15.2 (192.168.15.2)' can't be established.
RSA key fingerprint is eb:77:9f:e7:27:93:df:61:c0:64:d2:44:16:96:32:87.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.15.2' (RSA) to the list of known hosts.
root@192.168.15.2's password:
Permission denied, please try again.
root@192.168.15.2's password:
l3-agent is already running: pid=3305; pidfile=/root/.lilalo/l3-agent.pid
15:27:43
#screen -x
15:29:02
$sudo -s
[sudo] password for user:
sudo: pam_authenticate: Ошибка диалога
15:29:16
$su -
Пароль:
15:29:23
#grub
grub              grub-md5-crypt    grub-reboot
grub-floppy       grub-mkdevicemap  grub-set-default
grub-install      grub-probe        grub-terminfo
15:29:23
#grub --help
Usage: grub [OPTION]...
Enter the GRand Unified Bootloader command shell.
    --batch                  turn on batch mode for non-interactive use
    --boot-drive=DRIVE       specify stage2 boot_drive [default=0x0]
    --config-file=FILE       specify stage2 config_file [default=/boot/grub/menu.lst]
    --device-map=FILE        use the device map file FILE
    --help                   display this message and exit
    --hold                   wait until a debugger will attach
    --install-partition=PAR  specify stage2 install_partition [default=0x20000]
    --no-config-file         do not use the config file
    --no-curses              do not use curses
    --no-floppy              do not probe any floppy drive
    --no-pager               do not use internal pager
    --preset-menu            use the preset menu
    --probe-second-floppy    probe the second floppy drive
    --read-only              do not write anything to devices
    --verbose                print verbose messages
    --version                print version information and exit
Report bugs to <bug-grub@gnu.org>.
15:29:39
#mx list
bash: mx: команда не найдена
15:30:35
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7911     2     r-----     53.7
15:30:39
#xm dmesg
(XEN) Xen version 3.2-1 (Debian 3.2.1-2) (waldi@debian.org) (gcc version 4.3.1 (Debian 4.3.1-2) ) Sat Jun 28 15:25:00 UTC 2008
(XEN) Command line:
(XEN) Video information:
(XEN)  VGA is text mode 80x25, font 8x16
(XEN)  VBE/DDC methods: V2; EDID transfer time: 1 seconds
(XEN) Disc information:
(XEN)  Found 2 MBR signatures
(XEN)  Found 2 EDD information structures
(XEN) Xen-e820 RAM map:
(XEN)  0000000000000000 - 0000000000098000 (usable)
...
(XEN) Dom0 has maximum 2 VCPUs
(XEN) Initrd len 0x12dba00, start at 0xc042e000
(XEN) Scrubbing Free RAM: .done.
(XEN) Xen trace buffers: disabled
(XEN) Std. Loglevel: Errors and warnings
(XEN) Guest Loglevel: Nothing (Rate-limited: Errors and warnings)
(XEN) Xen is relinquishing VGA console.
(XEN) *** Serial input -> DOM0 (type 'CTRL-a' three times to switch input to Xen)
(XEN) Freed 96kB init memory.
(XEN) mtrr: type mismatch for e0000000,10000000 old: write-back new: write-combining
15:32:57
#vgdisplay
  --- Volume group ---
  VG Name               DATA
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  27
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               93,14 GB
  PE Size               4,00 MB
  Total PE              23844
  Alloc PE / Size       5632 / 22,00 GB
  Free  PE / Size       18212 / 71,14 GB
  VG UUID               T7BtRe-4XNh-rUjr-edI4-2scd-81lF-vayAji
15:35:31
#lvcreate -L 2G -m linux1 DATA
  Invalid argument linux1
  Error during parsing of command line.
15:35:50
#lvcreate -L 2G -n linux1 DATA
  Logical volume "linux1" created
15:35:55
#mkfs.ext3 /dev/DATA/linux1
mke2fs 1.41.3 (12-Oct-2008)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
131072 inodes, 524288 blocks
26214 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=536870912
16 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912
Writing inode tables: done
Creating journal (16384 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 29 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
15:36:12
#mou
mount          mount.nfs      mount.ocfs2    mousetweaks
mounted.ocfs2  mount.nfs4     mountpoint
15:36:12
#mount /dev/DATA/linux1 /mnt/

15:36:37
#apt-get install debootstrap
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Уже установлена самая новая версия debootstrap.
debootstrap установлен вручную.
обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
15:36:52
#debootstrap lenny /mnt http://10.0.35.1:9999/debian/
I: Retrieving Release
I: Retrieving Packages
I: Retrieving Packages
I: Validating Packages
I: Resolving dependencies of required packages...
I: Resolving dependencies of base packages...
I: Checking component main on http://10.0.35.1:9999/debian...
I: Retrieving libacl1
I: Validating libacl1
I: Retrieving adduser
...
I: Configuring libcwidget3...
I: Configuring libgnutls26...
I: Configuring debian-archive-keyring...
I: Configuring apt...
I: Configuring libept0...
I: Configuring apt-utils...
I: Configuring aptitude...
I: Configuring tasksel-data...
I: Configuring tasksel...
I: Base system installed successfully.
15:38:20
#ls -l /mnt/
итого 88
drwxr-xr-x  2 root root  4096 Мар 24 16:38 bin
drwxr-xr-x  2 root root  4096 Янв 25 05:41 boot
drwxr-xr-x  4 root root  4096 Мар 24 16:38 dev
drwxr-xr-x 39 root root  4096 Мар 24 16:38 etc
drwxr-xr-x  2 root root  4096 Янв 25 05:41 home
drwxr-xr-x 10 root root  4096 Мар 24 16:38 lib
drwx------  2 root root 16384 Мар 24 16:36 lost+found
drwxr-xr-x  2 root root  4096 Мар 24 16:37 media
drwxr-xr-x  2 root root  4096 Янв 25 05:41 mnt
drwxr-xr-x  2 root root  4096 Мар 24 16:37 opt
drwxr-xr-x  2 root root  4096 Янв 25 05:41 proc
drwxr-xr-x  2 root root  4096 Мар 24 16:37 root
drwxr-xr-x  2 root root  4096 Мар 24 16:38 sbin
drwxr-xr-x  2 root root  4096 Сен 16  2008 selinux
drwxr-xr-x  2 root root  4096 Мар 24 16:37 srv
drwxr-xr-x  2 root root  4096 Авг 12  2008 sys
drwxrwxrwt  2 root root  4096 Мар 24 16:38 tmp
drwxr-xr-x 10 root root  4096 Мар 24 16:37 usr
drwxr-xr-x 13 root root  4096 Мар 24 16:37 var
15:38:52
#mount --bind /proc /mnt/proc

15:40:44
#mount --bind /sys /mnt/sys

15:40:52
#mount --bind /dev /mnt/dev

15:40:58
#chroot /mnt/
linux1:/#  LANG=C apt-get install ssh udev
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  libedit2 libkeyutils1 libkrb53 libvolume-id0 libx11-6 libx11-data libxau6
  libxcb-xlib0 libxcb1 libxdmcp6 libxext6 libxmuu1 openssh-blacklist
  openssh-blacklist-extra openssh-client openssh-server x11-common xauth
Suggested packages:
  krb5-doc krb5-user ssh-askpass libpam-ssh keychain rssh molly-guard
The following NEW packages will be installed:
...
locale: Cannot set LC_CTYPE to default locale: No such file or directory
locale: Cannot set LC_MESSAGES to default locale: No such file or directory
locale: Cannot set LC_ALL to default locale: No such file or directory
Can not write log, openpty() failed (/dev/pts not mounted?)
Selecting previously deselected package libc6-xen.
(Reading database ... 8463 files and directories currently installed.)
Unpacking libc6-xen (from .../libc6-xen_2.7-18lenny1_i386.deb) ...
Can not write log, openpty() failed (/dev/pts not mounted?)
Setting up libc6-xen (2.7-18lenny1) ...
linux1:/# exit
/dev/pts/6
15:43:25
$#sed -i s/tty1/hvc0/ /etc/inittab

15:43:28
$# chtob bila vidna console

15:43:44
$#cat /etc/ld.so.conf.d/libc6-xen.conf

15:47:38
$#apt-get install libc6-xen

15:47:47
$su -
Пароль:
/dev/pts/2
15:49:29
#umount /mnt
umount: /mnt: device is busy
umount: /mnt: device is busy
15:49:36
#umount /mnt/sys

15:49:47
#umount /mnt/proc

15:49:50
#umount /mnt/dev

15:49:57
#umount /mnt

15:49:59
#nano /etc/xen/
15:49:59
#nano /etc/xen/linux1
15:51:03
#kernel = "/boot/vmlinuz-2.6.10-xenU"

15:51:24
#ls /etc/xen/
linux1   xend-config.sxp         xend-pci-permissive.sxp
scripts  xend-config-xenapi.sxp  xend-pci-quirks.sxp
15:51:30
#ls /boot/[vi]*2.6.26*xen*
/boot/initrd.img-2.6.26-2-xen-686  /boot/vmlinuz-2.6.26-2-xen-686
15:52:39
#nano /etc/xen/linux1
16:00:59
#xm create -c linux1

прошло 17 минут
16:18:51
#cat .bash_history
fdisk /dev/sdb
cfdisk /dev/sda
fdisk /dev/sdb
fdisk /dev/sdb
cfdisk /dev/sda
fdisk /dev/sda
cfdisk /dev/sda
partprobe
umount /mnt
resize2fs /dev/mapper/md0p1
...
ifconfig -a
ping 192.168.16.102
mii-tool
ping 192.168.16.102
lspci
lspci
apt-cache search xen
apt-get install xen-linux-system-2.6.26-2-xen-686
cat /boot/grub/menu.lst
reboot
16:18:58
#cat /root/.bash_history
fdisk /dev/sdb
cfdisk /dev/sda
fdisk /dev/sdb
fdisk /dev/sdb
cfdisk /dev/sda
fdisk /dev/sda
cfdisk /dev/sda
partprobe
umount /mnt
resize2fs /dev/mapper/md0p1
...
ifconfig -a
ping 192.168.16.102
mii-tool
ping 192.168.16.102
lspci
lspci
apt-cache search xen
apt-get install xen-linux-system-2.6.26-2-xen-686
cat /boot/grub/menu.lst
reboot
16:19:25
#cat /home/reverse/.bash_history
cat: /home/reverse/.bash_history: Нет такого файла или каталога
16:19:46
#cat /home/user/.bash_history
apt-get install locales
dpkg-reconfigure locales
date
LANG=C date
dpkg-reconfigure tzdata
TZ=Europe/Berlin date
date
apt-get install build-essential
cd /tmp/
wget http://xgu.ru/lilalo/install
...
dd if=/dev/zero of=/data/lv3/gggg count=1000 bs=1024k
pvdisplay
# pusto na sda6
pvmove /dev/sda5
vgreduce DATA /dev/sda5
vgremove /dev/sda5
vgdisplay
pvdisplay
pvremove /dev/sda5
pvdisplay
/dev/pts/6
16:24:14
#mx list
bash: mx: команда не найдена
16:24:19
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7911     2     r-----   1183.6
linux1                                       1   128     1     -b----      5.4
16:24:23
#nano /etc/xen/
16:24:23
#nano /etc/xen/xend-config.sxp
16:27:26
#domU: fake eth0 -> vifN.0 -+
linux1:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz
stepping        : 11
cpu MHz         : 2327.498
cache size      : 4096 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni ssse3
bogomips        : 4671.87
clflush size    : 64
power management:
/dev/pts/2
16:28:04
#xm console linux1
linux1:~# cat /proc/cpuinfo
processor       : 0
vendor_id       : GenuineIntel
cpu family      : 6
model           : 15
model name      : Intel(R) Core(TM)2 Duo CPU     E6550  @ 2.33GHz
stepping        : 11
cpu MHz         : 2327.498
cache size      : 4096 KB
fdiv_bug        : no
hlt_bug         : no
f00f_bug        : no
coma_bug        : no
fpu             : yes
fpu_exception   : yes
cpuid level     : 10
wp              : yes
flags           : fpu de tsc msr pae cx8 apic cmov pat clflush acpi mmx fxsr sse sse2 ss ht nx constant_tsc up pni ssse3
bogomips        : 4671.87
clflush size    : 64
power management:
16:29:40
#/etc/init.d/xend restart
Restarting XEN control daemon: xendWaiting for peth0 to negotiate link...........(link isnt in running state)
mount.ocfs2: Device name specified was not found while opening device /dev/drbd1
mount.ocfs2: Device name specified was not found while opening device /dev/drbd2
.
/dev/pts/0
16:29:48
$ssh root@192.168.15.10
ssh: connect to host 192.168.15.10 port 22: No route to host
/dev/pts/2
16:30:31
#ping 192.168.15.4
PING 192.168.15.4 (192.168.15.4) 56(84) bytes of data.
^C
--- 192.168.15.4 ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 2004ms
/dev/pts/6
16:30:56
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7911     2     r-----   1274.1
linux1                                       1   128     1     -b----      5.4
16:31:05
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0f:fe:7e:b8:53
          inet addr:192.168.15.1  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe7e:b853/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:79 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:9377 (9.1 KiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:29 errors:0 dropped:0 overruns:0 frame:0
          TX packets:29 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:2373 (2.3 KiB)  TX bytes:2373 (2.3 KiB)
16:31:08
#ifconfig -a
eth0      Link encap:Ethernet  HWaddr 00:0f:fe:7e:b8:53
          inet addr:192.168.15.1  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe7e:b853/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:81 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:9461 (9.2 KiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
...
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
vif0.3    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff
          BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
/dev/pts/0
16:31:30
$ssh root@192.168.15.10
ssh: connect to host 192.168.15.10 port 22: No route to host
/dev/pts/2
16:31:58
#ping 192.168.15.10
PING 192.168.15.10 (192.168.15.10) 56(84) bytes of data.
^C
--- 192.168.15.10 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
16:32:03
#ping 192.168.15.4
PING 192.168.15.4 (192.168.15.4) 56(84) bytes of data.
^C
--- 192.168.15.4 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 999ms
16:32:20
#ping 192.168.15.10
PING 192.168.15.10 (192.168.15.10) 56(84) bytes of data.
^C
--- 192.168.15.10 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1004ms
16:32:25
#ping 192.168.15.2
PING 192.168.15.2 (192.168.15.2) 56(84) bytes of data.
^C
--- 192.168.15.2 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1003ms
16:32:27
#ping 192.168.15.3
PING 192.168.15.3 (192.168.15.3) 56(84) bytes of data.
^C
--- 192.168.15.3 ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1007ms
16:32:30
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0f:fe:7e:b8:53
          inet addr:192.168.15.1  Bcast:192.168.15.255  Mask:255.255.255.0
          inet6 addr: fe80::20f:feff:fe7e:b853/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:163 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:13249 (12.9 KiB)
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:76 errors:0 dropped:0 overruns:0 frame:0
          TX packets:76 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:6986 (6.8 KiB)  TX bytes:6986 (6.8 KiB)
16:32:40
#brctl show
bridge name     bridge id               STP enabled     interfaces
eth0            8000.000ffe7eb853       no              peth0
/dev/pts/2
16:41:41
$l3-agent

16:41:44
$ping 192.168.15.254
PING 192.168.15.254 (192.168.15.254) 56(84) bytes of data.
64 bytes from 192.168.15.254: icmp_seq=1 ttl=64 time=0.660 ms
64 bytes from 192.168.15.254: icmp_seq=2 ttl=64 time=5.31 ms
64 bytes from 192.168.15.254: icmp_seq=3 ttl=64 time=0.649 ms
^C
--- 192.168.15.254 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2004ms
rtt min/avg/max/mdev = 0.649/2.207/5.312/2.195 ms
16:41:52
$ping ya.ru
ping: unknown host ya.ru
16:41:56
$ping 192.168.15.4
PING 192.168.15.4 (192.168.15.4) 56(84) bytes of data.
64 bytes from 192.168.15.4: icmp_seq=1 ttl=64 time=4.55 ms
64 bytes from 192.168.15.4: icmp_seq=2 ttl=64 time=0.138 ms
^C
--- 192.168.15.4 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1004ms
rtt min/avg/max/mdev = 0.138/2.344/4.550/2.206 ms
16:42:05
$ping 89.252.8.2
connect: Network is unreachable
16:42:12
$netstat -rn
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
192.168.15.0    0.0.0.0         255.255.255.0   U         0 0          0 eth0
169.254.0.0     0.0.0.0         255.255.0.0     U         0 0          0 peth0
16:42:17
$su -
Пароль:
16:42:37
#route add default gw 192.168.15.254

16:43:00
#xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0  7911     2     r-----     26.8
16:45:21
#xm --help
Usage: xm <subcommand> [args]
Control, list, and manipulate Xen guest instances.
xm full list of subcommands:
 console              Attach to <Domain>'s console.
 create               Create a domain based on <ConfigFile>.
 new                  Adds a domain to Xend domain management
 delete               Remove a domain from Xend domain management.
 destroy              Terminate a domain immediately.
 domid                Convert a domain name to domain id.
 domname              Convert a domain id to domain name.
...
 resources            Show info for each labeled resource.
 dumppolicy           Print hypervisor ACM state information.
 setpolicy            Set the policy of the system.
 resetpolicy          Set the policy of the system to the default
                      policy.
 getpolicy            Get the policy of the system.
 shell                Launch an interactive shell.
<Domain> can either be the Domain Name or Id.
For more help on 'xm' see the xm(1) man page.
For more help on 'xm create' see the xmdomain.cfg(5)  man page.
16:45:30
#xm create linux1
Using config file "/etc/xen/linux1".
Started domain linux1
16:46:26
#xm create -c linux1
Using config file "/etc/xen/linux1".
Error: Domain 'linux1' already exists with ID '1'
16:46:49
#xm destroy linux1

16:46:57
#xm destroy linux1
Error: Domain 'linux1' does not exist.
16:46:58
#xm create -c linux1
Using config file "/etc/xen/linux1".
Started domain linux1
[    0.004000]       .init : 0xc038f000 - 0xc03c0000   ( 196 kB)
[    0.004000]       .data : 0xc02cd5f3 - 0xc03868a0   ( 740 kB)
[    0.004000]       .text : 0xc0100000 - 0xc02cd5f3   (1845 kB)
[    0.004000] Checking if this processor honours the WP bit even in supervisor mode...Ok.
[    0.916061] Calibrating delay using timer specific routine.. 4659.45 BogoMIPS (lpj=9318914)
[    0.916091] Security Framework initialized
[    0.916098] SELinux:  Disabled at boot.
[    0.916103] Capability LSM initialized
...
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
linux1:~# ifconfig
linux1:~# ifconfig -a
lo        Link encap:Local Loopback
          LOOPBACK  MTU:16436  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
/dev/pts/7
16:50:04
$ssh root@192.168.15.10
root@192.168.15.10's password:
Linux linux10 2.6.26-2-xen-686 #1 SMP Tue Mar 9 20:11:42 UTC 2010 i686
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Wed Mar 24 17:31:19 2010 from linux5.local
l3-agent is already running: pid=3745; pidfile=/root/.lilalo/l3-agent.pid
16:50:25
#screen -x
/dev/pts/2
16:52:33
#nano /etc/xen/linux1
16:53:46
#nano /etc/xen/linux1
/dev/pts/9
16:56:21
$su -
Пароль:

Файлы

  • .bash_history
  • /boot/grub/menu.lst
  • /home/user/.bash_history
  • /root/.bash_history
  • .bash_history
    >
    fdisk /dev/sdb
    cfdisk /dev/sda
    fdisk /dev/sdb
    fdisk /dev/sdb
    cfdisk /dev/sda
    fdisk /dev/sda
    cfdisk /dev/sda
    partprobe
    umount /mnt
    resize2fs /dev/mapper/md0p1
    e2fsck -f /dev/mapper/md0p1
    resize2fs /dev/mapper/md0p1
    mdadm --stop /dev/md0
    kpartx -d /dev/md0
    mdadm --stop /dev/md0
    cat /proc/partitions
    pvcreate /dev/sda5
    pvdisplay
    vgcreate DATA /dev/sda5
    ping 193.35.25.107
    lvcreate -L 5GB -n lv1 DATA
    lvdisplay
    ls -l /dev/DATA/*
    mkfs.ext3 /dev/DATA/lv1
    lvs -a
    lvcreate -L 5GB -n lv1 DATA1
    lvcreate -L 5GB -n lv2 DATA
    mkfs.ext3 /dev/DATA/lv2
    lvs -a
    lvresize -L2GB /dev/DATA/lv2
    lvs -a
    lvresize -L5GB /dev/DATA/lv2
    mkfs.ext3 /dev/DATA/lv2
    lvresize -L2GB /dev/DATA/lv2
    lvresize -L6GB /dev/DATA/lv2
    mkdir /data
    mkdir /data/lv2
    mount /dev/DATA/lv2 /data/lv2
    df -ah
    resize2fs /dev/DATA/lv2
    df -ah
    ls
    file -s /dev/sda5
    vgdisplay
    pvdisplay
    df -ah
    mkfs.ext3 /dev/sdb5
    pvcreate /dev/sda5
    vgextend DATA /dev/sda5
    vgdisplay
    pvdisplay
    vgextend DATA /dev/sdb5
    pvcreate /dev/sdb5
    vgextend DATA /dev/sdb5
    pvdisplay
    vgreduce DATA /dev/sda5
    pvremove /dev/sda5
    pvdisplay
    vgreduce DATA /dev/sda6
    pvdisplay
    pvmove /dev/sda6
    vblade 1 1 eth0 /dev/DATA/lv3
    apt-cache search iscsi target
    apt-get install iscsitarget-source
    m-a a-i iscsitarget
    modprobe iscsi_trgt
    apt-get install iscsitarget
    cat /etc/default/iscsitarget
    nano /etc/default/iscsitarget
    dpkg -L iscsitarget
    vim /etc/ietd.conf
    vi /etc/ietd.conf
    /etc/init.d/iscsitarget restart
    apt-get install open-iscsi
    iscsiadm -m discovery -t st -p 127.0.0.1
    tail -n 30 /var/log/messages
    iscsiadm -m discovery -t st -p 192.168.15.3
    iscsiadm -m discovery -t st -p 192.168.15.1
    #iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux1.unix.nt  !!!! vkl vinta v iscsi
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.51.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    tail -n /var/log/messages
    tail -n 30 /var/log/messages
    ls /dev/sd*
    ls -l /dev/sd*
    ietadm --op show
    ietadm --op show --tid=1
    ietadm --op show --tid=1
    cat /proc/net/iet/session
    ls -l /dev/DATA/lv2
    nano /etc/ietd.conf
    /etc/init.d/iscsitarget restart
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    /etc/init.d/iscsitarget restart
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    cat /proc/net/iet/session
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux3.unix.nt -p 192.168.15.3 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --login
    locate lilalo | grep RE
    locate README | grep lilal
    locate README | grep lil
    ls
    ls -hal
    ls -l /dev/sd*
    tail -n 30 /var/log/messages
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux3.unix.nt -p 192.168.15.3 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --login
    ls -l /dev/sd*
    tail -n 30 /var/log/messages
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux1.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    tail -n 30 /var/log/messages
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --login
    tail -n 30 /var/log/messages
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    tail -n 20 /var/log/messages
    cat /proc/net/iet/session
    #!!!!!!!!!!!!!!!!!!!! snachalo discover, potom podklyuchenie!!!!!!!!!!!!!!
    #iscsiadm -m discovery -t st -p 192.168.15.10
    top
    apt-get install htop
    htop
    htop
    top
    l3-agent
    ssh reverse@89.252.8.2
    ssh reverse@89.252.8.2
    ping 89.252.8.2
    ssh reverse@89.252.8.2
    ssh reverse@89.252.0.102
    lvdisplay
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv3
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv2
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv1
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv3
    lvs -a
    mkdir /data/lv3-snap
    mount /dev/DATA/lv3-snap /data/lv3-snap/
    df -h /data/lv3-snap/
    cp -avp /bin/ /data/lv3
    lvs -a
    ls /data/lvs
    ls /data/lv3
    ls /data/lv3-snap/
    cp -avp /var/log/ /data/lv3
    lvs -a
    #lvcreate -L1G -n lv3-snap -s /dev/DATA/lv3 ---- sozdali snapshot
    ls /data/lv3-snap/
    dd if=/dev/zero of=/data/lv3/xxxx count=900 bs=1024k
    lvs -a
    dd if=/dev/zero of=/data/lv3/xxxx1 count=200 bs=1024k
    lvs -a
    # narushen snap-shot /\
    umount /data/lv3-snap
    lvremove /dev/DATA/lv3-snap
    lsv -a
    lvs -a
    pvdisplay
    pvdisplay --help
    pvdisplay --units M
    otp
    top
    df -h
    umount /data/lv3
    df -h
    # tushim gruppu
    vgchange -a n DATA
    lvdisplay
    ls /dev/DATA
    vgscan
    ls /dev/DATA
    vgdisplay
    lvdisplay
    apt-get install vblade
    apt-get install aoetools
    modprobe aoe
    aoe-discover
    aoe-stat
    fdisk -l /dev/etherd/
    fdisk -l /dev/etherd/e10.1
    LVDI
    lvdisplay
    lvs -a
    lvscan
    lvs -a
    lvchange
    lvchange -a y lv2
    lvchange -a y lv3
    lvchange --help
    vgdisplay
    vgscan
    lvchange -a y lv3
    mount /dev/etherd/e10.1 /mnt
    df -h
    cp -r /bin/ /mnt/
    ls /mnt/
    umount /mnt
    vgchange -a y DATA
    vblade 1 1 eth0 /dev/DATA/lv3
    aoe-discover
    aoe-stat
    vblade --help
    find /proc -name \*drop\*cache\*
    mount /dev/DATA/lv3
    mount /dev/DATA/lv3 /mnt/
    touch ggge
    touch /mnt/ggge
    touch /mnt/yyyyyy
    echo 3 > /proc/sys/vm/drop_caches
    ping ya.ru
    ping ya.ru
    mount
    umount /mnt
    mount
    #vblade-persist setup 10 1 eth0 /dev/DATA/lv3
    vblade-persist setup 1 1 eth0 /dev/DATA/lv3
    vblade-persist ls
    vblade-persist start
    vblade-persist start all
    vblade-persist ls
    vblade-persist stop all
    vblade-persist ls
    vblade-persist stop
    vblade-persist ls
    apt-get install bonnie++
    mount /dev/DATA/lv3 /mnt/
    cd /mnt/
    mkdir user
    bonnie++ -d /mnt/user -r 500 -u user
    ls user/
    ls -l
    chown user user
    bonnie++ -d /mnt/user -r 500 -u user
    umount /mnt
    cd /
    umount /mnt
    mkdir /mnt/user
    chown user /mnt/user/
    bonnie++ -d /mnt/user -r 500 -u user
    ls
    date
    ls /usr/src/
    exit
    ls
    apt-get install strace
    strace vipw
    apt-get install drbd
    apt-get install drbd8-utils drbd8-source
    m-a a-i drbd8
    modprobe drbd
    lsmod | grep drbd
    cat /proc/drbd
    uname -a
    modinfo drbd
    mount
    lvdisplay
    lvdisplay
    nano /etc/drbd.conf
    cp /etc/drbd.conf /etc/drbd.conf~
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    lvcreate -L 2GB -n drbdmeta DATA
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    drbdadm create-md r1
    /etc/init.d/drbd restart
    cat /proc/drbd
    cat /proc/drbd
    #drbdsetup /dev/drbd1 primary -o
    cat /proc/drbd
    lvcreate -L 5GB -n lv4 DATA
    lvs -a
    nano /etc/drbd.conf
    cat /proc/drbd
    nano /etc/drbd.conf
    scp /etc/drbd.conf 192.168.15.10:/etc/drbd.conf
    drbdadm adjust
    nano /etc/drbd.conf
    scp /etc/drbd.conf 192.168.15.10:/etc/drbd.conf
    drbdadm adjust
    drbdadm adjust r2
    drbdadm create-md res
    drbdadm create-md r2
    drbdadm adjust r2
    drbdadm create-md r1
    drbdadm adjust r2
    cat /proc/drbd
    /etc/init.d/drbd reload
    drbdadm create-md r2
    /etc/init.d/drbd reload
    cat /proc/drbd
    cat /proc/drbd
    cat /proc/drbd
    drbdsetup /dev/drbd2 primary -o
    cat /proc/drbd
    watch cat /proc/drbd
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    cat /proc/drbd
    drbdadm connect r1
    cat /proc/drbd
    drbdsetup /dev/drbd1 primary -o
    cat /proc/drbd
    mount /dev/drbd1 /mnt/
    df -ah
    ls -l /mnt/
    cp -r /var/log /mnt/
    ls -l /mnt/
    cp /etc/drbd.conf /mnt/
    ls
    ls /mnt/
    cat /proc/drbd
    mount
    nano /etc/drbd.conf
    cp /etc/resolv.conf /mnt/
    sync
    ls
    vipw
    rmmod aoe
    rmmod aoe
    rmmod aoe
    ps aux | gre aoe
    ps aux | grep aoe
    vblade-persist stop all
    vblade-persist stop all
    vblade-persist stop all
    vblade-persist
    vblade-persist stop all
    rmmod aoe
    rmmod aoe
    touch .hushlogin
    exit
    exit
    cat /proc/drbd
    nano /etc/drbd.conf
    ssh-key -t rsa
    ssh-keygen -t rsa
    ssh-keygen -t dsa
    cat .ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> ~/.ssh/autorized_keys'
    ssh 192.168.15.10
    ssh 192.168.15.10
    cat /root/.ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> ~/.ssh/autorized_keys'
    ssh 192.168.15.10
    ssh 192.168.15.10
    ssh 192.168.15.10
    /etc/init.d/drbd restart
    cat /proc/drbd
    exit
    ssh 192.168.15.10
    cat /root/.ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> /root/.ssh/autorized_keys'
    ssh 192.168.15.10
    ssh 192.168.15.10
    cat /root/.ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> /root/.ssh/authorized_keys'
    ssh 192.168.15.10
    touch .hushlogin
    alias node2='ssh 192.168.15.1'
    mount
    lvdisplay
    #drbdadm -- --discard-my-data connect r2   ---  pri split-brain ubit na odnom dannie
    apt-get install ocfs2-tools
    cp  /usr/share/doc/ocfs2-tools/examples/cluster.conf /etc/
    nano /etc/cluster.conf
    cp /etc/cluster.conf /etc/ocfs2/
    dpkg-reconfigure ocfs2-tools
    /etc/init.d/ocfs2 start
    nano /etc/init.d/ocfs2
    /etc/init.d/ocfs2 start
    # drbdadm primary all
    mkfs.ocfs2 /dev/drbd1
    mkdir -p /ocfs/vol{1,2}
    nano /etc/fstab
    nano /etc/init.d/ocfs2
    /etc/init.d/ocfs2 start
    mount
    ls /ocfs/vol1/
    df -ah
    cat node2:/tmp/bonnie >> /tmp/bonnie
    cat ssh 192.168.15.10:/tmp/bonnie >> /tmp/bonnie
    ssh 192.168.15.10:/tmp/bonnie
    scp 192.168.15.10:/tmp/bo* /tmp/
    less /tmp/bonnie
    vi /tmp/bonnie
    ls -l
    ls -lah
    dd if=/dev/zero of=/ocfs/vol2/test bs=1024k count=500
    apt-cache search trafs
    apt-get install netdiag
    trafshow
    trafshow
    watch df -ah
    ssh 193.35.25.2
    ssh reverse@193.35.25.2
    apt-cache search qemu
    apt-get install qemu
    ls /ocfs/vol2/
    ls -l /ocfs/vol2/
    ls -l
    qemu -hda disk.img -m 256 -cdrom /ocfs/vol2/knoppix51ua.iso -boot d
    cp disk.img /home/user/
    mv\ disk.img /home/user/
    mv\ disk.img /home/user/
    mv disk.img /home/user/
    chown user /home/user/disk.img
    apt-get install kqemu-source
    dd if=/dev/urandom of=/dev/null count=5 bs=1024k
    m-a a-i kqemu
    modprobe kqemu
    apt-get install kvm
    dd if=/dev/urandom of=/dev/null count=5 bs=1024k
    kq
    dd if=/dev/urandom of=/tmp/xxx count=5 bs=1024k
    dd if=/dev/zero of=/tmp/xxx count=5 bs=1024k
    dd if=/dev/zero of=/tmp/xxx count=500 bs=1024k
    dd if=/dev/zero of=/tmp/xxx count=500 bs=1024k
    lvdisplay
    pvdisplay
    dd if=/dev/zero of=/dev/sdb6 count=500 bs=1024k
    apt-get install bridge-utils
    brctl addbr br0
    brctl show
    ifconfig 192.168.16.1
    ifconfig br0 192.168.16.1
    ping 192.168.16.1
    vi /etc/qemu-ifup
    brctl show
    vi /etc/qemu-ifup
    brctl show
    chmod +x /etc/qemu-ifup
    chmod +x /etc/qemu-ifup
    brctl show
    ifconfig
    apt-cache search tcpd
    apt-cache search tcpdu
    apt-get install tcpdump
    tcpdump -vvvvv -i br0
    tcpdump -vvvvv -i tap0
    ifconfig tap0 up
    tcpdump -vvvvv -i tap0
    vi /etc/qemu-ifup
    vi /etc/qemu-ifup
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables -L
    iptables -t nat -A POSTROUTING -j MASQUERADE
    ping 193.35.25.2
    ssh 89.252.8.2
    ssh reverse@89.252.8.2
    ssh reverse@193.35.25.69
    apt-get install vlan
    vconfig add eth0 16
    ifconfig
    ifconfig -a
    brctl aadif br0 eth0.16
    brctl addif br0 eth0.16
    ifconfig -a
    ping 192.168.16.101
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.15.2
    lsmod 80
    lsmod
    ifconfig eth0.16 up
    ping 192.168.16.254
    ping 192.168.16.10.
    ping 192.168.16.10
    ping 192.168.16.2
    ping 192.168.16.3
    brctl show
    ifconfig
    lsmod
    ping 192.168.16.101
    ping 192.168.16.1
    ip route show
    ifconfig -a
    ping 192.168.16.102
    mii-tool
    ping 192.168.16.102
    lspci
    lspci
    apt-cache search xen
    apt-get install xen-linux-system-2.6.26-2-xen-686
    cat /boot/grub/menu.lst
    reboot
    
    /boot/grub/menu.lst
    >
    # menu.lst - See: grub(8), info grub, update-grub(8)
    #            grub-install(8), grub-floppy(8),
    #            grub-md5-crypt, /usr/share/doc/grub
    #            and /usr/share/doc/grub-legacy-doc/.
    ## default num
    # Set the default entry to the entry number NUM. Numbering starts from 0, and
    # the entry number 0 is the default if the command is not used.
    #
    # You can specify 'saved' instead of a number. In this case, the default entry
    # is the entry saved with the command 'savedefault'.
    # WARNING: If you are using dmraid do not change this entry to 'saved' or your
    # array will desync and will not let you boot your system.
    default         0
    ## timeout sec
    # Set a timeout, in SEC seconds, before automatically booting the default entry
    # (normally the first entry defined).
    timeout         5
    # Pretty colours
    color cyan/blue white/blue
    ## password ['--md5'] passwd
    # If used in the first section of a menu file, disable all interactive editing
    # control (menu entry editor and command-line)  and entries protected by the
    # command 'lock'
    # e.g. password topsecret
    #      password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
    # password topsecret
    #
    # examples
    #
    # title         Windows 95/98/NT/2000
    # root          (hd0,0)
    # makeactive
    # chainloader   +1
    #
    # title         Linux
    # root          (hd0,1)
    # kernel        /vmlinuz root=/dev/hda2 ro
    #
    #
    # Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST
    ### BEGIN AUTOMAGIC KERNELS LIST
    ## lines between the AUTOMAGIC KERNELS LIST markers will be modified
    ## by the debian update-grub script except for the default options below
    ## DO NOT UNCOMMENT THEM, Just edit them to your needs
    ## ## Start Default Options ##
    ## default kernel options
    ## default kernel options for automagic boot options
    ## If you want special options for specific kernels use kopt_x_y_z
    ## where x.y.z is kernel version. Minor versions can be omitted.
    ## e.g. kopt=root=/dev/hda1 ro
    ##      kopt_2_6_8=root=/dev/hdc1 ro
    ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
    # kopt=root=/dev/sda1 ro
    ## default grub root device
    ## e.g. groot=(hd0,0)
    # groot=(hd0,0)
    ## should update-grub create alternative automagic boot options
    ## e.g. alternative=true
    ##      alternative=false
    # alternative=true
    ## should update-grub lock alternative automagic boot options
    ## e.g. lockalternative=true
    ##      lockalternative=false
    # lockalternative=false
    ## additional options to use with the default boot option, but not with the
    ## alternatives
    ## e.g. defoptions=vga=791 resume=/dev/hda5
    # defoptions=quiet
    ## should update-grub lock old automagic boot options
    ## e.g. lockold=false
    ##      lockold=true
    # lockold=false
    ## Xen hypervisor options to use with the default Xen boot option
    # xenhopt=
    ## Xen Linux kernel options to use with the default Xen boot option
    # xenkopt=console=tty0
    ## altoption boot targets option
    ## multiple altoptions lines are allowed
    ## e.g. altoptions=(extra menu suffix) extra boot options
    ##      altoptions=(single-user) single
    # altoptions=(single-user mode) single
    ## controls how many kernels should be put into the menu.lst
    ## only counts the first occurence of a kernel, not the
    ## alternative kernel options
    ## e.g. howmany=all
    ##      howmany=7
    # howmany=all
    ## should update-grub create memtest86 boot option
    ## e.g. memtest86=true
    ##      memtest86=false
    # memtest86=true
    ## should update-grub adjust the value of the default booted system
    ## can be true or false
    # updatedefaultentry=false
    ## should update-grub add savedefault to the default options
    ## can be true or false
    # savedefault=false
    ## ## End Default Options ##
    title           Xen 3.2-1-i386 / Debian GNU/Linux, kernel 2.6.26-2-xen-686
    root            (hd0,0)
    kernel          /boot/xen-3.2-1-i386.gz
    module          /boot/vmlinuz-2.6.26-2-xen-686 root=/dev/sda1 ro console=tty0
    module          /boot/initrd.img-2.6.26-2-xen-686
    title           Debian GNU/Linux, kernel 2.6.26-2-xen-686
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.26-2-xen-686 root=/dev/sda1 ro quiet
    initrd          /boot/initrd.img-2.6.26-2-xen-686
    title           Debian GNU/Linux, kernel 2.6.26-2-xen-686 (single-user mode)
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.26-2-xen-686 root=/dev/sda1 ro single
    initrd          /boot/initrd.img-2.6.26-2-xen-686
    title           Debian GNU/Linux, kernel 2.6.26-2-686
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro quiet
    initrd          /boot/initrd.img-2.6.26-2-686
    title           Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
    root            (hd0,0)
    kernel          /boot/vmlinuz-2.6.26-2-686 root=/dev/sda1 ro single
    initrd          /boot/initrd.img-2.6.26-2-686
    ### END DEBIAN AUTOMAGIC KERNELS LIST
    # This is a divider, added to separate the menu items below from the Debian
    # ones.
    title           Other operating systems:
    root
    # This entry automatically added by the Debian installer for a non-linux OS
    # on /dev/sdb1
    title           Microsoft Windows XP Professional
    root            (hd1,0)
    savedefault
    makeactive
    map             (hd0) (hd1)
    map             (hd1) (hd0)
    chainloader     +1
    
    /home/user/.bash_history
    >
    apt-get install locales
    dpkg-reconfigure locales
    date
    LANG=C date
    dpkg-reconfigure tzdata
    TZ=Europe/Berlin date
    date
    apt-get install build-essential
    cd /tmp/
    wget http://xgu.ru/lilalo/install
    nano install
    sh install
    cat /home/user/.bash
    cat /home/user/.bashrc
    nano /home/user/.bashrc
    nano /root/.bashrc
    nano /home/user/.bashrc
    ls -la  /home/user/.bashrc
    date
    who
    nano /home/user/.bashrc
    cd /tmp/
    nano install
    sh install
    l3-agent
    killall l3-agent
    l3-agent
    date
    pkill -1 l3-agent
    w
    nano /root/.bashrc
    w
    date
    ls
    nano /root/.bashrc
    w
    nano /root/.bashrc
    nano /root/.bash_profile
    nano ~/.bash_profile
    ls
    ssh 89.252.8.2
    ssh reverse@89.252.8.2
    l3-agent
    ls
    lvs
    lvcreate -n lv3 -L 4GB DATA
    mkfs.ext3 -L LV3 /dev/mapper/DATA-lv3
    mkdir /data/lv3
    mount LABEL=LV3 /data/lv3
    df -ah
    lvresize --help
    man mknod
    mknod
    apt-get install e2tools
    e2cp --help
    df -h
    fdisk /dev/sda
    kpartx -a
    kpartx -a /dev/sda
    fdisk /dev/sda
    ls -l /dev/sda*
    mkfs.ext3 /dev/sda6
    pvcreate /dev/sda6
    vgextend DATA /dev/sda6
    vgdisplay
    # dobavili vint k gruppe
    mount
    dd if=/dev/zero of=/data/lv3/gggg count=1000 bs=1024k
    pvdisplay
    # pusto na sda6
    pvmove /dev/sda5
    vgreduce DATA /dev/sda5
    vgremove /dev/sda5
    vgdisplay
    pvdisplay
    pvremove /dev/sda5
    pvdisplay
    
    /root/.bash_history
    >
    fdisk /dev/sdb
    cfdisk /dev/sda
    fdisk /dev/sdb
    fdisk /dev/sdb
    cfdisk /dev/sda
    fdisk /dev/sda
    cfdisk /dev/sda
    partprobe
    umount /mnt
    resize2fs /dev/mapper/md0p1
    e2fsck -f /dev/mapper/md0p1
    resize2fs /dev/mapper/md0p1
    mdadm --stop /dev/md0
    kpartx -d /dev/md0
    mdadm --stop /dev/md0
    cat /proc/partitions
    pvcreate /dev/sda5
    pvdisplay
    vgcreate DATA /dev/sda5
    ping 193.35.25.107
    lvcreate -L 5GB -n lv1 DATA
    lvdisplay
    ls -l /dev/DATA/*
    mkfs.ext3 /dev/DATA/lv1
    lvs -a
    lvcreate -L 5GB -n lv1 DATA1
    lvcreate -L 5GB -n lv2 DATA
    mkfs.ext3 /dev/DATA/lv2
    lvs -a
    lvresize -L2GB /dev/DATA/lv2
    lvs -a
    lvresize -L5GB /dev/DATA/lv2
    mkfs.ext3 /dev/DATA/lv2
    lvresize -L2GB /dev/DATA/lv2
    lvresize -L6GB /dev/DATA/lv2
    mkdir /data
    mkdir /data/lv2
    mount /dev/DATA/lv2 /data/lv2
    df -ah
    resize2fs /dev/DATA/lv2
    df -ah
    ls
    file -s /dev/sda5
    vgdisplay
    pvdisplay
    df -ah
    mkfs.ext3 /dev/sdb5
    pvcreate /dev/sda5
    vgextend DATA /dev/sda5
    vgdisplay
    pvdisplay
    vgextend DATA /dev/sdb5
    pvcreate /dev/sdb5
    vgextend DATA /dev/sdb5
    pvdisplay
    vgreduce DATA /dev/sda5
    pvremove /dev/sda5
    pvdisplay
    vgreduce DATA /dev/sda6
    pvdisplay
    pvmove /dev/sda6
    vblade 1 1 eth0 /dev/DATA/lv3
    apt-cache search iscsi target
    apt-get install iscsitarget-source
    m-a a-i iscsitarget
    modprobe iscsi_trgt
    apt-get install iscsitarget
    cat /etc/default/iscsitarget
    nano /etc/default/iscsitarget
    dpkg -L iscsitarget
    vim /etc/ietd.conf
    vi /etc/ietd.conf
    /etc/init.d/iscsitarget restart
    apt-get install open-iscsi
    iscsiadm -m discovery -t st -p 127.0.0.1
    tail -n 30 /var/log/messages
    iscsiadm -m discovery -t st -p 192.168.15.3
    iscsiadm -m discovery -t st -p 192.168.15.1
    #iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux1.unix.nt  !!!! vkl vinta v iscsi
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.51.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    tail -n /var/log/messages
    tail -n 30 /var/log/messages
    ls /dev/sd*
    ls -l /dev/sd*
    ietadm --op show
    ietadm --op show --tid=1
    ietadm --op show --tid=1
    cat /proc/net/iet/session
    ls -l /dev/DATA/lv2
    nano /etc/ietd.conf
    /etc/init.d/iscsitarget restart
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    /etc/init.d/iscsitarget restart
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    cat /proc/net/iet/session
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux3.unix.nt -p 192.168.15.3 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --login
    locate lilalo | grep RE
    locate README | grep lilal
    locate README | grep lil
    ls
    ls -hal
    ls -l /dev/sd*
    tail -n 30 /var/log/messages
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux3.unix.nt -p 192.168.15.3 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --login
    ls -l /dev/sd*
    tail -n 30 /var/log/messages
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux1.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.3 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    tail -n 30 /var/log/messages
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux3.unix.nt -p 192.168.15.3 --login
    tail -n 30 /var/log/messages
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --logout
    iscsiadm -m discovery -t st -p 192.168.15.10
    iscsiadm -m node -T iqn.2001-04.com.example:storage1.linux10.unix.nt -p 192.168.15.10 --login
    iscsiadm -m node -T iqn.2001-04.com.example:storage2.linux10.unix.nt -p 192.168.15.10 --login
    tail -n 20 /var/log/messages
    cat /proc/net/iet/session
    #!!!!!!!!!!!!!!!!!!!! snachalo discover, potom podklyuchenie!!!!!!!!!!!!!!
    #iscsiadm -m discovery -t st -p 192.168.15.10
    top
    apt-get install htop
    htop
    htop
    top
    l3-agent
    ssh reverse@89.252.8.2
    ssh reverse@89.252.8.2
    ping 89.252.8.2
    ssh reverse@89.252.8.2
    ssh reverse@89.252.0.102
    lvdisplay
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv3
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv2
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv1
    lvcreate -L1G -n lv3-snap -s /dev/DATA/lv3
    lvs -a
    mkdir /data/lv3-snap
    mount /dev/DATA/lv3-snap /data/lv3-snap/
    df -h /data/lv3-snap/
    cp -avp /bin/ /data/lv3
    lvs -a
    ls /data/lvs
    ls /data/lv3
    ls /data/lv3-snap/
    cp -avp /var/log/ /data/lv3
    lvs -a
    #lvcreate -L1G -n lv3-snap -s /dev/DATA/lv3 ---- sozdali snapshot
    ls /data/lv3-snap/
    dd if=/dev/zero of=/data/lv3/xxxx count=900 bs=1024k
    lvs -a
    dd if=/dev/zero of=/data/lv3/xxxx1 count=200 bs=1024k
    lvs -a
    # narushen snap-shot /\
    umount /data/lv3-snap
    lvremove /dev/DATA/lv3-snap
    lsv -a
    lvs -a
    pvdisplay
    pvdisplay --help
    pvdisplay --units M
    otp
    top
    df -h
    umount /data/lv3
    df -h
    # tushim gruppu
    vgchange -a n DATA
    lvdisplay
    ls /dev/DATA
    vgscan
    ls /dev/DATA
    vgdisplay
    lvdisplay
    apt-get install vblade
    apt-get install aoetools
    modprobe aoe
    aoe-discover
    aoe-stat
    fdisk -l /dev/etherd/
    fdisk -l /dev/etherd/e10.1
    LVDI
    lvdisplay
    lvs -a
    lvscan
    lvs -a
    lvchange
    lvchange -a y lv2
    lvchange -a y lv3
    lvchange --help
    vgdisplay
    vgscan
    lvchange -a y lv3
    mount /dev/etherd/e10.1 /mnt
    df -h
    cp -r /bin/ /mnt/
    ls /mnt/
    umount /mnt
    vgchange -a y DATA
    vblade 1 1 eth0 /dev/DATA/lv3
    aoe-discover
    aoe-stat
    vblade --help
    find /proc -name \*drop\*cache\*
    mount /dev/DATA/lv3
    mount /dev/DATA/lv3 /mnt/
    touch ggge
    touch /mnt/ggge
    touch /mnt/yyyyyy
    echo 3 > /proc/sys/vm/drop_caches
    ping ya.ru
    ping ya.ru
    mount
    umount /mnt
    mount
    #vblade-persist setup 10 1 eth0 /dev/DATA/lv3
    vblade-persist setup 1 1 eth0 /dev/DATA/lv3
    vblade-persist ls
    vblade-persist start
    vblade-persist start all
    vblade-persist ls
    vblade-persist stop all
    vblade-persist ls
    vblade-persist stop
    vblade-persist ls
    apt-get install bonnie++
    mount /dev/DATA/lv3 /mnt/
    cd /mnt/
    mkdir user
    bonnie++ -d /mnt/user -r 500 -u user
    ls user/
    ls -l
    chown user user
    bonnie++ -d /mnt/user -r 500 -u user
    umount /mnt
    cd /
    umount /mnt
    mkdir /mnt/user
    chown user /mnt/user/
    bonnie++ -d /mnt/user -r 500 -u user
    ls
    date
    ls /usr/src/
    exit
    ls
    apt-get install strace
    strace vipw
    apt-get install drbd
    apt-get install drbd8-utils drbd8-source
    m-a a-i drbd8
    modprobe drbd
    lsmod | grep drbd
    cat /proc/drbd
    uname -a
    modinfo drbd
    mount
    lvdisplay
    lvdisplay
    nano /etc/drbd.conf
    cp /etc/drbd.conf /etc/drbd.conf~
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    lvcreate -L 2GB -n drbdmeta DATA
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    drbdadm create-md r1
    /etc/init.d/drbd restart
    cat /proc/drbd
    cat /proc/drbd
    #drbdsetup /dev/drbd1 primary -o
    cat /proc/drbd
    lvcreate -L 5GB -n lv4 DATA
    lvs -a
    nano /etc/drbd.conf
    cat /proc/drbd
    nano /etc/drbd.conf
    scp /etc/drbd.conf 192.168.15.10:/etc/drbd.conf
    drbdadm adjust
    nano /etc/drbd.conf
    scp /etc/drbd.conf 192.168.15.10:/etc/drbd.conf
    drbdadm adjust
    drbdadm adjust r2
    drbdadm create-md res
    drbdadm create-md r2
    drbdadm adjust r2
    drbdadm create-md r1
    drbdadm adjust r2
    cat /proc/drbd
    /etc/init.d/drbd reload
    drbdadm create-md r2
    /etc/init.d/drbd reload
    cat /proc/drbd
    cat /proc/drbd
    cat /proc/drbd
    drbdsetup /dev/drbd2 primary -o
    cat /proc/drbd
    watch cat /proc/drbd
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    nano /etc/drbd.conf
    cat /proc/drbd
    drbdadm connect r1
    cat /proc/drbd
    drbdsetup /dev/drbd1 primary -o
    cat /proc/drbd
    mount /dev/drbd1 /mnt/
    df -ah
    ls -l /mnt/
    cp -r /var/log /mnt/
    ls -l /mnt/
    cp /etc/drbd.conf /mnt/
    ls
    ls /mnt/
    cat /proc/drbd
    mount
    nano /etc/drbd.conf
    cp /etc/resolv.conf /mnt/
    sync
    ls
    vipw
    rmmod aoe
    rmmod aoe
    rmmod aoe
    ps aux | gre aoe
    ps aux | grep aoe
    vblade-persist stop all
    vblade-persist stop all
    vblade-persist stop all
    vblade-persist
    vblade-persist stop all
    rmmod aoe
    rmmod aoe
    touch .hushlogin
    exit
    exit
    cat /proc/drbd
    nano /etc/drbd.conf
    ssh-key -t rsa
    ssh-keygen -t rsa
    ssh-keygen -t dsa
    cat .ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> ~/.ssh/autorized_keys'
    ssh 192.168.15.10
    ssh 192.168.15.10
    cat /root/.ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> ~/.ssh/autorized_keys'
    ssh 192.168.15.10
    ssh 192.168.15.10
    ssh 192.168.15.10
    /etc/init.d/drbd restart
    cat /proc/drbd
    exit
    ssh 192.168.15.10
    cat /root/.ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> /root/.ssh/autorized_keys'
    ssh 192.168.15.10
    ssh 192.168.15.10
    cat /root/.ssh/id_dsa.pub | ssh 192.168.15.10 'cat >> /root/.ssh/authorized_keys'
    ssh 192.168.15.10
    touch .hushlogin
    alias node2='ssh 192.168.15.1'
    mount
    lvdisplay
    #drbdadm -- --discard-my-data connect r2   ---  pri split-brain ubit na odnom dannie
    apt-get install ocfs2-tools
    cp  /usr/share/doc/ocfs2-tools/examples/cluster.conf /etc/
    nano /etc/cluster.conf
    cp /etc/cluster.conf /etc/ocfs2/
    dpkg-reconfigure ocfs2-tools
    /etc/init.d/ocfs2 start
    nano /etc/init.d/ocfs2
    /etc/init.d/ocfs2 start
    # drbdadm primary all
    mkfs.ocfs2 /dev/drbd1
    mkdir -p /ocfs/vol{1,2}
    nano /etc/fstab
    nano /etc/init.d/ocfs2
    /etc/init.d/ocfs2 start
    mount
    ls /ocfs/vol1/
    df -ah
    cat node2:/tmp/bonnie >> /tmp/bonnie
    cat ssh 192.168.15.10:/tmp/bonnie >> /tmp/bonnie
    ssh 192.168.15.10:/tmp/bonnie
    scp 192.168.15.10:/tmp/bo* /tmp/
    less /tmp/bonnie
    vi /tmp/bonnie
    ls -l
    ls -lah
    dd if=/dev/zero of=/ocfs/vol2/test bs=1024k count=500
    apt-cache search trafs
    apt-get install netdiag
    trafshow
    trafshow
    watch df -ah
    ssh 193.35.25.2
    ssh reverse@193.35.25.2
    apt-cache search qemu
    apt-get install qemu
    ls /ocfs/vol2/
    ls -l /ocfs/vol2/
    ls -l
    qemu -hda disk.img -m 256 -cdrom /ocfs/vol2/knoppix51ua.iso -boot d
    cp disk.img /home/user/
    mv\ disk.img /home/user/
    mv\ disk.img /home/user/
    mv disk.img /home/user/
    chown user /home/user/disk.img
    apt-get install kqemu-source
    dd if=/dev/urandom of=/dev/null count=5 bs=1024k
    m-a a-i kqemu
    modprobe kqemu
    apt-get install kvm
    dd if=/dev/urandom of=/dev/null count=5 bs=1024k
    kq
    dd if=/dev/urandom of=/tmp/xxx count=5 bs=1024k
    dd if=/dev/zero of=/tmp/xxx count=5 bs=1024k
    dd if=/dev/zero of=/tmp/xxx count=500 bs=1024k
    dd if=/dev/zero of=/tmp/xxx count=500 bs=1024k
    lvdisplay
    pvdisplay
    dd if=/dev/zero of=/dev/sdb6 count=500 bs=1024k
    apt-get install bridge-utils
    brctl addbr br0
    brctl show
    ifconfig 192.168.16.1
    ifconfig br0 192.168.16.1
    ping 192.168.16.1
    vi /etc/qemu-ifup
    brctl show
    vi /etc/qemu-ifup
    brctl show
    chmod +x /etc/qemu-ifup
    chmod +x /etc/qemu-ifup
    brctl show
    ifconfig
    apt-cache search tcpd
    apt-cache search tcpdu
    apt-get install tcpdump
    tcpdump -vvvvv -i br0
    tcpdump -vvvvv -i tap0
    ifconfig tap0 up
    tcpdump -vvvvv -i tap0
    vi /etc/qemu-ifup
    vi /etc/qemu-ifup
    echo 1 > /proc/sys/net/ipv4/ip_forward
    iptables -L
    iptables -t nat -A POSTROUTING -j MASQUERADE
    ping 193.35.25.2
    ssh 89.252.8.2
    ssh reverse@89.252.8.2
    ssh reverse@193.35.25.69
    apt-get install vlan
    vconfig add eth0 16
    ifconfig
    ifconfig -a
    brctl aadif br0 eth0.16
    brctl addif br0 eth0.16
    ifconfig -a
    ping 192.168.16.101
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.16.254
    ping 192.168.15.2
    lsmod 80
    lsmod
    ifconfig eth0.16 up
    ping 192.168.16.254
    ping 192.168.16.10.
    ping 192.168.16.10
    ping 192.168.16.2
    ping 192.168.16.3
    brctl show
    ifconfig
    lsmod
    ping 192.168.16.101
    ping 192.168.16.1
    ip route show
    ifconfig -a
    ping 192.168.16.102
    mii-tool
    ping 192.168.16.102
    lspci
    lspci
    apt-cache search xen
    apt-get install xen-linux-system-2.6.26-2-xen-686
    cat /boot/grub/menu.lst
    reboot
    

    Статистика

    Время первой команды журнала15:04:39 2010- 3-24
    Время последней команды журнала16:56:21 2010- 3-24
    Количество командных строк в журнале101
    Процент команд с ненулевым кодом завершения, %19.80
    Процент синтаксически неверно набранных команд, % 1.98
    Суммарное время работы с терминалом *, час 1.86
    Количество командных строк в единицу времени, команда/мин 0.90
    Частота использования команд
    xm13|============| 12.62%
    ping13|============| 12.62%
    nano7|======| 6.80%
    ssh6|=====| 5.83%
    screen5|====| 4.85%
    umount5|====| 4.85%
    cat5|====| 4.85%
    mount4|===| 3.88%
    su4|===| 3.88%
    ifconfig3|==| 2.91%
    ls3|==| 2.91%
    lsp2|=| 1.94%
    apt-get2|=| 1.94%
    grub2|=| 1.94%
    l3-agent2|=| 1.94%
    lspci2|=| 1.94%
    mx2|=| 1.94%
    lvcreate2|=| 1.94%
    brctl1|| 0.97%
    #cat1|| 0.97%
    mkfs.ext31|| 0.97%
    #1|| 0.97%
    reboot1|| 0.97%
    mou1|| 0.97%
    domU:1|| 0.97%
    #sed1|| 0.97%
    netstat1|| 0.97%
    kernel1|| 0.97%
    -s1|| 0.97%
    sudo1|| 0.97%
    vifN.01|| 0.97%
    route1|| 0.97%
    chroot1|| 0.97%
    /etc/init.d/xend1|| 0.97%
    #apt-get1|| 0.97%
    vgdisplay1|| 0.97%
    exit1|| 0.97%
    apt-cache1|| 0.97%
    debootstrap1|| 0.97%
    ____
    *) Интервалы неактивности длительностью 30 минут и более не учитываются

    Справка

    Для того чтобы использовать LiLaLo, не нужно знать ничего особенного: всё происходит само собой. Однако, чтобы ведение и последующее использование журналов было как можно более эффективным, желательно иметь в виду следующее:
    1. В журнал автоматически попадают все команды, данные в любом терминале системы.

    2. Для того чтобы убедиться, что журнал на текущем терминале ведётся, и команды записываются, дайте команду w. В поле WHAT, соответствующем текущему терминалу, должна быть указана программа script.

    3. Команды, при наборе которых были допущены синтаксические ошибки, выводятся перечёркнутым текстом:
      $ l s-l
      bash: l: command not found
      

    4. Если код завершения команды равен нулю, команда была выполнена без ошибок. Команды, код завершения которых отличен от нуля, выделяются цветом.
      $ test 5 -lt 4
      Обратите внимание на то, что код завершения команды может быть отличен от нуля не только в тех случаях, когда команда была выполнена с ошибкой. Многие команды используют код завершения, например, для того чтобы показать результаты проверки

    5. Команды, ход выполнения которых был прерван пользователем, выделяются цветом.
      $ find / -name abc
      find: /home/devi-orig/.gnome2: Keine Berechtigung
      find: /home/devi-orig/.gnome2_private: Keine Berechtigung
      find: /home/devi-orig/.nautilus/metafiles: Keine Berechtigung
      find: /home/devi-orig/.metacity: Keine Berechtigung
      find: /home/devi-orig/.inkscape: Keine Berechtigung
      ^C
      

    6. Команды, выполненные с привилегиями суперпользователя, выделяются слева красной чертой.
      # id
      uid=0(root) gid=0(root) Gruppen=0(root)
      

    7. Изменения, внесённые в текстовый файл с помощью редактора, запоминаются и показываются в журнале в формате ed. Строки, начинающиеся символом "<", удалены, а строки, начинающиеся символом ">" -- добавлены.
      $ vi ~/.bashrc
      2a3,5
      >    if [ -f /usr/local/etc/bash_completion ]; then
      >         . /usr/local/etc/bash_completion
      >        fi
      

    8. Для того чтобы изменить файл в соответствии с показанными в диффшоте изменениями, можно воспользоваться командой patch. Нужно скопировать изменения, запустить программу patch, указав в качестве её аргумента файл, к которому применяются изменения, и всавить скопированный текст:
      $ patch ~/.bashrc
      В данном случае изменения применяются к файлу ~/.bashrc

    9. Для того чтобы получить краткую справочную информацию о команде, нужно подвести к ней мышь. Во всплывающей подсказке появится краткое описание команды.

      Если справочная информация о команде есть, команда выделяется голубым фоном, например: vi. Если справочная информация отсутствует, команда выделяется розовым фоном, например: notepad.exe. Справочная информация может отсутствовать в том случае, если (1) команда введена неверно; (2) если распознавание команды LiLaLo выполнено неверно; (3) если информация о команде неизвестна LiLaLo. Последнее возможно для редких команд.

    10. Большие, в особенности многострочные, всплывающие подсказки лучше всего показываются браузерами KDE Konqueror, Apple Safari и Microsoft Internet Explorer. В браузерах Mozilla и Firefox они отображаются не полностью, а вместо перевода строки выводится специальный символ.

    11. Время ввода команды, показанное в журнале, соответствует времени начала ввода командной строки, которое равно тому моменту, когда на терминале появилось приглашение интерпретатора

    12. Имя терминала, на котором была введена команда, показано в специальном блоке. Этот блок показывается только в том случае, если терминал текущей команды отличается от терминала предыдущей.

    13. Вывод не интересующих вас в настоящий момент элементов журнала, таких как время, имя терминала и других, можно отключить. Для этого нужно воспользоваться формой управления журналом вверху страницы.

    14. Небольшие комментарии к командам можно вставлять прямо из командной строки. Комментарий вводится прямо в командную строку, после символов #^ или #v. Символы ^ и v показывают направление выбора команды, к которой относится комментарий: ^ - к предыдущей, v - к следующей. Например, если в командной строке было введено:

      $ whoami
      
      user
      
      $ #^ Интересно, кто я?
      
      в журнале это будет выглядеть так:
      $ whoami
      
      user
      
      Интересно, кто я?

    15. Если комментарий содержит несколько строк, его можно вставить в журнал следующим образом:

      $ whoami
      
      user
      
      $ cat > /dev/null #^ Интересно, кто я?
      
      Программа whoami выводит имя пользователя, под которым 
      мы зарегистрировались в системе.
      -
      Она не может ответить на вопрос о нашем назначении 
      в этом мире.
      
      В журнале это будет выглядеть так:
      $ whoami
      user
      
      Интересно, кто я?
      Программа whoami выводит имя пользователя, под которым
      мы зарегистрировались в системе.

      Она не может ответить на вопрос о нашем назначении
      в этом мире.
      Для разделения нескольких абзацев между собой используйте символ "-", один в строке.

    16. Комментарии, не относящиеся непосредственно ни к какой из команд, добавляются точно таким же способом, только вместо симолов #^ или #v нужно использовать символы #=

    17. Содержимое файла может быть показано в журнале. Для этого его нужно вывести с помощью программы cat. Если вывод команды отметить симоволами #!, содержимое файла будет показано в журнале в специально отведённой для этого секции.
    18. Для того чтобы вставить скриншот интересующего вас окна в журнал, нужно воспользоваться командой l3shot. После того как команда вызвана, нужно с помощью мыши выбрать окно, которое должно быть в журнале.
    19. Команды в журнале расположены в хронологическом порядке. Если две команды давались одна за другой, но на разных терминалах, в журнале они будут рядом, даже если они не имеют друг к другу никакого отношения.
      1
          2
      3   
          4
      
      Группы команд, выполненных на разных терминалах, разделяются специальной линией. Под этой линией в правом углу показано имя терминала, на котором выполнялись команды. Для того чтобы посмотреть команды только одного сенса, нужно щёкнуть по этому названию.

    О программе

    LiLaLo (L3) расшифровывается как Live Lab Log.
    Программа разработана для повышения эффективности обучения Unix/Linux-системам.
    (c) Игорь Чубин, 2004-2008

    $Id$