ц
Size: a a a
ц
ц
ц
ц
ц
ц
ц
services.tgtd = {и вот что говорит
enable = true;
targets = [
{
iqn = "iqn.2020-06.pxe:ROOT";
stores = [
{
path = "/dev/sdb";
lun = 1;
}
];
}
];
};
tgt-admin -s
[nix-shell:~]$ sudo tgt-admin -s
Target 1: iqn.2020-06.pxe:ROOT
System information:
Driver: iscsi
State: ready
I_T nexus information:
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
iscsiadm -m node -l
ругается - no records found
ц
ц
ц
ц
H
-- Reboot --
июл 01 11:08:59 nixos systemd[1]: Starting iSCSI target framework daemon...
июл 01 11:08:59 nixos tgtd[968]: tgtd: work_timer_start(146) use timer_fd based scheduler
июл 01 11:08:59 nixos tgtd[968]: tgtd: bs_init(387) use signalfd notification
июл 01 11:08:59 nixos tgtd[968]: tgtd: device_mgmt(246) sz:14 params:path=/dev/sdb
июл 01 11:08:59 nixos tgtd[968]: tgtd: bs_thread_open(409) 16
июл 01 11:08:59 nixos systemd[1]: Started iSCSI target framework daemon.
-- Reboot --
июл 01 11:36:22 nixos systemd[1]: Starting iSCSI target framework daemon...
июл 01 11:36:22 nixos tgtd[963]: tgtd: work_timer_start(146) use timer_fd based scheduler
июл 01 11:36:22 nixos tgtd[963]: tgtd: bs_init(387) use signalfd notification
июл 01 11:36:22 nixos systemd[1]: Started iSCSI target framework daemon.
июл 01 14:17:46 nixos systemd[1]: Reloading iSCSI target framework daemon.
июл 01 14:17:46 nixos systemd[1]: Reloaded iSCSI target framework daemon.
июл 01 15:38:51 nixos systemd[1]: Reloading iSCSI target framework daemon.
июл 01 15:38:51 nixos systemd[1]: Reloaded iSCSI target framework daemon.
июл 01 15:39:09 nixos systemd[1]: Stopping iSCSI target framework daemon...
июл 01 15:39:10 nixos systemd[1]: tgtd.service: Succeeded.
ц