4k alignment for attaching new disk to zfs mirror

2012-10-08 Thread Karolis Eigelis
Hi, Before creating a pool i setup two disks mirror with gnop trick to have ashift=12 - 4k pool alignment. I also did that for the disk partitions (gpt -a 4k option) to have partitions 4k alignment (diskinfo -v disk shows stripesize=4096 for both disks). Now i replaced one disk with a new one, bu

Re: ZFS and zpool mistake

2012-10-08 Thread Karolis Eigelis
if you want a mirror you need to do "attach" a new disk :) On Mon, Oct 8, 2012 at 5:29 PM, Matthias Fechner wrote: > Dear list, > > I installed a freebsd with freebsd on a zfs root and only one disk: > pool: zroot > state: ONLINE > scan: none requested > config: > > NAME STA

logging debug of hw.usb.debug=1 with syslog

2012-10-11 Thread Karolis Eigelis
Hi, i need to debug USB device and i want to log all the messages via syslog, but i do not know how to do that i looked at syslog.conf, but could find the flag i should use for debug.log. i used sysctl hw.usb.debug=1 lots of things i get printed out, but how to log them permanently ? Many Thanks