Re: Not getting an IPv6 in a jail

2009-09-01 Thread John Hay
On Tue, Sep 01, 2009 at 11:29:40PM +0200, FLEURIOT Damien wrote:
> On Tue, Sep 01, 2009 at 10:13:45PM +0200 or thereabouts, John Hay wrote:
> > 
> > I have not used jails with link-local addresses, only global addresses
> > and that works. It looks like you did not specify the whole link-local
> > address in the jail_*_ip line. You need to add the %interface for a
> > proper ipv6 link-local address, eg. fe80::c0a8:fc%lo252. Not everything
> > works with link-local addresses though and jail might be one of them.
> > 
> > John
> > -- 
> > John Hay -- j...@meraka.csir.co.za / j...@freebsd.org
> 
> 
> Thanks for the hint John, I just tried by appending the interface %
> and it still won't work any better:
> 
> rc.conf:
> jail_ns_ip="192.168.0.252,fe80::c0a8:fc%lo252"
> 
> jls -v output doesn't change.
> ifconfig output within the jail doesn't change.
> ifconfig output on the host's lo252 doesn't change.
> 
> I'm afraid I don't have spare IP6s to assign to my public interface
> so I can't test much more.

You can use site-local (fec0::) or rfc4193 addresses for testing.

John
-- 
John Hay -- j...@meraka.csir.co.za / j...@freebsd.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Not getting an IPv6 in a jail

