strutture:cnaf:cloud_cnaf:admins_corner:troubleshooting:iscsi_ovirt
Table of Contents
Problemi con ISCSI su nodo oVirt
Notifiche problemi
Soluzioni problemi
[root@oneprovider-cnaf ~]# systemctl status iscsi ● iscsi.service - Login and scanning of iSCSI devices Loaded: loaded (/usr/lib/systemd/system/iscsi.service; enabled; vendor preset: disabled) Active: active (exited) since Mon 2018-10-08 16:10:46 CEST; 1 weeks 2 days ago Docs: man:iscsid(8) man:iscsiadm(8) Process: 1305 ExecReload=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=21) Process: 892 ExecStart=/sbin/iscsiadm -m node --loginall=automatic (code=exited, status=21) Process: 885 ExecStart=/usr/libexec/iscsi-mark-root-nodes (code=exited, status=0/SUCCESS) Main PID: 892 (code=exited, status=21) Tasks: 0 Memory: 0B CGroup: /system.slice/iscsi.service Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. [root@oneprovider-cnaf ~]# systemctl status iscsid ● iscsid.service - Open-iSCSI Loaded: loaded (/usr/lib/systemd/system/iscsid.service; enabled; vendor preset: disabled) Active: active (running) since Mon 2018-10-08 16:10:46 CEST; 1 weeks 2 days ago Docs: man:iscsid(8) man:iscsiadm(8) Process: 872 ExecStart=/usr/sbin/iscsid (code=exited, status=0/SUCCESS) Main PID: 881 (iscsid) Tasks: 2 Memory: 2.0M CGroup: /system.slice/iscsid.service ├─878 /usr/sbin/iscsid └─881 /usr/sbin/iscsid Warning: Journal has been rotated since unit was started. Log output is incomplete or unavailable. [root@oneprovider-cnaf ~]# systemctl status multipathd.service ● multipathd.service - Device-Mapper Multipath Device Controller Loaded: loaded (/usr/lib/systemd/system/multipathd.service; enabled; vendor preset: enabled) Active: active (running) since Mon 2018-10-08 16:10:41 CEST; 1 weeks 2 days ago Process: 502 ExecStart=/sbin/multipathd (code=exited, status=0/SUCCESS) Process: 499 ExecStartPre=/sbin/multipath -A (code=exited, status=0/SUCCESS) Process: 492 ExecStartPre=/sbin/modprobe dm-multipath (code=exited, status=0/SUCCESS) Main PID: 505 (multipathd) Tasks: 6 Memory: 2.9M CGroup: /system.slice/multipathd.service └─505 /sbin/multipathd [root@oneprovider-cnaf ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sr0 11:0 1 1024M 0 rom vda 252:0 0 20G 0 disk ├─vda1 252:1 0 500M 0 part /boot └─vda2 252:2 0 19.5G 0 part ├─vg_vol01-lv_root 253:0 0 13.5G 0 lvm / ├─vg_vol01-lv_swap 253:1 0 4G 0 lvm [SWAP] └─vg_vol01-lv_tmp 253:2 0 2G 0 lvm /tmp [root@oneprovider-cnaf ~]# systemctl stop multipathd.service [root@oneprovider-cnaf ~]# systemctl stop iscsi [root@oneprovider-cnaf ~]# systemctl stop iscsid Warning: Stopping iscsid.service, but it can still be activated by: iscsid.socket [root@oneprovider-cnaf ~]# systemctl stop iscsid.socket [root@oneprovider-cnaf ~]# systemctl start iscsid [root@oneprovider-cnaf ~]# systemctl start iscsi [root@oneprovider-cnaf ~]# iscsiadm -m node --login Logging in to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.235,3260] (multiple) Logging in to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.238,3260] (multiple) Logging in to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.236,3260] (multiple) Logging in to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.237,3260] (multiple) Login to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.235,3260] successful. Login to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.238,3260] successful. Login to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.236,3260] successful. Login to [iface: default, target: iqn.1984-05.com.dell:powervault.md3600i.690b11c00004a005000000005109c77e, portal: 131.154.101.237,3260] successful. [root@oneprovider-cnaf ~]# systemctl start multipathd [root@oneprovider-cnaf ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 5T 0 disk └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sdb 8:16 0 5T 0 disk └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sdc 8:32 0 5T 0 disk └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sdd 8:48 0 5T 0 disk └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sr0 11:0 1 1024M 0 rom vda 252:0 0 20G 0 disk ├─vda1 252:1 0 500M 0 part /boot └─vda2 252:2 0 19.5G 0 part ├─vg_vol01-lv_root 253:0 0 13.5G 0 lvm / ├─vg_vol01-lv_swap 253:1 0 4G 0 lvm [SWAP] └─vg_vol01-lv_tmp 253:2 0 2G 0 lvm /tmp [root@oneprovider-cnaf ~]# mount -a [root@oneprovider-cnaf ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_vol01-lv_root 14G 12G 613M 96% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 401M 3.5G 11% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/vda1 477M 141M 307M 32% /boot /dev/mapper/vg_vol01-lv_tmp 2.0G 31M 1.8G 2% /tmp overlay 14G 12G 613M 96% /var/lib/docker/overlay2/25cfc5fa8e0933bdd9d010cd6bd0df022ceb2f62b87d2c5884832fe3ace248c7/merged shm 64M 0 64M 0% /var/lib/docker/containers/73d21535eae850be00ff53265fc56db1e51082e785b73c659310081731497742/mounts/shm tmpfs 782M 0 782M 0% /run/user/0 /dev/mapper/vg_onedata-lv_onedata 5.0T 36M 5.0T 1% /mnt/onedata
Creato e agganciato un disco di 50G:
root@oneprovider-cnaf ~]# pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpatha1 vg_onedata lvm2 a-- <5.00t 0 /dev/vda2 vg_vol01 lvm2 a-- <19.51g 0 [root@oneprovider-cnaf ~]# multipath -ll mpathb (0QEMU_QEMU_HARDDISK_c0fa731d-7d77-4f0e-9) dm-6 QEMU ,QEMU HARDDISK size=50G features='0' hwhandler='0' wp=rw `-+- policy='service-time 0' prio=1 status=active `- 2:0:0:1 sde 8:64 active ready running mpatha (3690b11c00013ad8600001c8759aca326) dm-3 DELL ,MD36xxi size=5.0T features='3 queue_if_no_path pg_init_retries 50' hwhandler='1 rdac' wp=rw |-+- policy='round-robin 0' prio=14 status=active | |- 3:0:0:0 sdc 8:32 active ready running | `- 5:0:0:0 sdd 8:48 active ready running `-+- policy='round-robin 0' prio=9 status=enabled |- 4:0:0:0 sda 8:0 active ready running `- 6:0:0:0 sdb 8:16 active ready running [root@oneprovider-cnaf ~]# fdisk -l /dev/mapper/mpatha WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion. Disk /dev/mapper/mpatha: 5497.6 GB, 5497558138880 bytes, 10737418240 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: gpt Disk identifier: 3CDAA656-A0BC-4CBE-974B-122DCFCFC52B # Start End Size Type Name 1 2048 10737416191 5T Linux LVM primary [root@oneprovider-cnaf ~]# fdisk /dev/mapper/mpathb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Device does not contain a recognized partition table Building a new DOS disklabel with disk identifier 0xcdbef21c. Command (m for help): p Disk /dev/mapper/mpathb: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0xcdbef21c Device Boot Start End Blocks Id System Command (m for help): n Partition type: p primary (0 primary, 0 extended, 4 free) e extended Select (default p): p Partition number (1-4, default 1): First sector (2048-104857599, default 2048): Using default value 2048 Last sector, +sectors or +size{K,M,G} (2048-104857599, default 104857599): Using default value 104857599 Partition 1 of type Linux and of size 50 GiB is set Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 22: Invalid argument. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. [root@oneprovider-cnaf ~]# fdisk /dev/mapper/mpathb Welcome to fdisk (util-linux 2.23.2). Changes will remain in memory only, until you decide to write them. Be careful before using the write command. Command (m for help): p Disk /dev/mapper/mpathb: 53.7 GB, 53687091200 bytes, 104857600 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk label type: dos Disk identifier: 0xcdbef21c Device Boot Start End Blocks Id System /dev/mapper/mpathb1 2048 104857599 52427776 83 Linux Command (m for help): t Selected partition 1 Hex code (type L to list all codes): L 0 Empty 24 NEC DOS 81 Minix / old Lin bf Solaris 1 FAT12 27 Hidden NTFS Win 82 Linux swap / So c1 DRDOS/sec (FAT- 2 XENIX root 39 Plan 9 83 Linux c4 DRDOS/sec (FAT- 3 XENIX usr 3c PartitionMagic 84 OS/2 hidden C: c6 DRDOS/sec (FAT- 4 FAT16 <32M 40 Venix 80286 85 Linux extended c7 Syrinx 5 Extended 41 PPC PReP Boot 86 NTFS volume set da Non-FS data 6 FAT16 42 SFS 87 NTFS volume set db CP/M / CTOS / . 7 HPFS/NTFS/exFAT 4d QNX4.x 88 Linux plaintext de Dell Utility 8 AIX 4e QNX4.x 2nd part 8e Linux LVM df BootIt 9 AIX bootable 4f QNX4.x 3rd part 93 Amoeba e1 DOS access a OS/2 Boot Manag 50 OnTrack DM 94 Amoeba BBT e3 DOS R/O b W95 FAT32 51 OnTrack DM6 Aux 9f BSD/OS e4 SpeedStor c W95 FAT32 (LBA) 52 CP/M a0 IBM Thinkpad hi eb BeOS fs e W95 FAT16 (LBA) 53 OnTrack DM6 Aux a5 FreeBSD ee GPT f W95 Ext d (LBA) 54 OnTrackDM6 a6 OpenBSD ef EFI (FAT-12/16/ 10 OPUS 55 EZ-Drive a7 NeXTSTEP f0 Linux/PA-RISC b 11 Hidden FAT12 56 Golden Bow a8 Darwin UFS f1 SpeedStor 12 Compaq diagnost 5c Priam Edisk a9 NetBSD f4 SpeedStor 14 Hidden FAT16 <3 61 SpeedStor ab Darwin boot f2 DOS secondary 16 Hidden FAT16 63 GNU HURD or Sys af HFS / HFS+ fb VMware VMFS 17 Hidden HPFS/NTF 64 Novell Netware b7 BSDI fs fc VMware VMKCORE 18 AST SmartSleep 65 Novell Netware b8 BSDI swap fd Linux raid auto 1b Hidden W95 FAT3 70 DiskSecure Mult bb Boot Wizard hid fe LANstep 1c Hidden W95 FAT3 75 PC/IX be Solaris boot ff BBT 1e Hidden W95 FAT1 80 Old Minix Hex code (type L to list all codes): 8e Changed type of partition 'Linux' to 'Linux LVM' Command (m for help): w The partition table has been altered! Calling ioctl() to re-read partition table. WARNING: Re-reading the partition table failed with error 22: Invalid argument. The kernel still uses the old table. The new table will be used at the next reboot or after you run partprobe(8) or kpartx(8) Syncing disks. [root@oneprovider-cnaf ~]# pvcreate /dev/mapper/mpathb1 Physical volume "/dev/mapper/mpathb1" successfully created. [root@oneprovider-cnaf ~]# pvs PV VG Fmt Attr PSize PFree /dev/mapper/mpatha1 vg_onedata lvm2 a-- <5.00t 0 /dev/mapper/mpathb1 lvm2 --- <50.00g <50.00g /dev/vda2 vg_vol01 lvm2 a-- <19.51g 0 [root@oneprovider-cnaf ~]# vgs VG #PV #LV #SN Attr VSize VFree vg_onedata 1 1 0 wz--n- <5.00t 0 vg_vol01 1 3 0 wz--n- <19.51g 0 [root@oneprovider-cnaf ~]# vgextend vg_vol01 /dev/mapper/mpathb1 Volume group "vg_vol01" successfully extended [root@oneprovider-cnaf ~]# vgs VG #PV #LV #SN Attr VSize VFree vg_onedata 1 1 0 wz--n- <5.00t 0 vg_vol01 2 3 0 wz--n- 69.50g <50.00g [root@oneprovider-cnaf ~]# lvextend -l +100%FREE -r /dev/vg_vol01/lv_root Size of logical volume vg_vol01/lv_root changed from <13.51 GiB (3458 extents) to 63.50 GiB (16257 extents). Logical volume vg_vol01/lv_root successfully resized. resize2fs 1.42.9 (28-Dec-2013) Filesystem at /dev/mapper/vg_vol01-lv_root is mounted on /; on-line resizing required old_desc_blocks = 2, new_desc_blocks = 8 The filesystem on /dev/mapper/vg_vol01-lv_root is now 16647168 blocks long. [root@oneprovider-cnaf ~]# [root@oneprovider-cnaf ~]# lsblk NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT sda 8:0 0 5T 0 disk ├─sda1 8:1 0 5T 0 part └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sdb 8:16 0 5T 0 disk ├─sdb1 8:17 0 5T 0 part └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sdc 8:32 0 5T 0 disk ├─sdc1 8:33 0 5T 0 part └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sdd 8:48 0 5T 0 disk ├─sdd1 8:49 0 5T 0 part └─mpatha 253:3 0 5T 0 mpath └─mpatha1 253:4 0 5T 0 part └─vg_onedata-lv_onedata 253:5 0 5T 0 lvm /mnt/onedata sde 8:64 0 50G 0 disk ├─sde1 8:65 0 50G 0 part └─mpathb 253:6 0 50G 0 mpath └─mpathb1 253:7 0 50G 0 part └─vg_vol01-lv_root 253:0 0 63.5G 0 lvm / sr0 11:0 1 1024M 0 rom vda 252:0 0 20G 0 disk ├─vda1 252:1 0 500M 0 part /boot └─vda2 252:2 0 19.5G 0 part ├─vg_vol01-lv_root 253:0 0 63.5G 0 lvm / ├─vg_vol01-lv_swap 253:1 0 4G 0 lvm [SWAP] └─vg_vol01-lv_tmp 253:2 0 2G 0 lvm /tmp [root@oneprovider-cnaf ~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_vol01-lv_root 63G 12G 48G 20% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.9G 0 3.9G 0% /dev/shm tmpfs 3.9G 393M 3.5G 11% /run tmpfs 3.9G 0 3.9G 0% /sys/fs/cgroup /dev/vda1 477M 141M 307M 32% /boot /dev/mapper/vg_vol01-lv_tmp 2.0G 31M 1.8G 2% /tmp overlay 63G 12G 48G 20% /var/lib/docker/overlay2/25cfc5fa8e0933bdd9d010cd6bd0df022ceb2f62b87d2c5884832fe3ace248c7/merged shm 64M 0 64M 0% /var/lib/docker/containers/73d21535eae850be00ff53265fc56db1e51082e785b73c659310081731497742/mounts/shm /dev/mapper/vg_onedata-lv_onedata 5.0T 36M 5.0T 1% /mnt/onedata tmpfs 782M 0 782M 0% /run/user/0
strutture/cnaf/cloud_cnaf/admins_corner/troubleshooting/iscsi_ovirt.txt · Last modified: 2020/02/05 07:09 by aiftim@infn.it