Booking.com

Sunday, January 13, 2019

How to make sound work again in a MacOS without a reboot


Sometimes, sound output in a MacBook laptop is gone. To restart the sound driver, kill the coreaudiod service - it will restart automatically and sound output will be restored:

John-MacBook-Pro:~ eyal$ ps -ax|grep corea
81524 ??         0:00.08 /System/Library/Frameworks/LocalAuthentication.framework/Support/coreauthd
82158 ??         0:00.35 /usr/sbin/coreaudiod
82163 ttys001    0:00.00 grep corea
John-MacBook-Pro:~ eyal$ sudo pkill coreaudiod
John-MacBook-Pro:~ eyal$ ps -ax|grep corea
81524 ??         0:00.08 /System/Library/Frameworks/LocalAuthentication.framework/Support/coreauthd
82167 ??         0:00.30 /usr/sbin/coreaudiod
82172 ttys001    0:00.00 grep corea

Saturday, January 12, 2019

How to add comments in apidoc apiSuccessExample

There seems to be no built-in support for comments, however, '//' seems to work. For example:


* @apiSuccessExample Example data on success - Create volume
* [{
*       "_id": "V1", // This is a comment

How to ignore LUN numbers in VMware


ESXi setting:
Scsi.CompareLUNNumber = 0 (default 1)

If set to 0, LUN numbers will NOT be considered to identify LUNs.

Multisession iSCSI


root@mktgmysql3:~#  iscsiadm --mode session
tcp: [1] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session
tcp: [1] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [2] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session -r 1 --op new
Logging in to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] (multiple)
Login to [iface: default, target: iqn.2018-12.com.vendor:server2, portal: 172.91.40.35,3260] successful.
root@mktgmysql3:~# iscsiadm --mode session
tcp: [1] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [2] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [3] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [4] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [5] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [6] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [7] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
tcp: [8] 172.91.40.35:3260,1 iqn.2018-12.com.vendor:server2
root@mktgmysql3:~#

Speed up LUN discovery in VMware ESXi


VMware ESXi scans all luns from 0 to 255. However, it is possible to limit the scan to a lower number by modifying the Disk.MaxLUN parameter to improve LUN discovery speed.

How to convert a standard LUN to RDM



Clean up stale iSCSI devices


esxcli storage core claiming unclaim -t device -d t10.IET_____000100170000000000000000000000000000000000000000esxcli storage core claiming unclaim -t vendor -v

For more information: