OS-4034

zonememstat gives error in lx zone

Status:
Open
Created:
2015-03-11T15:07:19.000-0400
Updated:
2019-08-28T13:24:27.875-0400

Description

  1. /native/usr/sbin/zonememstat
    /native/usr/sbin/zonememstat: 138: shift: Illegal number: OPTIND-1

Comments (2)

Former user commented on 2015-03-11T16:01:16.000-0400:

This could be fixed with a chroot into /native relatively easily. That said, there is some logic that doesn't properly handle exec-ing native binaries in chroot at the moment.

Former user commented on 2016-12-05T01:38:35.000-0500:

Hi,

This came up during training with the question being "how does an end user check zonememstat type info using LX".

I was trying to figure out how to run this via chroot, but I kept getting failures (which could very well be me).

I made a quick hack to make this work in training by using sh from /native/sbin and then giving the full path to kstat, which worked but is a hack.

So, just pinging to see if we have any additional thoughts on how to tell end-users to do this so I can get it into the training - @@Max Bruning has a way to do it w/ prstat but wanted to see if there was something cleaner.

Thanks!

Jay

/cc @@Former user