[OpenIndiana-discuss] Where is received filesystem

2011-10-30 Thread Harry Putnam
I've been tinkering with send/receive trying to understand how it all
works. 

I've found what appears to my inexperienced eyes to be something of an
anomaly.

I successfully sent/received two filesystems:

  zp2/hosts
  zp2/hosts/reader 

I think I made some changes in a certain script, and maybe more than 1
since that move.

So since the amount of data in zp2/hosts is nearly minuscule (5
scripts), I decided to just send/receive zp2/hosts on the old server
to zp2/hosts_old, then at my leisure, investigate the differences.

Inadvertently, I forgot to take off the -R flag and so used this
command:

   zfs send -R zp2/hosts@111030_14:43:17_0 |
  ssh 192.168.1.101 zfs recv zp2/hosts_old
  Password:

And received this warning:
  WARNING: could not send zp2/hosts/reader@111030_14:43:17_0
  exist cannot mount '/hosts': directory is not empty

I don't understand either part of that warning.  I've already posted
about the first part (reader@111030_14:43:17_0) so here just
questioning the second part

Why would `/hosts' need to be mounted? (I think it is about the
receiving host.. right?)

But what is really puzzling, is that newserver reports that data set
to be present:
  zfs list -r zp2

  NAME   USED  AVAIL  REFER  MOUNTPOINT
  zp2   10.2G   193G31K  /zp2
  zp2/hosts 10.2G   193G   464K  /hosts
  zp2/hosts/reader  10.2G   193G  4.29G  /hosts/reader
  zp2/hosts_old  528K   193G   464K  /hosts

So has the content of zp2/hosts been overwritten?


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Isolating networks for zones

2011-10-30 Thread carlopmart

On 10/30/2011 12:29 PM, Jeppe Toustrup wrote:

On Sun, Oct 30, 2011 at 09:27, carlopmart  wrote:

Thanks Jeppe. I don't have configured a etherstub. current config is:

root@oihost:~# dladm show-vnic
LINK OVER SPEED  MACADDRESSMACADDRTYPE VID
dmzlan0  e1000g1  1000   2:8:20:dc:48:d9   random  0

and dladm show-phys:

root@oihost:~# dladm show-phys
LINK MEDIASTATE  SPEED  DUPLEXDEVICE
e1000g0  Ethernet up 1000   full  e1000g0
e1000g1  Ethernet up 1000   full  e1000g1
e1000g2  Ethernet unknown0  half  e1000g2

But one question: how can I associate certail physical interface to a
etherstub?? Do I need to create a bridge with only one interface??


Right, that means your dmzlan0 vnic is basically connected to the same
network as e1000g1. If you only want to get traffic to the zone which
is meant for it, then you should not use a vnic, but instead set
"ip-type=shared" in the zone configuration and set the physical
interface to "e1000g1", then the zone will only get traffic intended
for it while being connected to the same network as e1000g1.

Alternatively, you can use an etherstub as previously mentioned. That
does however require you to set up routing of packages in the global
zone, in order for packages to get from the physical network to the
etherstub network. Packages will then basically go like this:

Physical network ->  Physical network interface (global zone) ->  VNIC
(active on global zone) ->  Etherstub ->  VNIC (belonging to zone).

--


Many thanks Jeppe. I am reconfiguring this zone to use ip-type=shared 
instead of exlusive. My zone config is:


zonename: dnssrvdmz
zonepath: /zones/dnssrvdmz
brand: ipkg
autoboot: false
bootargs:
pool:
limitpriv:
scheduling-class:
ip-type: shared
hostid:
fs-allowed:
net:
address: 172.25.80.5
allowed-address not specified
physical: e1000g1
defrouter: 172.25.80.1

But when I try to boot this new zone, console returns me this error:

"WARNING: skipping network interface 'e1000g1' which may not be 
present/plumbed in the global zone."


Do I need to "ifconfig up" this physical interface before zone boots??

Thanks.


--
CL Martinez
carlopmart {at} gmail {d0t} com

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] send/receive.. and mountpoint

2011-10-30 Thread Harry Putnam
Running b 151a in Vbox

This is my first real try at using the send/receive commands offered
in zfs.

I'm moving data from one vm guest on a debian linux OS to a new vm
guest on a win7 OS.

I thought there would be a way to have a file system on the old server
to just be duplicated on the new.

On the new I created a zpool of the same name that the filesystems are
in on the old server.  But no  zfs filesystems.

So oldserver:

   zp2/hosts  mountpoint=/hosts
   zp2/hosts/reader

And on newserver just the pool

  zp2

So with:
  zfs send zp2/hosts@111030_14:43:17_0 |
  ssh 192.168.1.101 zfs recv   zp2/hosts

But on newserver the mountpoint is lost and zp2/hosts is mounted
on /zp2/hosts

I'm confused about what the various flags do but guessing some flag or
combination of flags will make the mountpoint come out the same during
send/recv.

When I try with the -R flag on the send end I get an error about
`reader'.


   # zfs send -R zp2/hosts@111030_14:43:17_0 |
  ssh 192.168.1.101 zfs recv zp2/hosts
   Password:
   WARNING: could not send zp2/hosts/reader@111030_14:43:17_0: does
   not exist