2009-09-01 Thread FLEURIOT Damien
On Tue, Sep 01, 2009 at 10:13:45PM +0200 or thereabouts, John Hay wrote:
> On Tue, Sep 01, 2009 at 09:30:15PM +0200, Major Domo wrote:
> > Hello list,
> > 
> > 
> > Apologies if this has been discussed already but I searched the web
> > and the mailing lists and haven't found hints on my problem.
> > 
> > I've got a jail, I assign it a set of IP addresses, and it just won't
> > take the IP6 I give it.
> > 
> > 
> > Uname:
> > FreeBSD 7.2-STABLE
> > 
> > 
> > Sysctl jail MIBs:
> > security.jail.jail_max_af_ips: 255
> > security.jail.mount_allowed: 0
> > security.jail.chflags_allowed: 0
> > security.jail.allow_raw_sockets: 1
> > security.jail.enforce_statfs: 2
> > security.jail.sysvipc_allowed: 0
> > security.jail.socket_unixiproute_only: 1
> > security.jail.set_hostname_allowed: 0
> > 
> > 
> > /etc/rc.conf settings:
> > jail_enable="YES"
> > jail_set_hostname_allow="NO"
> > jail_list="ns"
> > jail_ns_interface="lo252"
> > jail_ns_hostname="[snip]"
> > jail_ns_ip="192.168.0.252,fe80::c0a8:fc"
> > jail_ns_rootdir="/var/jail/ns"
> > jail_ns_devfs_enable="YES"
> > 
> > 
> > jls -v:
> >JID  Hostname  Path
> > Name  State
> > CPUSetID
> > IP Address(es)
> > 23  [snip]  /var/jail/ns
> >   ALIVE
> > 2
> > 192.168.0.252
> > fe80::c0a8:fc
> > 
> > 
> > ifconfig lo252 from the host:
> > lo252: flags=8049 metric 0 mtu 16384
> > inet 192.168.0.252 netmask 0x
> > inet6 fe80::c0a8:fc%lo252 prefixlen 128 scopeid 0x5
> > 
> > 
> > ifconfig from the jail:
> > re0: flags=8843 metric 0 mtu 1500
> > 
> > options=389b
> > ether 00:e0:f4:19:e9:d2
> > media: Ethernet autoselect (100baseTX )
> > status: active
> > lo0: flags=8049 metric 0 mtu 16384
> > pflog0: flags=141 metric 0 mtu 33204
> > lo252: flags=8049 metric 0 mtu 16384
> > inet 192.168.0.252 netmask 0x
> > 
> > 
> > ping6 from the host:
> > PING6(56=40+8+8 bytes) fe80::c0a8:fc%lo252 --> fe80::c0a8:fc%lo252
> > 16 bytes from fe80::c0a8:fc%lo252, icmp_seq=0 hlim=64 time=0.082 ms
> > 
> > 
> > I fail to see what could be going wrong :(
> > 
> > Any pointers please ?
> 
> I have not used jails with link-local addresses, only global addresses
> and that works. It looks like you did not specify the whole link-local
> address in the jail_*_ip line. You need to add the %interface for a
> proper ipv6 link-local address, eg. fe80::c0a8:fc%lo252. Not everything
> works with link-local addresses though and jail might be one of them.
> 
> John
> -- 
> John Hay -- j...@meraka.csir.co.za / j...@freebsd.org


Thanks for the hint John, I just tried by appending the interface %
and it still won't work any better:

rc.conf:
jail_ns_ip="192.168.0.252,fe80::c0a8:fc%lo252"

jls -v output doesn't change.
ifconfig output within the jail doesn't change.
ifconfig output on the host's lo252 doesn't change.

I'm afraid I don't have spare IP6s to assign to my public interface
so I can't test much more.


--
Damien Fleuriot

___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Not getting an IPv6 in a jail

2009-09-01 Thread Bjoern A. Zeeb

On Tue, 1 Sep 2009, Major Domo wrote:

Hi,


Apologies if this has been discussed already but I searched the web
and the mailing lists and haven't found hints on my problem.

I've got a jail, I assign it a set of IP addresses, and it just won't
take the IP6 I give it.


Uname:
FreeBSD 7.2-STABLE

jail_ns_ip="192.168.0.252,fe80::c0a8:fc"

jls -v:
  JID  Hostname  Path
   Name  State
   CPUSetID
   IP Address(es)
   23  [snip]  /var/jail/ns
 ALIVE
   2
   192.168.0.252
   fe80::c0a8:fc


ifconfig lo252 from the host:
lo252: flags=8049 metric 0 mtu 16384
   inet 192.168.0.252 netmask 0x
   inet6 fe80::c0a8:fc%lo252 prefixlen 128 scopeid 0x5


ifconfig from the jail:
re0: flags=8843 metric 0 mtu 1500
   
options=389b
   ether 00:e0:f4:19:e9:d2
   media: Ethernet autoselect (100baseTX )
   status: active
lo0: flags=8049 metric 0 mtu 16384
pflog0: flags=141 metric 0 mtu 33204
lo252: flags=8049 metric 0 mtu 16384
   inet 192.168.0.252 netmask 0x



This is a rather special case.  For link-local addresses you have to
give the scope as well but it won't take the scope with the %lo252
notation but only in the KAME in-kernel syntax I would assume.
Can you try:

jail_ns_ip="192.168.0.252,fe80:5::c0a8:fc"

Note the added 5 in the second group of hex digits.  That five is the
interface index.  I took it from the "scopeid 0x5". In case your
interface index changes you will need to adjust the address.

I cannot say if it'll work but it would be worth a try.

/bz

--
Bjoern A. Zeeb   What was I talking about and who are you again?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Not getting an IPv6 in a jail

2009-09-01 Thread John Hay
On Tue, Sep 01, 2009 at 09:30:15PM +0200, Major Domo wrote:
> Hello list,
> 
> 
> Apologies if this has been discussed already but I searched the web
> and the mailing lists and haven't found hints on my problem.
> 
> I've got a jail, I assign it a set of IP addresses, and it just won't
> take the IP6 I give it.
> 
> 
> Uname:
> FreeBSD 7.2-STABLE
> 
> 
> Sysctl jail MIBs:
> security.jail.jail_max_af_ips: 255
> security.jail.mount_allowed: 0
> security.jail.chflags_allowed: 0
> security.jail.allow_raw_sockets: 1
> security.jail.enforce_statfs: 2
> security.jail.sysvipc_allowed: 0
> security.jail.socket_unixiproute_only: 1
> security.jail.set_hostname_allowed: 0
> 
> 
> /etc/rc.conf settings:
> jail_enable="YES"
> jail_set_hostname_allow="NO"
> jail_list="ns"
> jail_ns_interface="lo252"
> jail_ns_hostname="[snip]"
> jail_ns_ip="192.168.0.252,fe80::c0a8:fc"
> jail_ns_rootdir="/var/jail/ns"
> jail_ns_devfs_enable="YES"
> 
> 
> jls -v:
>JID  Hostname  Path
> Name  State
> CPUSetID
> IP Address(es)
> 23  [snip]  /var/jail/ns
>   ALIVE
> 2
> 192.168.0.252
> fe80::c0a8:fc
> 
> 
> ifconfig lo252 from the host:
> lo252: flags=8049 metric 0 mtu 16384
> inet 192.168.0.252 netmask 0x
> inet6 fe80::c0a8:fc%lo252 prefixlen 128 scopeid 0x5
> 
> 
> ifconfig from the jail:
> re0: flags=8843 metric 0 mtu 1500
> 
> options=389b
> ether 00:e0:f4:19:e9:d2
> media: Ethernet autoselect (100baseTX )
> status: active
> lo0: flags=8049 metric 0 mtu 16384
> pflog0: flags=141 metric 0 mtu 33204
> lo252: flags=8049 metric 0 mtu 16384
> inet 192.168.0.252 netmask 0x
> 
> 
> ping6 from the host:
> PING6(56=40+8+8 bytes) fe80::c0a8:fc%lo252 --> fe80::c0a8:fc%lo252
> 16 bytes from fe80::c0a8:fc%lo252, icmp_seq=0 hlim=64 time=0.082 ms
> 
> 
> I fail to see what could be going wrong :(
> 
> Any pointers please ?

I have not used jails with link-local addresses, only global addresses
and that works. It looks like you did not specify the whole link-local
address in the jail_*_ip line. You need to add the %interface for a
proper ipv6 link-local address, eg. fe80::c0a8:fc%lo252. Not everything
works with link-local addresses though and jail might be one of them.

John
-- 
John Hay -- j...@meraka.csir.co.za / j...@freebsd.org
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Fatal Trap 12 in various processes always at address 0x3030313a

2009-09-01 Thread Richard Mahlerwein

From: Richard Mahlerwein 
Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
To: "FreeBSD-Stable" 
Date: Tuesday, September 1, 2009, 2:58 PM

> From: Gavin Atkinson 
> Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
> To: "Richard Mahlerwein" 
> Cc: "FreeBSD-Stable" 
> Date: Sunday, August 30, 2009, 3:47 PM
> On Sat, 29 Aug 2009, Richard
> Mahlerwein wrote:
> 
>> I upgraded from 7.1-PRELEASE to -stable and all seemed fine
>> until I rebooted out of single user mode after doing make
>> installworld and mergemaster.  At that point, near the
>> end of the boot sequence I got a core dump, apparently
>> triggered by devd.
>> 
>> 
>> Fatal trap 12: page fault while in kernel mode.
>> cpu id = 0; apic id = 00
>> fault virtual address = 0x3030313a
>> fault code = supervisor write, page not present
>> [snip]
>> current process = 355 (devd)
>> 

>> Does anyone have a further recommendation on what to do,
>> try, test or change?
> 
> Firstly, please set up a dump partition by adding
> 'dumpdev="AUTO"' to your rc.conf.
> 
> Then, can you compile in the kernel debugger (options KGB /
> options DDB) and when this happens again, please obtain a
> backtrace from the debugger with the "bt" command. 
> Then, give the "show registers" command so that we can
> establish which register is pointing to the odd address.
> Finally, issue the "call" command to hopefully
> save a copy of the kernel dump for later analysis.
> 
> Thanks,
> 
> Gavin

TWO Pieces of information here, and please excuse the repost - darn mailer's 
making me look like such a noob (not like I need help at that!).  Again, 
mention it if this screws up the formatting too badly.  Now that I know certain 
stuff doesn't come across, I have not used it so hopefully this will turn out 
nicely.

Error at virtual address 0x3030313a
current process 352(sysctl) 

bt says (typing blind, but I think I got it):

Tracing pid 352 tid 100044 td 0xc3378480
sysctl_devctl_disable(c0c80ac0,0,0,d82fcba4,d82fcba4...) at 
sysctl_devctl_disable+0xaa
sysctl_root(d82fcba4,4,1,d82fcc60,0,...) at sysctl_root+0x187
userland_sysctl(c3378480,d82fcc14,3,0,0,...) at userland_sysctl+0x1c4
__sysctl(c3378480,d82fccfc,18,d82fcd38,d82fcd2c,...) at __sysctl_0x94
syscall(d82fcd38) at syscall_0x335
Xint0x80_syscall() at Xint0x80_syscall_0x20
--- syscall (202,FreeBSD ELF32, __sysctl, eip = 0x2815beaf, esp=0xbfbfe55c, epb 
= 0xbfbfe588 ---

show registers :

cs 0x20
ds 0xc1470028
es 0xc1470028
fs 0xc1460008
ss 0x28
eax 0xc0cea0cc devsoftc_0x4c
ecx 0
edx 0x30303132
ebx 0xc3181350
esp 0xd82fcb34
ebp 0xd82fcb54
esi 0
edi 0
eip 0xc08218da sysctl_devctl_disable+0xaa
efl 0x10202
sysctl_devctl_disable+0xaa: movl %eax,0x8(%edx)

I hope that tells someone on the list way more than it tells me.

On a hunch, I changed devd_enable="NO" to devd_enable="YES" in rc.conf, and get 
THIS
error (which is back to being almost the same as the original one I got on the 
first attempt at a new kernel)

vault virtual address 0x3030313a
fault code = supervisor write, page not present
instruction pointer = 0x20:0xc08216dc
stack pointer = 0x28: 0xd8311b70
frame pointer = 0x28:0xd8300b8c
code segment = base 0x0, limit 0xf, type 0x1b
 = DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process -= 255 (devd)
[thread pid 355 tid 100045 ]
stopped at devread+0x12c: movl %eax,0x8(%edx)

bt says:
Tracing pid 355 tid 100045 tc 0xc3378240
devread(c30df400,d8300c60,0,c3434564,d8300bd8,...) at devread+0x12c
giant_read(c30df400,d8300c60,0,0,400,...) at giant_read+0x89
devfs_read_f(c33adb48,d8300c60,c3071300,0,c33adb48,...) at dofileread+0x96
kern_readv(c3378240,3,d8300c60,bfbfe9f7,400,...) at kern_readv+0x58
read(c3378240,d8300cfc,c,8000,369e99,...) at read+0x4f
syscall(d8300d38) at syscall_0x335
Xint0x80_syscall() at Xint0x80_syscall_0x20
--- syscall (3, FreeBSD ELF32, read), eip - 0x8086c7f, esp = 0xbfbfe9bc, ebp = 
0xbfbfee98 ---

And show registers:
cs=20, ds=d8300028, es=d8300028, fs= d838, ss=28, eax=c0cea0cc devsoftc_0x4c
ecx=0x4, edx=0x30303132, ebx=oxc3181350, esp=pxd8300b70, ebp=oxd8300b8c,
esi=0xc30df400, edi=0x6, eip=oxc08216dc devread_0x12c, efl=0x10202
devread+0x12c: movl %eax, 0x8(%edx)

I'm still not quite sure what that's telling me, but is it significant that 
it's the same virtual location with a different piece of code loaded there 
because of a change in options?  No other change was made, just changing 
devd_enable.  I'm going to check loader.conf, too, as someone else suggested 
(but at this point, I didn't want to muddy the waters by changing two things at 
once).

Thanks again,
Rich




___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Ivan Voras
Maciej Jan Broniarz wrote:
> Hi,
> 
> Is is a bad ida to create a zfs pool from a gmirrored slice?
> zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
> the filesystem failes consistency check.

It *should* work. What error(s) do you get?



signature.asc
Description: OpenPGP digital signature


Not getting an IPv6 in a jail

2009-09-01 Thread Major Domo
Hello list,


Apologies if this has been discussed already but I searched the web
and the mailing lists and haven't found hints on my problem.

I've got a jail, I assign it a set of IP addresses, and it just won't
take the IP6 I give it.


Uname:
FreeBSD 7.2-STABLE


Sysctl jail MIBs:
security.jail.jail_max_af_ips: 255
security.jail.mount_allowed: 0
security.jail.chflags_allowed: 0
security.jail.allow_raw_sockets: 1
security.jail.enforce_statfs: 2
security.jail.sysvipc_allowed: 0
security.jail.socket_unixiproute_only: 1
security.jail.set_hostname_allowed: 0


/etc/rc.conf settings:
jail_enable="YES"
jail_set_hostname_allow="NO"
jail_list="ns"
jail_ns_interface="lo252"
jail_ns_hostname="[snip]"
jail_ns_ip="192.168.0.252,fe80::c0a8:fc"
jail_ns_rootdir="/var/jail/ns"
jail_ns_devfs_enable="YES"


jls -v:
   JID  Hostname  Path
Name  State
CPUSetID
IP Address(es)
23  [snip]  /var/jail/ns
  ALIVE
2
192.168.0.252
fe80::c0a8:fc


ifconfig lo252 from the host:
lo252: flags=8049 metric 0 mtu 16384
inet 192.168.0.252 netmask 0x
inet6 fe80::c0a8:fc%lo252 prefixlen 128 scopeid 0x5


ifconfig from the jail:
re0: flags=8843 metric 0 mtu 1500

options=389b
ether 00:e0:f4:19:e9:d2
media: Ethernet autoselect (100baseTX )
status: active
lo0: flags=8049 metric 0 mtu 16384
pflog0: flags=141 metric 0 mtu 33204
lo252: flags=8049 metric 0 mtu 16384
inet 192.168.0.252 netmask 0x


ping6 from the host:
PING6(56=40+8+8 bytes) fe80::c0a8:fc%lo252 --> fe80::c0a8:fc%lo252
16 bytes from fe80::c0a8:fc%lo252, icmp_seq=0 hlim=64 time=0.082 ms


I fail to see what could be going wrong :(

Any pointers please ?


Regards
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Fatal Trap 12 in various processes always at address 0x3030313a

2009-09-01 Thread Richard Mahlerwein
From: Richard Mahlerwein 
Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
To: "FreeBSD-Stable" 
Date: Tuesday, September 1, 2009, 2:58 PM

> From: Gavin Atkinson 
> Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
> To: "Richard Mahlerwein" 
> Cc: "FreeBSD-Stable" 
> Date: Sunday, August 30, 2009, 3:47 PM
> On Sat, 29 Aug 2009, Richard
> Mahlerwein wrote:
> 
>> I upgraded from 7.1-PRELEASE to -stable and all seemed fine
>> until I rebooted out of single user mode after doing make
>> installworld and mergemaster.  At that point, near the
>> end of the boot sequence I got a core dump, apparently
>> triggered by devd.
>> 
>> 
>> Fatal trap 12: page fault while in kernel mode.
>> cpu id = 0; apic id = 00
>> fault virtual address = 0x3030313a
>> fault code = supervisor write, page not present
>> [snip]
>> current process = 355 (devd)
>> 

>> Does anyone have a further recommendation on what to do,
>> try, test or change?
> 
> Firstly, please set up a dump partition by adding
> 'dumpdev="AUTO"' to your rc.conf.
> 
> Then, can you compile in the kernel debugger (options KGB /
> options DDB) and when this happens again, please obtain a
> backtrace from the debugger with the "bt" command. 
> Then, give the "show registers" command so that we can
> establish which register is pointing to the odd address.
> Finally, issue the "call" command to hopefully
> save a copy of the kernel dump for later analysis.
> 
> Thanks,
> 
> Gavin

Error at virtual address 0x3030313a
current process 352(sysctl) 

bt says (typing blind, but I think I got it):

Tracing pid 352 tid 100044 td 0xc3378480
sysctl_devctl_disable(c0c80ac0,0,0,d82fcba4,d82fcba4...) at 
sysctl_devctl_disable+0xaa
sysctl_root(d82fcba4,4,1,d82fcc60,0,...) at sysctl_root+0x187
userland_sysctl(c3378480,d82fcc14,3,0,0,...) at userland_sysctl+0x1c4
__sysctl(c3378480,d82fccfc,18,d82fcd38,d82fcd2c,...) at __sysctl_0x94
syscall(d82fcd38) at syscall_0x335
Xint0x80_syscall() at Xint0x80_syscall_0x20
--- syscall (202,FreeBSD ELF32, __sysctl, eip = 0x2815beaf, esp=0xbfbfe55c, epb 
= 0xbfbfe588 ---

show registers :

cs 0x20
ds 0xc1470028
es 0xc1470028
fs 0xc1460008
ss 0x28
eax 0xc0cea0cc devsoftc_0x4c
ecx 0
edx 0x30303132
ebx 0xc3181350
esp 0xd82fcb34
ebp 0xd82fcb54
esi 0
edi 0
eip 0xc08218da sysctl_devctl_disable+0xaa
efl 0x10202
sysctl_devctl_disable+0xaa: movl %eax,0x8(%edx)

I hope that tells someone on the list way more than it tells me.

Thanks again for all the help so far!

-Rich
I hope changing back to non-text (to get around some messed-up-ed-ness I've 
been having in my Yahoo account) won't mess
 this up too bad.  Please don't yell at me if it does - just a polite mention 
will do.  :)

I
changed devd_enable="NO" to devd_enable="YES" in rc.conf, and get THIS
error (which is back to being almost the same as the original one I got
on the first attempt at a new kernel)

vault virtual address 0x3030313a
fault code = supervisor write, page not present
instruction pointer = 0x20:0xc08216dc
stack pointer = 0x28: 0xd8311b70
frame pointer = 0x28:0xd8300b8c
code segment = base 0x0, limit 0xf, type 0x1b
=DPL 0, pres 1, def32 1, gran 1
processor eflags = interrupt enabled, resume, IOPL = 0
current process -= 255 (devd)
[thread pid 355 tid 100045 ]
stopped at devread+0x12c: movl %eax,0x8(%edx)

bt says:
Tracing pid 355 tid 100045 tc 0xc3378240
devread(c30df400,d8300c60,0,c3434564,d8300bd8,...) at devread+0x12c
giant_read(c30df400,d8300c60,0,0,400,...) at giant_read+0x89
devfs_read_f(c33adb48,d8300c60,c3071300,0,c33adb48,...) at
 dofileread+0x96
kern_readv(c3378240,3,d8300c60,bfbfe9f7,400,...) at kern_readv+0x58
read(c3378240,d8300cfc,c,8000,369e99,...) at read+0x4f
syscall(d8300d38) at syscall_0x335
Xint0x80_syscall() at Xint0x80_syscall_0x20
--- syscall (3, FreeBSD ELF32, read), eip - 0x8086c7f, esp = 0xbfbfe9bc, ebp = 
0xbfbfee98 ---

And show registers:
cs=20,ds=d8300028, es=d8300028,fs= d838, ss=28, eax=c0cea0cc devsoftc_0x4c
ecx=0x4,,
edx=0x30303132, ebx=oxc3181350, esp=pxd8300b70, ebp=oxd8300b8c,
esi=0xc30df400, edi=0x6, eip=oxc08216dc devread_0x12c, efl=0x10202
devread+0x12c: movl %eax, 0x8(%edx)

I'm
still not quite sure what that's telling me, but is it significant that
it's the same virtual location with a different piece of code loaded
there because of a change in options?  No other change was made, just
changing devd_enable.  I'm going to check loader.conf, too, as someone
else suggested (but at this point, I didn't want to muddy the waters by
changing two things at once).




___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Fatal Trap 12 in various processes always at address 0x3030313a

2009-09-01 Thread Richard Mahlerwein
> From: Gavin Atkinson 
> Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
> To: "Richard Mahlerwein" 
> Cc: "FreeBSD-Stable" 
> Date: Sunday, August 30, 2009, 3:47 PM
> On Sat, 29 Aug 2009, Richard
> Mahlerwein wrote:
> 
>> I upgraded from 7.1-PRELEASE to -stable and all seemed fine
>> until I rebooted out of single user mode after doing make
>> installworld and mergemaster.  At that point, near the
>> end of the boot sequence I got a core dump, apparently
>> triggered by devd.
>> 
>> 
>> Fatal trap 12: page fault while in kernel mode.
>> cpu id = 0; apic id = 00
>> fault virtual address = 0x3030313a
>> fault code = supervisor write, page not present
>> [snip]
>> current process = 355 (devd)
>> 

>> Does anyone have a further recommendation on what to do,
>> try, test or change?
> 
> Firstly, please set up a dump partition by adding
> 'dumpdev="AUTO"' to your rc.conf.
> 
> Then, can you compile in the kernel debugger (options KGB /
> options DDB) and when this happens again, please obtain a
> backtrace from the debugger with the "bt" command. 
> Then, give the "show registers" command so that we can
> establish which register is pointing to the odd address.
> Finally, issue the "call" command to hopefully
> save a copy of the kernel dump for later analysis.
> 
> Thanks,
> 
> Gavin

Error at virtual address 0x3030313a
current process 352(sysctl) 

bt says (typing blind, but I think I got it):

Tracing pid 352 tid 100044 td 0xc3378480
sysctl_devctl_disable(c0c80ac0,0,0,d82fcba4,d82fcba4...) at 
sysctl_devctl_disable+0xaa
sysctl_root(d82fcba4,4,1,d82fcc60,0,...) at sysctl_root+0x187
userland_sysctl(c3378480,d82fcc14,3,0,0,...) at userland_sysctl+0x1c4
__sysctl(c3378480,d82fccfc,18,d82fcd38,d82fcd2c,...) at __sysctl_0x94
syscall(d82fcd38) at syscall_0x335
Xint0x80_syscall() at Xint0x80_syscall_0x20
--- syscall (202,FreeBSD ELF32, __sysctl, eip = 0x2815beaf, esp=0xbfbfe55c, epb 
= 0xbfbfe588 ---

show registers :

cs 0x20
ds 0xc1470028
es 0xc1470028
fs 0xc1460008
ss 0x28
eax 0xc0cea0cc devsoftc_0x4c
ecx 0
edx 0x30303132
ebx 0xc3181350
esp 0xd82fcb34
ebp 0xd82fcb54
esi 0
edi 0
eip 0xc08218da sysctl_devctl_disable+0xaa
efl 0x10202
sysctl_devctl_disable+0xaa: movl %eax,0x8(%edx)

I hope that tells someone on the list way more than it tells me.

Thanks again for all the help so far!

-Rich



___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Thomas Backman

On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:


Hi,

Is is a bad ida to create a zfs pool from a gmirrored slice?
zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
the filesystem failes consistency check.

Regards,
mjb
I'm not familiar with gmirror, but it'd be a way better idea to mirror  
it using ZFS if possible - that way you get self-healing and stuff  
like that, which you won't if ZFS doesn't have a mirror/RAIDZ setup,  
but only sees a single slice.


Regards,
Thomas
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Thomas Backman

On Sep 1, 2009, at 6:04 PM, Maciej Jan Broniarz wrote:


2009/9/1 Thomas Backman :

On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:


I'm not familiar with gmirror, but it'd be a way better idea to  
mirror it
using ZFS if possible - that way you get self-healing and stuff  
like that,
which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only  
sees a

single slice.



I would like to do so. I have to disks (ad4 and ad5). Is it possible
to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
Then to create gmirror on ad4s1, install freebsd on it so it would
boot from it. Then, after having my system running to create zfs
mirror from ad4s2 and ad5s2?
Why not go ZFS all the way? ZFS on root is well supported these days  
(well, not by sysinstall, but it works great if you do it manually) -  
you don't even need UFS /boot anymore.
Again, not familiar with gmirror, but my guess (that will be corrected  
or confirmed by someone ;) is that your way would work too.


Regards,
Thomas
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


GCC -m32 option on FreeBSD/AMD64 7.2

2009-09-01 Thread Václav Haisman
Hi,
is C++ + GCC -m32 option officially supported by FreeBSD/AMD64 7.2? I am
getting the following errors for simplest input:

shell::wilx:~/tmp> cat >m32.cxx
#include 
shell::wilx:~/tmp> g++ -c m32.cxx
shell::wilx:~/tmp> g++ -m32 m32.cxx
In file included from /usr/include/c++/4.2/ext/new_allocator.h:37,
 from /usr/include/c++/4.2/bits/c++allocator.h:39,
 from /usr/include/c++/4.2/bits/allocator.h:53,
 from /usr/include/c++/4.2/memory:54,
 from /usr/include/c++/4.2/string:48,
 from /usr/include/c++/4.2/bits/locale_classes.h:47,
 from /usr/include/c++/4.2/bits/ios_base.h:47,
 from /usr/include/c++/4.2/ios:48,
 from /usr/include/c++/4.2/ostream:45,
 from /usr/include/c++/4.2/iostream:45,
 from m32.cxx:1:
/usr/include/c++/4.2/new:95: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:96: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:99: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:100: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:105: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter
/usr/include/c++/4.2/new:106: error: 'operator new' takes type 'size_t'
('unsigned int') as first parameter

--
VH



signature.asc
Description: OpenPGP digital signature


Re: zfs on gmirror slice

2009-09-01 Thread Miroslav Lachman

Maciej Jan Broniarz wrote:

2009/9/1 Thomas Backman :


On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:


I'm not familiar with gmirror, but it'd be a way better idea to mirror it
using ZFS if possible - that way you get self-healing and stuff like that,
which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a
single slice.




I would like to do so. I have to disks (ad4 and ad5). Is it possible
to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
Then to create gmirror on ad4s1, install freebsd on it so it would
boot from it. Then, after having my system running to create zfs
mirror from ad4s2 and ad5s2?


Yes, I am using it this way:

r...@cage ~/# gmirror status
   NameStatus  Components
mirror/gms1  COMPLETE  ad4s1
   ad6s1


r...@cage ~/# zpool status
  pool: tank
 state: ONLINE
 scrub: none requested
config:

NAMESTATE READ WRITE CKSUM
tankONLINE   0 0 0
  mirrorONLINE   0 0 0
ad4s2   ONLINE   0 0 0
ad6s2   ONLINE   0 0 0

errors: No known data errors


r...@cage ~/# zpool list
NAMESIZEUSED   AVAILCAP  HEALTH ALTROOT
tank444G353G   91.2G79%  ONLINE -


gmirror gms1 is for system files, ports etc. zpool (444GB) is for jails

Miroslav Lachman
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Freddie Cash
On Tue, Sep 1, 2009 at 9:04 AM, Maciej Jan Broniarz wrote:

> 2009/9/1 Thomas Backman :
> > On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:
> > I'm not familiar with gmirror, but it'd be a way better idea to mirror it
> > using ZFS if possible - that way you get self-healing and stuff like
> that,
> > which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a
> > single slice.
>
> I would like to do so. I have to disks (ad4 and ad5). Is it possible
> to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
> Then to create gmirror on ad4s1, install freebsd on it so it would
> boot from it. Then, after having my system running to create zfs
> mirror from ad4s2 and ad5s2?
>
> Yes, this is definitely doable.

You can use entire drives (ad4), single slices (ad4s1), or individual
partitions (ad4s1d) with ZFS.

Create two slices; install to and use s1 on both drives for the gmirror
RAID1; and use s2 on both drives for a ZFS RAID1.

-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Maciej Jan Broniarz
2009/9/1 Thomas Backman :
> On Sep 1, 2009, at 4:04 PM, Maciej Jan Broniarz wrote:
>
>
> I'm not familiar with gmirror, but it'd be a way better idea to mirror it
> using ZFS if possible - that way you get self-healing and stuff like that,
> which you won't if ZFS doesn't have a mirror/RAIDZ setup, but only sees a
> single slice.
>

I would like to do so. I have to disks (ad4 and ad5). Is it possible
to create two slices on both disks (eg ad4s1 and ad4s2 for ad4).
Then to create gmirror on ad4s1, install freebsd on it so it would
boot from it. Then, after having my system running to create zfs
mirror from ad4s2 and ad5s2?

mjb



-- 
[ -< Maciej Jan Broniarz || gau...@gausus.net >-- ]
| Siamo qui \ sotto la stessa luce \ sotto la sua croce \ |
| cantando ad una voce \ E l'Emmanuel Emmanuel, Emmanuel, |
[ ---< E l'Emmanuel, Emmanuel >-- ]
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Fatal Trap 12 in various processes always at address 0x3030313a

2009-09-01 Thread Richard Mahlerwein
--- On Sun, 8/30/09, Gavin Atkinson  wrote:

> From: Gavin Atkinson 
> Subject: Re: Fatal Trap 12 in various processes always at address 0x3030313a
> To: "Richard Mahlerwein" 
> Cc: "FreeBSD-Stable" 
> Date: Sunday, August 30, 2009, 3:47 PM
> On Sat, 29 Aug 2009, Richard
> Mahlerwein wrote:
> 
> > (Sorry, update to subject to be )
> > 
> > 3 weeks ago:
> > I upgraded from 7.1-PRELEASE to -stable and all seemed
> fine
> > until I rebooted out of single user mode after doing
> make
> > installworld and mergemaster.  At that point, near
> the
> > end of the boot sequence I got a core dump,
> apparently
> > triggered by devd.
> > 
> > 
> > Fatal trap 12: page fault while in kernel mode.
> > cpu id = 0; apic id = 00
> > fault virtual address = 0x3030313a
> > fault code = supervisor write, page not present
> > [snip]
> > current process = 355 (devd)
> > 
> > 
> > [snip]
> > Does anyone have a further recommendation on what to
> do,
> > try, test or change?
> 
> Firstly, please set up a dump partition by adding
> 'dumpdev="AUTO"' to your rc.conf.
> 
> Then, can you compile in the kernel debugger (options KGB /
> options DDB) and when this happens again, please obtain a
> backtrace from the debugger with the "bt" command. 
> Then, give the "show registers" command so that we can
> establish which register is pointing to the odd address.
> Finally, issue the "call doadump()" command to hopefully
> save a copy of the kernel dump for later analysis.
> 
> Thanks,
> 
> Gavin

No problem, but for future reference by others reading this thread, the 
handbook says KGB should be KDB, which is what I'm enabling in the kernel 
config.  DDB is fine.

http://www.freebsd.org/doc/en/books/developers-handbook/kerneldebug-online-ddb.html




___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Pete French
> ZFS includes support for RAID0 (stripe), RAID1 (mirroring), RAID5 and RAID6
> (raidz1/raidz2), and (soon in OpenSolaris) RAID7 (raidz3).  Why would you
> want to build a pool out of devices that are already RAID'd together?

Because gmirror type RAIDing is more appropriate for your application
than ZFS RAID ? I am not the original poster, but I can easily
see why one would want to do do this. For example making a gmirror
of a local drive and a remote drive - you can ask gmirror to prefer
reads on the local disc, but there isn't a way to specify that
in ZFS that I know of. Also gmirror on top of ggate behaves nicely if
the remote drive fails. ZFS does not behave nicely at all - or it didn't
when I ran tests. I havent tried on the latest version I admit.

But ZFS as a filesystem still has many significant advantages, so
runnng it on top of gmirror is actually a worthwhile thing to do.

-pete.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: zfs on gmirror slice

2009-09-01 Thread Freddie Cash
On Tue, Sep 1, 2009 at 7:04 AM, Maciej Jan Broniarz wrote:

> Is is a bad ida to create a zfs pool from a gmirrored slice?
> zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
> the filesystem failes consistency check.
>
> You could, but the question is ... why would you?

ZFS includes support for RAID0 (stripe), RAID1 (mirroring), RAID5 and RAID6
(raidz1/raidz2), and (soon in OpenSolaris) RAID7 (raidz3).  Why would you
want to build a pool out of devices that are already RAID'd together?

Just use the bare disks, or slices on disks, or partitions even.

-- 
Freddie Cash
fjwc...@gmail.com
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


zfs on gmirror slice

2009-09-01 Thread Maciej Jan Broniarz
Hi,

Is is a bad ida to create a zfs pool from a gmirrored slice?
zpool create tank /dev/mirror/gm0s1g works fine, but after the reboot
the filesystem failes consistency check.

Regards,
mjb


-- 
[ -< Maciej Jan Broniarz || gau...@gausus.net >-- ]
| Siamo qui \ sotto la stessa luce \ sotto la sua croce \ |
| cantando ad una voce \ E l'Emmanuel Emmanuel, Emmanuel, |
[ ---< E l'Emmanuel, Emmanuel >-- ]
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"