Re: [smartos-discuss] Zpool command within zone

2016-10-18 Thread Marcus Dillury
Hi.

Thanks for coming back to me.

Sorry, I should have specified. We are using delegated datasets in our
environment. So I was wondering if there is anyway of being able to do
this, even with delegated datasets?

Many Thanks.
Marcus

On 19 Oct 2016 1:47 AM, "Robert Mustacchi"  wrote:

On 10/17/16 22:22 , Marcus Dillury wrote:
> Hi.
>
> Just a quick question.
>
> Is there anyway to disable/remove the zpool command from a smartos vm?
>
> We are setting up a shared environment and would like to remove this
> visibility from within a zone.
 
 If you do not delegate any datasets into the zone (the default
 behavior), then zpool(1M) will not find any pools and zfs(1M) will not
 find any file systems. You can verify this by running the commands in
 the zone.
 
 Robert
 



---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Zpool command within zone

2016-10-18 Thread Robert Mustacchi
On 10/17/16 22:22 , Marcus Dillury wrote:
> Hi.
> 
> Just a quick question.
> 
> Is there anyway to disable/remove the zpool command from a smartos vm?
> 
> We are setting up a shared environment and would like to remove this
> visibility from within a zone.

If you do not delegate any datasets into the zone (the default
behavior), then zpool(1M) will not find any pools and zfs(1M) will not
find any file systems. You can verify this by running the commands in
the zone.

Robert



---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


RE: [smartos-discuss] enable services in smartos

2016-10-18 Thread Fred Liu


> -Original Message-
> From: Jonathan Perkin [mailto:jper...@joyent.com]
> Sent: 星期二, 十月 18, 2016 17:33
> To: smartos-discuss@lists.smartos.org
> Subject: Re: [smartos-discuss] enable services in smartos
> 
> * On 2016-10-18 at 10:19 BST, Fred Liu wrote:
> 
> > It looks nis/client has been added as a dependency in 20160901 but
> > not in 20160527 like following;
> 
> Correct, this was to fix https://smartos.org/bugview/OS-5568
> 
> > I totally understand minimalism, but some disabled services we
> > really need such ldap, dns and nis etc.
> >
> > What is the simplest way to enable these services?
> 
> I would use jclulow's rc.local gist:
> 
>   https://gist.github.com/jclulow/2606370
> 
> and then just add the svcadm commands to the postboot script.
> 

Good idea as a command hub!


Thanks.

Fred


---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] enable services in smartos

2016-10-18 Thread Jonathan Perkin
* On 2016-10-18 at 10:19 BST, Fred Liu wrote:

> It looks nis/client has been added as a dependency in 20160901 but
> not in 20160527 like following;

Correct, this was to fix https://smartos.org/bugview/OS-5568

> I totally understand minimalism, but some disabled services we
> really need such ldap, dns and nis etc.
> 
> What is the simplest way to enable these services?

I would use jclulow's rc.local gist:

  https://gist.github.com/jclulow/2606370

and then just add the svcadm commands to the postboot script.

Cheers,

-- 
Jonathan Perkin  -  Joyent, Inc.  -  www.joyent.com


---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


[smartos-discuss] enable services in smartos

2016-10-18 Thread Fred Liu
Hi

It looks nis/client has been added as a dependency in 20160901 but not in 
20160527 like following;

uname -a
SunOS pluto 5.11 joyent_20160901T054050Z i86pc i386 i86pc
svcs -l name-services
fmri svc:/milestone/name-services:default
name name services milestone
enabled  true
stateonline
next_state   none
state_time   October 18, 2016 01:40:50 PM CST
alt_logfile  /etc/svc/volatile/milestone-name-services:default.log
logfile  /var/svc/log/milestone-name-services:default.log
restartersvc:/system/svc/restarter:default
dependency   optional_all/refresh svc:/network/dns/client (disabled)
dependency   optional_all/refresh svc:/network/ldap/client (disabled)
dependency   optional_all/refresh svc:/network/nis/client (disabled)


uname -a
SunOS kepler-452b 5.11 joyent_20160527T033529Z i86pc i386 i86pc

svcs -l name-services
fmri svc:/milestone/name-services:default
name name services milestone
enabled  true
stateonline
next_state   none
state_time   October 18, 2016 05:05:38 PM CST
alt_logfile  /etc/svc/volatile/milestone-name-services:default.log
logfile  /var/svc/log/milestone-name-services:default.log
restartersvc:/system/svc/restarter:default
dependency   optional_all/refresh svc:/network/dns/client (disabled)
dependency   optional_all/refresh svc:/network/ldap/client (disabled)
dependency   optional_all/refresh svc:/network/nis/client (absent)

I totally understand minimalism, but some disabled services we really need such 
ldap, dns and nis etc.

What is the simplest way to enable these services?
I have tried add my own services under /opt but it can't be a dependency for 
other services because of hard-coded name space.
I also think about enabling them when build smartos. Is there anyone who knows 
how to do it when I am building smartos?
Building normally takes some time. And it should not be a best way.
Brainstorm.


Thanks.

Fred


---
smartos-discuss
Archives: https://www.listbox.com/member/archive/184463/=now
RSS Feed: https://www.listbox.com/member/archive/rss/184463/25769125-55cfbc00
Modify Your Subscription: 
https://www.listbox.com/member/?member_id=25769125&id_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com