From: Aleksey Y. <ale...@gm...> - 2015-03-25 16:12:11
|
Hi SCST-experts, Where does the SCST store persistent reservation info? I've managed to create a (surviving power loss) reservation using the "sg_persist" utility, but now I can't clear it. xxx@ubuntu:~$ sudo sg_persist /dev/sdb -c MYCOMP MYDISK 3.23 Peripheral device type: disk Report capabilities response: Compatible Reservation Handling(CRH): 1 Specify Initiator Ports Capable(SIP_C): 1 All Target Ports Capable(ATP_C): 1 Persist Through Power Loss Capable(PTPL_C): 1 Type Mask Valid(TMV): 1 Allow Commands: 4 Persist Through Power Loss Active(PTPL_A): 0 Support indicated in Type mask: Write Exclusive, all registrants: 1 Exclusive Access, registrants only: 1 Write Exclusive, registrants only: 1 Exclusive Access: 1 Write Exclusive: 1 Exclusive Access, all registrants: 1 xxx@ubuntu:~$ sudo sg_persist /dev/sdb -s MYCOMP MYDISK 3.23 Peripheral device type: disk PR generation=0x0 No full status descriptors xxx@ubuntu:~$ sudo sg_persist /dev/sdb -K 0x123 -L -o warning>>> --prout-type probably needs to be given MYCOMP MYDISK 3.23 Peripheral device type: disk persistent reserve out: scsi status: Reservation Conflict PR out: command failed It looks wrong to me - the target shows "no descriptors" but the release command (option -L) fails. Could you also please disclose your test scripts which you normally use in persistent reservation testing? Thank you, Aleksey |