Ever tried to run dd on ESX and failed?
Did you see this error ?
dd if=/dev/zero of=/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0 bs=512 count=10
dd: can't open '/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0': Function not implemented
Include "conv=notrunc" in your dd command and that should work for you.
dd if=/dev/zero of=/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0 bs=512 count=10 conv=notrunc
10+0 records in
10+0 records out
Did you see this error ?
dd if=/dev/zero of=/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0 bs=512 count=10
dd: can't open '/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0': Function not implemented
Include "conv=notrunc" in your dd command and that should work for you.
dd if=/dev/zero of=/vmfs/devices/disks/mpx.vmhba1:C0:T3:L0 bs=512 count=10 conv=notrunc
10+0 records in
10+0 records out
Thank you! The stupid "dd can't open ... Function not implemented" message made it appear that that device could not be opened for writing. Thank you!
ReplyDelete5 years later. Still valid for ESXi 7.x series :) Thank You. Dumped internal SD card to external FCoE boot LUN before update.
ReplyDeleteIt's really worked, thank you!!! setupid vmware
ReplyDelete8 years later, 6.7, "invalid argument 'notrunc' to 'conv'"
ReplyDelete