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,
Karolis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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, but cant get the diskinfo or gpart
list to display stripesize=4096 - did everything as usual (gpt -a 4k for
partitions). Or do i have to re-create my pool with gnop trick again ?

Do you have an idea if that at all is needed ? Some other information i
found says that as long as pool is 4k alignment is done (ashif=12) you do
not need to do 4k alignment for new disk for partitions with gpart -a 4k
option. Could someone please comment on that ?

Many Thanks,
Karolis
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


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 ide...@fechner.net 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 STATE READ WRITE CKSUM
 zrootONLINE   0 0 0
   ada0p3 ONLINE   0 0 0

 This disk was now insterted into the computer and boots fine.
 The next step I wanted was to setup a mirror with a second disk.

 So I inserted a second disk, configured everything with gpart and added
 the disk to the zroot with:
 zpool add zroot gpt/disk1
 (I think I had to execute zpool add zroot mirror gpt/disk1, this is not
 clear from the man page)

 And now I have a problem, it seems not to be a mirror but a stripe:
 NAME STATE READ WRITE CKSUM
 zrootONLINE   0 0 0
   ada0p3 ONLINE   0 0 0
   gpt/disk1  ONLINE   0 0 0

 Is there any chance to get it into a mirror?

 I don't think there was anything written to the second disk but I cannot
 remove it anymore.

 Has anyone a tip for me, howto convert the stripe to a mirror?

 Thanks,
 Matthias

 --
 Programming today is a race between software engineers striving to
 build bigger and better idiot-proof programs, and the universe trying to
 produce bigger and better idiots. So far, the universe is winning. --
 Rich Cook
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 freebsd-questions-unsubscr...@freebsd.org

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