Re: [smartos-discuss] Temporarily disconecting a NIC

2016-03-15 Thread Ian Collins

On 03/16/16 07:23, Cody Mello wrote:

On Mon, Mar 14, 2016 at 8:55 PM, Ian Collins  wrote:

I usually use "ipadm down-addr -t " from within a zone.  I just
tried this with zlogin and managed to bugger up the zone (couldn't zlogin to
or reboot the zone) for a while, so take care.

What kind of zone was this? OS or LX?


OS.  It's quite an old image, I'll have to try a newer one to see if the 
problem is still current.


--
Ian.



---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Temporarily disconecting a NIC

2016-03-15 Thread Cody Mello
On Mon, Mar 14, 2016 at 8:55 PM, Ian Collins  wrote:
> I usually use "ipadm down-addr -t " from within a zone.  I just
> tried this with zlogin and managed to bugger up the zone (couldn't zlogin to
> or reboot the zone) for a while, so take care.

What kind of zone was this? OS or LX?

- Cody


---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Net access on vm

2016-03-15 Thread Cody Mello
Hi Rupinder,

Could you provide details about the network you're trying to get set up on?
The configuration of the network affects how you'll want to configure your
host.

- Cody

On Mon, Mar 14, 2016 at 9:45 PM, Rupinder Singh Chugh 
wrote:

> We had followed same link and do setup same already , but still issue is
> there
>
>
>
>
>
>
>
> Regards
> *Rupinder Singh*
>
>
> On 15 March 2016 at 01:13, Jorge Schrauwen  wrote:
>
>> This was recently verified to still be working:
>> https://docu.blackdot.be/snipets/solaris/smartos-nat
>>
>> Just make sure to update the nat-rules, gz's vnic ip and address
>> concistantly.
>>
>> Regards
>>
>> Jorge
>>
>>
>>
>>
>>
>>
>> On 2016-03-14 17:30, Rupinder Singh Chugh wrote:
>>
>> We had smartos with single public ip
>>
>> We had created virtual nic with ip 10.0.0.1 on smartos and created a
>> Vm with ip 10.0.0.2 created and able to ping to nic ip
>>
>> But we are not able to access Internet
>> Can you provide us next additional steps to do on smartos so on all  my
>> Internet will be accessed
>>
>>
> *smartos-discuss* | Archives
> 
>  |
> Modify
> 
> Your Subscription 
>



---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


Re: [smartos-discuss] Setup DSR mode LB via ilbadm in smartos

2016-03-15 Thread 许若辰
Alright, I solved the problem by myself.
The key point is that the backend servers should also allow ip spoof(only 
required for lb’s DSR mode), then the packet sent to vip will be delivered to 
correspond virtual nic.
By the way, I created vip as lo0:1, it’s a virtual interface and won’t response 
to arp protocol by default.

---
Briphant, Ruochen Xu
xuruoc...@briphant.com




On Mar 14, 2016, at 5:33 PM, 许若辰 
> wrote:

Hi friends, recently I tried to setup a DSR mode LB via ilbadm in smartos, but 
I got some problems and need your help.

1.first I create a Vm with “allow_ip_spoof”: true
2.second I enable the lib service.svcadm enable ipv4-forwarding ilb
3.second I setup a server group, ilbadm create-servergroup -s 
servers=10.20.1.8:80,10.20.1.9:80 dnsgroup
4.then I create the rule,ilbadm create-rule -e -p -i vip=10.20.1.244,port=80 -m 
lbalg=rr,type=DSR,pmask=24 -o servergroup=dnsgroup dnsrule_rr
5.finally I create the vip, arp -s 10.20.1.244 d2:e3:53:d:3d:9e pub permanent

now the problem appeared, how can I create vip for backend servers?
I’ve tried create a alias for lo0
ipadm create-addr -t -T static -d -a 10.20.1.244/24 lo0/server0
but it doesn’t work.
also I can’t create alias for net0 because I did’t enable ip spoof in backend 
server(and it should be disabled).

I used tcpdump and I could see the packet from client server to vip, so the 
rule in lb should be right, but the backend server didn't response.
What can I do?


Thanks.



Briphant, Ruochen Xu
xuruoc...@briphant.com



smartos-discuss | Archives 
[https://www.listbox.com/images/feed-icon-10x10.jpg1d3216c.jpg?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2ZlZWQtaWNvbi0xMHgxMC5qcGc]
   | 
Modify Your Subscription   
[https://www.listbox.com/images/listbox-logo-small.png1d3216c.png?uri=aHR0cHM6Ly93d3cubGlzdGJveC5jb20vaW1hZ2VzL2xpc3Rib3gtbG9nby1zbWFsbC5wbmc]
 




---
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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com


RE: [smartos-discuss] How to mount different zfs volumn to the same lx branded zone

2016-03-15 Thread Jorge Schrauwen
Hey Josh, 

I just remembered this https://github.com/joyent/smartos-live/issues/510

So only add_filesystems is implemented. 

Regards 

Jorge 

On 2016-03-14 17:22, Josh Wilsdon wrote:

>> I used vmadm, it works fine for adding but updating/remove is a bit flaky.
> 
> Hi Jorge, 
> 
> Could you be a bit more specific as to what problems you had with vmadm 
> update/remove? 
> 
> Thanks, 
> 
> Josh
> 
> SMARTOS-DISCUSS | Archives [1] [2] | Modify [3] Your Subscription
> [4]
 

Links:
--
[1] https://www.listbox.com/member/archive/184463/=now
[2] https://www.listbox.com/member/archive/rss/184463/26452851-88b650c7
[3]
https://www.listbox.com/member/?;
[4] http://www.listbox.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_secret=25769125-7688e9fb
Powered by Listbox: http://www.listbox.com