OS-4034: zonememstat gives error in lx zone

Details

Issue Type:Bug
Priority:4 - Normal
Status:Open
Created at:2015-03-11T19:07:19.000Z
Updated at:2019-08-28T17:24:27.875Z

People

Created by:Max Bruning
Reported by:Max Bruning

Related Issues

Labels

lxbrand

Description

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

Comments

Comment by Former user
Created at 2015-03-11T20:01:16.000Z

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.


Comment by Former user
Created at 2016-12-05T06:38:35.000Z

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 - @accountid:557058:477e0346-c475-4b70-af88-8c89654d6204 has a way to do it w/ prstat but wanted to see if there was something cleaner.

Thanks!

Jay

/cc @accountid:624773f045ece00069cb2407