iscsi no disk

Issues related to applications and software problems and general support
Post Reply
Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

iscsi no disk

Post by Blisk » 2022/05/17 22:08:37

I am trying to connect to my NAS via iscsi. on nas is already configured and I used it.
But now I have installed new centos8 server and when I do this there is no sdb1
why there is no sdb?
I have restarted both services iscsi and iscsid
iscsiadm -m node --login
Logging in to [iface: default, target: iqn.2019-10.world.srv:dlp.target01, portal: 10.0.0.30,3260] (multiple)
Login to [iface: default, target: iqn.2019-10.world.srv:dlp.target01, portal: 10.0.0.30,3260] successful.

iscsiadm -m session -o show
tcp: [1] 10.0.0.30:3260,1 iqn.2019-10.world.srv:dlp.target01 (non-flash)

cat /proc/partitions
252 0 31457280 sda
252 1 1048576 sda1
252 2 30407680 sda2
253 0 15728640 dm-0
253 1 3145728 dm-1

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: iscsi no disk

Post by TrevorH » 2022/05/17 23:43:15

In the comments I added to my puppet class for setting up an iSCSI connection I have the following comments:

Code: Select all

# iscsiadm -m discovery -t sendtargets -p ip.ad.re.ss:3260
# iscsiadm -m node --targetname iqn.2004-04.com.qnap:aaaa:iscsi.raid1test.xxxxx -p ip.ad.re.ss:3260 --login
# you'll also need to set usernames/passwords in /etc/iscsi/iscsi.conf and in
# /var/lib/iscsi/nodes/iqn.2004-04.com.qnap:aaaa:iscsi.raid1test.xxxxx/ip.ad.re.ss:3260,1/default
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: iscsi no disk

Post by Blisk » 2022/05/18 06:23:57

The thing is this already worked until I delete iscsi disk and try to connect it again.
# you'll also need to set usernames/passwords in /etc/iscsi/iscsi.conf and in
# /var/lib/iscsi/nodes/iqn.2004-04.com.qnap:aaaa:iscsi.raid1test.xxxxx/ip.ad.re.ss:3260,1/default
I have username and password in both files, but still canot get sdb1

Blisk
Posts: 316
Joined: 2011/07/04 14:49:51
Contact:

Re: iscsi no disk

Post by Blisk » 2022/05/18 20:41:51

After restarting nas /dev/sdb1 show up and now it works

Post Reply