- Code: Select all
mpathconfig --enable
- Code: Select all
multipath_tools
mpathconfig --enable
multipath_tools
[root@cortex etc]# systemctl status open-iscsi.service
● open-iscsi.service - Open iSCSI Daemon
Loaded: loaded (/usr/lib/systemd/system/open-iscsi.service; enabled; preset: disabled)
Active: active (running) since Wed 2023-09-27 15:24:00 CEST; 16h ago
Tasks: 2 (limit: 629145)
Memory: 5.1M
CPU: 1.291s
CGroup: /system.slice/open-iscsi.service
├─2899 /sbin/iscsid
└─2901 /sbin/iscsid
Sep 27 15:24:00 cortex systemd[1]: Starting open-iscsi.service...
Sep 27 15:24:00 cortex iscsid[2883]: iSCSI logger with pid=2899 started!
Sep 27 15:24:00 cortex systemd[1]: Started open-iscsi.service.
Sep 27 15:24:01 cortex iscsid[2899]: iSCSI daemon with pid=2901 started!
Sep 27 15:26:07 cortex iscsid[2899]: Connection1:0 to [target: iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr1, portal: 192.168.100.11,3260] through [iface: qsan_iscsi] is operati>
Sep 27 15:26:18 cortex iscsid[2899]: Connection2:0 to [target: iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr2, portal: 192.168.200.11,3260] through [iface: qsan_iscsi] is operati>
[root@cortex etc]# systemctl status multipathd.service
● multipathd.service - Device-Mapper Multipath Device Controller
Loaded: loaded (/usr/lib/systemd/system/multipathd.service; disabled; preset: disabled)
Active: active (running) since Wed 2023-09-27 15:48:35 CEST; 16h ago
TriggeredBy: ● multipathd.socket
Process: 211750 ExecStartPre=/sbin/modprobe -a scsi_dh_alua scsi_dh_emc scsi_dh_rdac dm-multipath (code=exited, status=0/SUCCESS)
Main PID: 211759 (multipathd)
Status: "up"
Tasks: 7
Memory: 18.9M
CPU: 2.902s
CGroup: /system.slice/multipathd.service
└─211759 /sbin/multipathd -d -s
Sep 27 16:10:39 cortex multipathd[211759]: sdd: path already removed
Sep 27 16:10:39 cortex multipathd[211759]: sde: path already removed
Sep 27 16:28:01 cortex multipathd[211759]: sdb: path already removed
Sep 27 16:28:03 cortex multipathd[211759]: sdc: path already removed
Sep 27 16:28:03 cortex multipathd[211759]: sdd: path already removed
Sep 27 16:28:03 cortex multipathd[211759]: sde: path already removed
Sep 28 08:06:07 cortex multipathd[211759]: sdb: path already removed
Sep 28 08:06:08 cortex multipathd[211759]: sdc: path already removed
Sep 28 08:06:08 cortex multipathd[211759]: sdd: path already removed
Sep 28 08:06:08 cortex multipathd[211759]: sde: path already removed
[root@cortex etc]# ls *multipath*
bindings wwids
[root@cortex etc]# cat multipath/bindings
# Multipath bindings, Version : 1.0
# NOTE: this file is automatically maintained by the multipath program.
# You should not need to edit this file in normal circumstances.
#
# Format:
# alias wwid
#
[root@cortex etc]# cat multipath/wwids
# Multipath wwids, Version : 1.0
# NOTE: This file is automatically maintained by multipath and multipathd.
# You should not need to edit this file in normal circumstances.
#
# Valid WWIDs:
[root@cortex etc]# multipath
[root@cortex etc]# ll multipath.conf
ls: Zugriff auf 'multipath.conf' nicht möglich: Datei oder Verzeichnis nicht gefunden
[root@cortex etc]#
multipathd show config
multipath -ll
#
# multipathd show config > multipathd_show_config.txt
#
# multipath -ll
#
# multipath -h
multipath-tools v0.8.8 (03/12, 2021)
Usage:
multipath [-v level] [-B|-d|-i|-q|-r] [-b file] [-p policy] [device]
multipath [-v level] [-R retries] -f device
multipath [-v level] [-R retries] -F
multipath [-v level] [-l|-ll] [device]
multipath [-v level] [-a|-w] device
multipath [-v level] -W
multipath [-v level] [-i] [-c|-C] device
multipath [-v level] [-i] [-u|-U]
multipath [-h|-t|-T]
Where:
-h print this usage text
-l show multipath topology (sysfs and DM info)
-ll show multipath topology (maximum info)
-e enable foreign libraries with -l/-ll
-f flush a multipath device map
-F flush all multipath device maps
-a add a device wwid to the wwids file
-c check if a device should be a path in a multipath device
-C check if a multipath device has usable paths
-q allow queue_if_no_path when multipathd is not running
-d dry run, do not create or update devmaps
-t display the currently used multipathd configuration
-T display the multipathd configuration without builtin defaults
-r force devmap reload
-i ignore wwids file
-B treat the bindings file as read only
-b fil bindings file location
-w remove a device from the wwids file
-W reset the wwids file include only the current devices
-R num number of times to retry removes of in-use devices
-u check if the device specified in the program environment should be a
path in a multipath device
-U check if the device specified in the program environment is a
multipath device with usable paths, see -C flag
-p pol force all maps to specified path grouping policy:
. failover one path per priority group
. multibus all paths in one priority group
. group_by_serial one priority group per serial
. group_by_prio one priority group per priority lvl
. group_by_node_name one priority group per target node
-v lvl verbosity level:
. 0 no output
. 1 print created devmap names only
. 2 default verbosity
. 3 print debug information
device action limited to:
. multipath named 'device' (ex: mpath0)
. multipath whose wwid is 'device' (ex: 60051...)
. multipath including the path named 'device' (ex: /dev/sda or
/dev/dm-0)
. multipath including the path with maj:min 'device' (ex: 8:0)
#
lsblk -f -p
ls -al /dev/disk/by-*
[root@cortex mer]# multipath -ll
3202e0013781103c0 dm-4 QSAN,XS3324
size=73T features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| `- 12:0:0:0 sdf 8:80 active ready running
`-+- policy='service-time 0' prio=50 status=enabled
`- 13:0:0:0 sdg 8:96 active ready running
[root@cortex mer]# cat /etc/multipath/wwids
# Multipath wwids, Version : 1.0
# NOTE: This file is automatically maintained by multipath and multipathd.
# You should not need to edit this file in normal circumstances.
#
# Valid WWIDs:
/3202e0013781103c0/
[root@cortex mer]# cat /etc/multipath/bindings
# Multipath bindings, Version : 1.0
# NOTE: this file is automatically maintained by the multipath program.
# You should not need to edit this file in normal circumstances.
#
# Format:
# alias wwid
#
[root@cortex mer]#
lsblk -f -p > lsblk_f_p.txt; ls -al /dev/disk/by-* > ls_al_dev_disk_by.txt
multipath {
wwid 3202e0013781103c0
alias iscsi_multipath_1
}
Finally, what is the name of the multipath device? Something I can mount via fstab to work with...
# tree /var/lib/iscsi
/var/lib/iscsi
├── ifaces
│ ├── qsan_iscsi_1
│ └── qsan_iscsi_2
├── nodes
│ ├── iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr1
│ │ └── 192.168.100.11,3260,1
│ │ └── qsan_iscsi_1
│ └── iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr2
│ └── 192.168.200.11,3260,1
│ └── qsan_iscsi_2
└── send_targets
├── 192.168.100.11,3260
│ ├── iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr1,192.168.100.11,3260,1,qsan_iscsi_1 -> /var/lib/iscsi/nodes/iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr1/192.168.100.11,3260,1
│ └── st_config
└── 192.168.200.11,3260
├── iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr2,192.168.200.11,3260,1,qsan_iscsi_2 -> /var/lib/iscsi/nodes/iqn.2004-08.com.qsan:xs3324-000044bc0:dev1.ctr2/192.168.200.11,3260,1
└── st_config
12 directories, 6 files
# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 6,5T 0 disk
├─sda1 8:1 0 64G 0 part [SWAP]
└─sda2 8:2 0 6,5T 0 part /data
sdb 8:16 1 0B 0 disk
sdc 8:32 1 0B 0 disk
sdd 8:48 1 0B 0 disk
sde 8:64 1 0B 0 disk
sdf 8:80 0 72,8T 0 disk
└─sdf1 8:81 0 16M 0 part
sdg 8:96 0 72,8T 0 disk
└─sdg1 8:97 0 16M 0 part
sr0 11:0 1 1024M 0 rom
sr1 11:1 1 1024M 0 rom
nvme1n1 259:0 0 1,9T 0 disk
├─nvme1n1p1 259:1 0 1G 0 part
└─nvme1n1p2 259:2 0 1,9T 0 part
└─md0 9:0 0 1,9T 0 raid1
├─vg0-lv_root 252:0 0 128G 0 lvm /
├─vg0-lv_var 252:1 0 128G 0 lvm /var
├─vg0-lv_opt 252:2 0 128G 0 lvm /opt
└─vg0-lv_home 252:3 0 512G 0 lvm /home
nvme0n1 259:3 0 1,9T 0 disk
├─nvme0n1p1 259:4 0 1G 0 part /boot/EFI
└─nvme0n1p2 259:5 0 1,9T 0 part
└─md0 9:0 0 1,9T 0 raid1
├─vg0-lv_root 252:0 0 128G 0 lvm /
├─vg0-lv_var 252:1 0 128G 0 lvm /var
├─vg0-lv_opt 252:2 0 128G 0 lvm /opt
└─vg0-lv_home 252:3 0 512G 0 lvm /home
# multipath -ll
#
# multipath -ll
mpatha (3202e0013781103c0) dm-4 QSAN,XS3324
size=73T features='0' hwhandler='1 alua' wp=rw
|-+- policy='service-time 0' prio=50 status=active
| `- 13:0:0:0 sdf 8:80 active ready running
`-+- policy='service-time 0' prio=50 status=enabled
`- 14:0:0:0 sdg 8:96 active ready running
#
multipathd show config > multipathd_show_config .txt
user_friendly_names "yes"
Users browsing this forum: No registered users and 1 guest