[one-users] Shell character limitation in ESXi (/bin/sh: File too large)

Emmanuel Mathot emmanuel.mathot at terradue.com
Thu Jul 12 05:55:58 PDT 2012


Hello,


Using the new attach / detach disk functionality on ONE 3.6, I encountered problems with vmware when the remote scripts /tmp/one/vmm/vmware/attach_disk is executed.

In fact the command is passed to ssh with a very large shell command as this one:

 /tmp/one/vmm/vmware/attach_disk one-432 /var/lib/one/datastores/0/432/disk.2 sdb 1 PFZNTV9EUklWRVJfQUNUSU9OX0RBVEE+PEhPU1Q+YmxhZGUyLnNlcnZpY2UuY2lvcC5pbnQ8L0hPU1Q+PE5FVF9EUlY+dm13YXJlPC9ORVRfRFJWPjxNSUdSX0hPU1QvPjxNSUdSX05FVF9EUlYvPjxERVBMT1lfSUQ+b25lLTQzMjwvREVQTE9ZX0lEPjxMT0NBTF9ERVBMT1lNRU5UX0ZJTEUvPjxSRU1PVEVfREVQTE9ZTUVOVF9GSUxFLz48Q0hFQ0tQT0lOVF9GSUxFLz48VE1fQ09NTUFORD48IVtDREFUQVtDTE9ORSB2bXdhcmUgY29udHJvbGxlci5jaW9wLnRlcnJhZHVlLmNvbTovdmFyL2xpYi9vbmUvZGF0YXN0b3Jlcy8xMDAvOTNlYzRkYWFlMGE3NzA2NDgyNDczZDBlNjc4NzFkNTAgYmxhZGUyLnNlcnZpY2UuY2lvcC5pbnQ6L3Zhci9saWIvb25lL2RhdGFzdG9yZXMvMC80MzIvZGlzay4yIDQzMiAxMDAKXV0+PC9UTV9DT01NQU5EPjxESVNLX1RBUkdFVF9QQVRIPi92YXIvbGliL29uZS9kYXRhc3RvcmVzLzAvNDMyL2Rpc2suMjwvRElTS19UQVJHRVRfUEFUSD48Vk0+PElEPjQzMjwvSUQ+PFVJRD4xPC9VSUQ+PEdJRD4wPC9HSUQ+PFVOQU1FPmVtYXRob3Q8L1VOQU1FPjxHTkFNRT5vbmVhZG1pbjwvR05BTUU+PE5BTUU+b25lLTQzMjwvTkFNRT48UEVSTUlTU0lPTlM+PE9XTk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PERTX0lEPjA8L0RTX0lEPjxQU1RJTUU+MTM0MjA4NDQ3NTwvUFNUSU1FPjxQRVRJTUU+MTM0MjA4NDUyMjwvUEVUSU1FPjxSU1RJTUU+MTM0MjA4NDUyMjwvUlNUSU1FPjxSRVRJTUU+MDwvUkVUSU1FPjxFU1RJTUU+MDwvRVNUSU1FPjxFRVRJTUU+MDwvRUVUSU1FPjxSRUFTT04+MDwvUkVBU09OPjwvSElTVE9SWT48L0hJU1RPUllfUkVDT1JEUz48L1ZNPjwvVk1NX0RSSVZFUl9BQ1RJT05fREFUQT4= 432 blade2.service.ciop.int

The shell on ESXi host returns: /bin/sh: File too large
Indeed, once logged on the shell of the host, the command line is limited. The 5th argument is cut.
The script uses only the 4 first arguments and therefore could work without the others but I suppose it is used by other drivers. 
Would you have a workaround or a configuration on vmware that allow more characters in the shell?

Cheers,

Emmanuel Mathot
www.terradue.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20120712/1570519d/attachment-0003.htm>


More information about the Users mailing list