zp2/hosts was created and with the right mount point, but I don't
understand why I get a warning about trying to send a snapshot of 
`zp2/hosts/reader@111030_14:43:17_0' when I did not attempt to do
that.. and there isn't even a snapshot of zp2/hosts/reader with
that name.

So I've now sent the main data load which is in reader with:

   zfs send -R zp2/hosts/reader@111030_14:40:31_0 |
  ssh 192.168.1.101 zfs recv zp2/hosts/reader

It appears to be working although I won't know for sure for a couple
of hours.

So is the only way to do this is in two moves?  Or can it be done in 1
move?


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Install OpenIndiana from USB

2011-10-30 Thread Ivan Gualandri
Ok just read the whole article and it answer my question :)

Thanks!

On 30 October 2011 16:31, Ivan Gualandri  wrote:

> Hi pablo,
>
> thanks for your answer!
>
> I have another question: if i understand correctly i must use an entire
> usb key to make a USB installer for OpenIndiana?
>
> Thanks,
> Ivan
>
> On 30 October 2011 12:57, Pablo Oddera  wrote:
>
>> Ivan,
>>
>> You can install it from a USB key. Here you have the steps:
>>
>> http://wiki.openindiana.org/oi/Installing+OpenIndiana
>>
>> Regards,
>>
>> Pablo
>>
>> On Sun, Oct 30, 2011 at 8:40 AM, Ivan Gualandri > >wrote:
>>
>> > Hi all,
>> >
>> > i want to install OpenIndiana on my Laptop, but sadly the cdrom is
>> gone. Is
>> > possible to install it from an USB Key?
>> >
>> > Thanks,
>> > Ivan
>> >
>> > --
>> > "elen sila lumenn omentielvo"
>> > ___
>> > OpenIndiana-discuss mailing list
>> > OpenIndiana-discuss@openindiana.org
>> > http://openindiana.org/mailman/listinfo/openindiana-discuss
>> >
>> ___
>> OpenIndiana-discuss mailing list
>> OpenIndiana-discuss@openindiana.org
>> http://openindiana.org/mailman/listinfo/openindiana-discuss
>>
>
>
>
> --
> "elen sila lumenn omentielvo"
>



-- 
"elen sila lumenn omentielvo"
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Install OpenIndiana from USB

2011-10-30 Thread Ivan Gualandri
Hi pablo,

thanks for your answer!

I have another question: if i understand correctly i must use an entire usb
key to make a USB installer for OpenIndiana?

Thanks,
Ivan

On 30 October 2011 12:57, Pablo Oddera  wrote:

> Ivan,
>
> You can install it from a USB key. Here you have the steps:
>
> http://wiki.openindiana.org/oi/Installing+OpenIndiana
>
> Regards,
>
> Pablo
>
> On Sun, Oct 30, 2011 at 8:40 AM, Ivan Gualandri  >wrote:
>
> > Hi all,
> >
> > i want to install OpenIndiana on my Laptop, but sadly the cdrom is gone.
> Is
> > possible to install it from an USB Key?
> >
> > Thanks,
> > Ivan
> >
> > --
> > "elen sila lumenn omentielvo"
> > ___
> > OpenIndiana-discuss mailing list
> > OpenIndiana-discuss@openindiana.org
> > http://openindiana.org/mailman/listinfo/openindiana-discuss
> >
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>



-- 
"elen sila lumenn omentielvo"
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Isolating networks for zones

2011-10-30 Thread Josef 'Jeff' Sipek
On Sun, Oct 30, 2011 at 10:24:33AM +0100, carlopmart wrote:
> I will try to explain something more. I need to build a complete
> public dmz infrastructure using oi zones (if I can). OIhost is on
> internal network without Internet access. On this host I have three
> physical nics:
> 
> a) e1000g0 --- Internal network
> b) e1000g1 --- First public DMZ
> c) e1000g2 --- Second public DMZ

Are all these connected to the same broadcast domain?  IOW, the same dumb
switch/same VLAN?  If so, then you'll have to do some packet filtering.  If
they are different ethernet segments, then you should not see the other
traffic.  Others have pointed out that you could use ip-type=shared.

Jeff.

-- 
The box said "Windows XP or better required". So I installed Linux.

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Install OpenIndiana from USB

2011-10-30 Thread Pablo Oddera
Ivan,

You can install it from a USB key. Here you have the steps:

http://wiki.openindiana.org/oi/Installing+OpenIndiana

Regards,

Pablo

On Sun, Oct 30, 2011 at 8:40 AM, Ivan Gualandri wrote:

> Hi all,
>
> i want to install OpenIndiana on my Laptop, but sadly the cdrom is gone. Is
> possible to install it from an USB Key?
>
> Thanks,
> Ivan
>
> --
> "elen sila lumenn omentielvo"
> ___
> OpenIndiana-discuss mailing list
> OpenIndiana-discuss@openindiana.org
> http://openindiana.org/mailman/listinfo/openindiana-discuss
>
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


[OpenIndiana-discuss] Install OpenIndiana from USB

2011-10-30 Thread Ivan Gualandri
Hi all,

i want to install OpenIndiana on my Laptop, but sadly the cdrom is gone. Is
possible to install it from an USB Key?

Thanks,
Ivan

-- 
"elen sila lumenn omentielvo"
___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Isolating networks for zones

2011-10-30 Thread Jeppe Toustrup
On Sun, Oct 30, 2011 at 09:27, carlopmart  wrote:
> Thanks Jeppe. I don't have configured a etherstub. current config is:
>
> root@oihost:~# dladm show-vnic
> LINK         OVER         SPEED  MACADDRESS        MACADDRTYPE         VID
> dmzlan0      e1000g1      1000   2:8:20:dc:48:d9   random              0
>
> and dladm show-phys:
>
> root@oihost:~# dladm show-phys
> LINK         MEDIA                STATE      SPEED  DUPLEX    DEVICE
> e1000g0      Ethernet             up         1000   full      e1000g0
> e1000g1      Ethernet             up         1000   full      e1000g1
> e1000g2      Ethernet             unknown    0      half      e1000g2
>
> But one question: how can I associate certail physical interface to a
> etherstub?? Do I need to create a bridge with only one interface??

Right, that means your dmzlan0 vnic is basically connected to the same
network as e1000g1. If you only want to get traffic to the zone which
is meant for it, then you should not use a vnic, but instead set
"ip-type=shared" in the zone configuration and set the physical
interface to "e1000g1", then the zone will only get traffic intended
for it while being connected to the same network as e1000g1.

Alternatively, you can use an etherstub as previously mentioned. That
does however require you to set up routing of packages in the global
zone, in order for packages to get from the physical network to the
etherstub network. Packages will then basically go like this:

Physical network -> Physical network interface (global zone) -> VNIC
(active on global zone) -> Etherstub -> VNIC (belonging to zone).

--
Venlig hilsen / Kind regards
Jeppe Toustrup (aka. Tenzer)

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Isolating networks for zones

2011-10-30 Thread carlopmart

On 10/30/2011 09:53 AM, carlopmart wrote:

On 10/30/2011 09:27 AM, carlopmart wrote:

On 10/30/2011 02:27 AM, Jeppe Toustrup wrote:

On Sat, Oct 29, 2011 at 23:30, carlopmart wrote:

I have installed oi zone under a oi_151a host to provide dns caching
services. All works ok now, except network isolation. Running snoop on
non-global zone I can see all traffic of all networks where global zone
connects. For example:


How is the vnic configured? (dladm show-vnic)

You might want to set the global zone up as a router which route
traffic from it's external interface to an etherstub (virtual switch)
which the vnic then is connected to. Then you shouldn't be able to
sniff network traffic from the external network on the zone.

--
Venlig hilsen / Kind regards
Jeppe Toustrup (aka. Tenzer)



Thanks Jeppe. I don't have configured a etherstub. current config is:

root@oihost:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
dmzlan0 e1000g1 1000 2:8:20:dc:48:d9 random 0

and dladm show-phys:

root@oihost:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
e1000g0 Ethernet up 1000 full e1000g0
e1000g1 Ethernet up 1000 full e1000g1
e1000g2 Ethernet unknown 0 half e1000g2

But one question: how can I associate certail physical interface to a
etherstub?? Do I need to create a bridge with only one interface??

Thanks.



Oops stupid question. Ethersub is used only when no physical nics will
be used. And I need to use physical nic. But I don't understand why a
zone can see all traffic that cross global zone. Is it not possible to
restrict this traffic to only that comes/go to vnic??





I will try to explain something more. I need to build a complete public 
dmz infrastructure using oi zones (if I can). OIhost is on internal 
network without Internet access. On this host I have three physical nics:


a) e1000g0 --- Internal network
b) e1000g1 --- First public DMZ
c) e1000g2 --- Second public DMZ

OI zones will deployed over e1000g1 and e1000g2 only. Between all 
physical nics on OI host exists two firewalls. Oi host can not be 
routeable from Internet.


Is it possible to accomplish this using zones or do I need to use a real 
virtualization hypervisors like vmware ESXi??


Thanks.



--
CL Martinez
carlopmart {at} gmail {d0t} com

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Isolating networks for zones

2011-10-30 Thread carlopmart

On 10/30/2011 09:27 AM, carlopmart wrote:

On 10/30/2011 02:27 AM, Jeppe Toustrup wrote:

On Sat, Oct 29, 2011 at 23:30, carlopmart wrote:

I have installed oi zone under a oi_151a host to provide dns caching
services. All works ok now, except network isolation. Running snoop on
non-global zone I can see all traffic of all networks where global zone
connects. For example:


How is the vnic configured? (dladm show-vnic)

You might want to set the global zone up as a router which route
traffic from it's external interface to an etherstub (virtual switch)
which the vnic then is connected to. Then you shouldn't be able to
sniff network traffic from the external network on the zone.

--
Venlig hilsen / Kind regards
Jeppe Toustrup (aka. Tenzer)



Thanks Jeppe. I don't have configured a etherstub. current config is:

root@oihost:~# dladm show-vnic
LINK OVER SPEED MACADDRESS MACADDRTYPE VID
dmzlan0 e1000g1 1000 2:8:20:dc:48:d9 random 0

and dladm show-phys:

root@oihost:~# dladm show-phys
LINK MEDIA STATE SPEED DUPLEX DEVICE
e1000g0 Ethernet up 1000 full e1000g0
e1000g1 Ethernet up 1000 full e1000g1
e1000g2 Ethernet unknown 0 half e1000g2

But one question: how can I associate certail physical interface to a
etherstub?? Do I need to create a bridge with only one interface??

Thanks.



Oops stupid question. Ethersub is used only when no physical nics will 
be used. And I need to use physical nic. But I don't understand why a 
zone can see all traffic that cross global zone. Is it not possible to 
restrict this traffic to only that comes/go to vnic??




--
CL Martinez
carlopmart {at} gmail {d0t} com

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Isolating networks for zones

2011-10-30 Thread carlopmart

On 10/30/2011 02:27 AM, Jeppe Toustrup wrote:

On Sat, Oct 29, 2011 at 23:30, carlopmart  wrote:

  I have installed oi zone under a oi_151a host to provide dns caching
services. All works ok now, except network isolation. Running snoop on
non-global zone I can see all traffic of all networks where global zone
connects. For example:


How is the vnic configured? (dladm show-vnic)

You might want to set the global zone up as a router which route
traffic from it's external interface to an etherstub (virtual switch)
which the vnic then is connected to. Then you shouldn't be able to
sniff network traffic from the external network on the zone.

--
Venlig hilsen / Kind regards
Jeppe Toustrup (aka. Tenzer)



Thanks Jeppe. I don't have configured a etherstub. current config is:

root@oihost:~# dladm show-vnic
LINK OVER SPEED  MACADDRESSMACADDRTYPE VID
dmzlan0  e1000g1  1000   2:8:20:dc:48:d9   random  0

and dladm show-phys:

root@oihost:~# dladm show-phys
LINK MEDIASTATE  SPEED  DUPLEXDEVICE
e1000g0  Ethernet up 1000   full  e1000g0
e1000g1  Ethernet up 1000   full  e1000g1
e1000g2  Ethernet unknown0  half  e1000g2

But one question: how can I associate certail physical interface to a 
etherstub?? Do I need to create a bridge with only one interface??


Thanks.

--
CL Martinez
carlopmart {at} gmail {d0t} com

___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] Corrupted video on Ekiga 3.2.7

2011-10-30 Thread Dave Koelmeyer

On 10/ 1/11 11:01 PM, Dave Koelmeyer wrote:

Hi All,

Is anyone else seeing broken video via USB webcam in Ekiga? Running 
oi_151a x86, builds 148 and 147 were fine with the same V4L2 driver 
and Logitech C600 webcam. This is what I'm seeing in the local video 
call panel:


http://www.davekoelmeyer.co.nz/docs/EkigaWebcamProbs.png



Anybody else able to test this and confirm at all?

Cheers,

--
Dave Koelmeyer
http://blog.davekoelmeyer.co.nz


___
OpenIndiana-discuss mailing list
OpenIndiana-discuss@openindiana.org
http://openindiana.org/mailman/listinfo/openindiana-discuss