On Mon, 10 Oct 2016 22:30:04 +0200 (CEST) Alexandre DERUMIER <aderum...@odiso.com> wrote:
> > I'm afraid of behaviour if a node is not joinable to do the delete or rescan. > Seem to be difficult to manage with big cluster. > I'm curious to see result of: > It seems to work :-) 1) After login to target: Oct 11 22:56:41 pve-dev kernel: [70633.376458] scsi host6: iSCSI Initiator over TCP/IP Oct 11 22:56:42 pve-dev kernel: [70633.885229] scsi 6:0:0:0: Direct-Access SUN COMSTAR 1.0 PQ: 0 ANSI: 5 Oct 11 22:56:42 pve-dev kernel: [70633.887715] sd 6:0:0:0: Attached scsi generic sg2 type 0 Oct 11 22:56:42 pve-dev kernel: [70633.889615] sd 6:0:0:0: [sdb] 4194304 512-byte logical blocks: (2.15 GB/2.00 GiB) Oct 11 22:56:42 pve-dev kernel: [70633.891141] sd 6:0:0:0: [sdb] Write Protect is off Oct 11 22:56:42 pve-dev kernel: [70633.891655] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Oct 11 22:56:42 pve-dev kernel: [70633.902977] sd 6:0:0:0: [sdb] Attached SCSI disk fdisk -l Disk /dev/sdb: 2 GiB, 2147483648 bytes, 4194304 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 2) On target remove view 3) Rescan target: Oct 11 22:59:06 pve-dev kernel: [70778.489172] sdb: detected capacity change from 2147483648 to 0 fdisk -l No disk /dev/sdb lsscsi [1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 2.5+ /dev/sr0 [2:0:0:0] disk SUN COMSTAR 1.0 /dev/sda [6:0:0:0] disk SUN COMSTAR 1.0 /dev/sdb echo 1 > /sys/bus/scsi/devices/target6\:0\:0/6\:0\:0\:0/delete lsscsi [1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 2.5+ /dev/sr0 [2:0:0:0] disk SUN COMSTAR 1.0 /dev/sda 4) On target add view again 5) Rescan target: Oct 11 23:11:11 pve-dev kernel: [71503.637169] scsi 6:0:0:0: Direct-Access SUN COMSTAR 1.0 PQ: 0 ANSI: 5 Oct 11 23:11:11 pve-dev kernel: [71503.638560] sd 6:0:0:0: Attached scsi generic sg2 type 0 Oct 11 23:11:11 pve-dev kernel: [71503.641348] sd 6:0:0:0: [sdb] 4194304 512-byte logical blocks: (2.15 GB/2.00 GiB) Oct 11 23:11:11 pve-dev kernel: [71503.645011] sd 6:0:0:0: [sdb] Write Protect is off Oct 11 23:11:11 pve-dev kernel: [71503.645520] sd 6:0:0:0: [sdb] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA Oct 11 23:11:11 pve-dev kernel: [71503.655686] sd 6:0:0:0: [sdb] Attached SCSI disk lsscsi [1:0:0:0] cd/dvd QEMU QEMU DVD-ROM 2.5+ /dev/sr0 [2:0:0:0] disk SUN COMSTAR 1.0 /dev/sda [6:0:0:0] disk SUN COMSTAR 1.0 /dev/sdb -- Hilsen/Regards Michael Rasmussen Get my public GnuPG keys: michael <at> rasmussen <dot> cc http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xD3C9A00E mir <at> datanom <dot> net http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE501F51C mir <at> miras <dot> org http://pgp.mit.edu:11371/pks/lookup?op=get&search=0xE3E80917 -------------------------------------------------------------- /usr/games/fortune -es says: Breeding rabbits is a hare raising experience.
pgpbbhe5QLNzb.pgp
Description: OpenPGP digital signature
_______________________________________________ pve-devel mailing list pve-devel@pve.proxmox.com http://pve.proxmox.com/cgi-bin/mailman/listinfo/pve-devel