tail /var/log/proftpd/proftpd.log /var/log/proftpd/xfer.log -f | grep --line-buffered "192.168.0.1\|192.168.0.5" | sed -u -e 's/192.168.0.5/Petya/g'
tail /var/log/proftpd/proftpd.log /var/log/proftpd/xfer.log -f | grep "192.168.0.1\|192.168.0.5" | sed 's/192.168.0.1/Vasya/g' | sed 's/192.168.0.5/Petya/g'
# tgt-admin -s
.Target 1: iqn.2018-06.pz:fast
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 1
Initiator: iqn.1993-08.org.debian:01:6b28041b594 alias: n0
Connection: 0
IP Address: 127.0.0.1
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00010000
SCSI SN: beaf10
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: null
Backing store path: None
Backing store flags:
Account information:
ACL information:
ALL
Target 2: iqn.2018-06.pz:slow
System information:
Driver: iscsi
State: ready
I_T nexus information:
I_T nexus: 2
Initiator: iqn.1993-08.org.debian:01:6b28041b594 alias: n0
Connection: 0
IP Address: 127.0.0.1
LUN information:
LUN: 0
Type: controller
SCSI ID: IET 00020000
SCSI SN: beaf20
Size: 0 MB, Block size: 1
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: null
Backing store path: None
Backing store flags:
LUN: 1
Type: disk
SCSI ID: IET 00020001
SCSI SN: beaf21
Size: 863023 MB, Block size: 512
Online: Yes
Removable media: No
Prevent removal: No
Readonly: No
SWP: No
Thin-provisioning: No
Backing store type: rdwr
Backing store path: /dev/md0p4
Backing store flags:
Account information:
ACL information:
ALL
# tgtadm --lld iscsi --op new --mode logicalunit --tid 1 --lun 1 -b /dev/bcache0