Re: setup journaling for root partition

2013-05-23 Thread Michael Sierchio
On Wed, May 22, 2013 at 10:53 PM, s m sam.gh1...@gmail.com wrote:

 thanks Michael for your quick reply:)
 yes, i can boot from usb freebsd flash and use fixit mode.
 i have root, var, tmp, usr and swap on my system. i create an extra swap
 partition to use it as journal provider for root partition.

 in fixit mode, first i run two below command in order to abel load
 gjournal:

 ln -s /dist/lib /lib
 ls -s /dist/boot/kernel /boot/modules

 then
 gjournal load

 and after that: gjournal label -f ad3s1a ad3s1g (ad3s1a is root
 partition and ad3s1g is swap partition for journal provider)

 but this error is shown:
 gjournal cannot clear metadata on ad3s1a: operation not permitted
 what is wrong here??? i really don't know how to fix it:


Try using -v to get more verbose output.  I am at a loss here, too.
 Perhaps you can try

gjournal load
dd if=/dev/zero of=/dev/ad3s1g bs=1m
gjournal clear -v ad3s1a
gjournal label -vf ad3s1a ad3s1g

and see what it says, if anything.
___
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: setup journaling for root partition

2013-05-23 Thread s m
thanks,

i do as you said, but after loading gjournal, dd says operation not
permitted.
gjournal clear says operation not permitted too and therefore gjournal
label is not done and say previous error (gjournal cannot clear metadata
on ad3s1a: operation not permitted). and -v return no extra log.

i don't know why i can not do any thing in fixit mode:(

is this a true procedure? i mean maybe i should do any thing else  because
freebsd handbook set journaling for user partition in single user mode not
in fixit mode. i test it and it works well, but for root partition i can
not do the same because root partition can not be unmount in single user
mode.

any hints or comments are really appreciated.
thanks in advance



On Thu, May 23, 2013 at 10:41 AM, Michael Sierchio ku...@tenebras.comwrote:


 On Wed, May 22, 2013 at 10:53 PM, s m sam.gh1...@gmail.com wrote:

 thanks Michael for your quick reply:)
 yes, i can boot from usb freebsd flash and use fixit mode.
 i have root, var, tmp, usr and swap on my system. i create an extra swap
 partition to use it as journal provider for root partition.

 in fixit mode, first i run two below command in order to abel load
 gjournal:

 ln -s /dist/lib /lib
 ls -s /dist/boot/kernel /boot/modules

 then
 gjournal load

 and after that: gjournal label -f ad3s1a ad3s1g (ad3s1a is root
 partition and ad3s1g is swap partition for journal provider)

 but this error is shown:
 gjournal cannot clear metadata on ad3s1a: operation not permitted
 what is wrong here??? i really don't know how to fix it:


 Try using -v to get more verbose output.  I am at a loss here, too.
  Perhaps you can try

 gjournal load
 dd if=/dev/zero of=/dev/ad3s1g bs=1m
 gjournal clear -v ad3s1a
 gjournal label -vf ad3s1a ad3s1g

 and see what it says, if anything.


___
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 install on a partition

2013-05-23 Thread Albert Shih
 Le 17/05/2013 ? 20:03:30-0400, Paul Kraus a écrit
 
 ZFS is stable, it is NOT as tuned as UFS just due to age. UFS in all of it's 
 various incarnations has been tuned far more than any filesystem has any 
 right to be. I spent many years managing Solaris system and I was truly 
 amazed at how tuned the Solaris version of UFS was.
 
 I have been running a number of 9.0 and 9.1 servers in production, all 
 running ZFS for both OS and data, with no FS related issues.

Have you ever try to update a ZFS Pool on 9.0 to 9.1 ? 


I've a server with a big zpool in 9.0 I'm wonder if it's good idea to
upgrade to 9.1. If I lost the data I'm  close to dead person. If I thinking
to upgrade to 9.1 it's because I got small issue about NFSD, LACP.

Regards.

JAS

-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
France
Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
jeu 23 mai 2013 10:51:49 CEST
___
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: Fresh installation 9.1

2013-05-23 Thread hrkesh sahu
Hi Trond,
Thanks a lot for your help and Ipv6 routing is working with FreeBSD OS.
we want to go for Ipv6 certification for our IPv6 stack.
And Ipv6 stack we want to use FreeBSD as one vendor router.

Now It will be easy for IPv6 interoperability test with freeBSD.

for Ipv6 interoperability test We need another router device and I am
planning use Ubuntu as IPv6 router.

Please let me your personal view and if you can help me on this, it will be
grateful.

 How to enable gateway for IPv6 in Ubuntu?
 Router may require to do send Neighbor advertisement for Host Neighbor
solicitation . I installed radvd  in ubuntu.
 could you please share radvd.conf  of ubuntu?

regards



On Wed, May 22, 2013 at 7:53 PM, Trond Endrestøl 
trond.endres...@fagskolen.gjovik.no wrote:

 On Wed, 22 May 2013 19:34+0530, hrkesh sahu wrote:

  Hi Trond,
  Thanks a lot for a clear reply.
  Could you please tell me Laptop1 ipv6 configuration details?
  as laptop auto configuration will generate the LL address for a auto ipv6
  configuration.
  For Interface rl0 ipv6 address
  ifconfig_rl0_ipv6=inet6 fd8f:d6d0:e6e7:100::101 prefixlen 64 ,
 
  what will be laptop ipv6 address?

 It depends solely on the operating system and whether IPv6 privacy is
 in effect.

 Normally, the client will perform stateless automatic address
 configuration (SLAAC). It goes pretty much like this:

 The router announces the 64 bit prefix, usually every 200 seconds, but
 the client may request a new announcement at any time. The client
 generates a 64 bit interface identifier based on its 48 bit MAC
 address. The client then concatenates the supplied prefix with the
 generated interface identifier. The client then performs duplicate
 address detection (DAD), and if everythings checks out, the client got
 its IPv6 address.

 Given this prefix fd8f:d6d0:e6e7:100::/64, and this MAC address
 50:e5:49:41:4d:70.

 The client would then generated this interface id:
 52e5:49ff:fe41:4d70.

 The Universal/Local bit of the MAC address is inverted, and FF:FE is
 placed at center. (It really ought to be FF:FF, but way back in time
 someone misread the IEEE standards regarding conversion from 48 bit
 MAC addresses to EUI64 format. This oversight doesn't really matter.)

 The same client would then aqcuire this IPv6 address:
 fd8f:d6d0:e6e7:100:52e5:49ff:fe41:4d70, and perform DAD.

 The client gets its IPv6 default route/gateway from the router
 announcement.

 Of course, you may configure the IPv6 address and gateway manually on
 the client, say fd8f:d6d0:e6e7:100::1337/64 (client's address) and
 fd8f:d6d0:e6e7:100::101 (gateway's address).

  On Wed, May 22, 2013 at 6:54 PM, Trond Endrestøl 
  trond.endres...@fagskolen.gjovik.no wrote:
 
   On Wed, 22 May 2013 18:21+0530, hrkesh sahu wrote:
  
Hi Trond ,
Thanks a lot.
Now i am able to ping to other network with IPv4 address.
   
For IPv6 I added these lines in rc.conf -
first I included -
ipv6_gateway_enable=YES
   
++ Laptop1( Ipv6 address fe80::224:7eff:fee0:6b51) is connected to
interface rl0 ( ipv6 address - fe80::21f:b5ff:fe48:9f73)
While doing ping6 from fe80::224:7eff:fee0:6b51 to
fe80::21f:b5ff:fe48:9f73 - it is working. Neighbor advertisement
 from
fe80::21f:b5ff:fe48:9f73 is happening.
while doing from ping6 from fe80::224:7eff:fee0:6b51 to other
 interface
fe80::21f:d0ff:fe40:8bbd , then there is no Neighbor advertisement.
   
After this I included these two lines to rc.conf -
   
rtadvd_enable=YES
rtadvd_interfaces=rl0
   
I have not created any file like /etc/rtadvd.conf . Do i need to
 create
this configuration file?
if yes, what should be the input to rtadvd.conf for  link local
 address?
   
please find Ipv6 interface details.
   
   
Ifconfig

re0: flags=8843UP,Broadcast,
Running,Simplex,Multicast Metric 0 mtu 1500
options=8209bRXCSUM,TXCSUM,
VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE
ether 00:1f:d0:40:8b:bd
inet6 fe80::21f:d0ff:fe40:8bbd%re0 prefixlen 64 scopeid 0x5
inet 192.168.200.101 netmask 0xff00 broadcast
 192.168.200.255
nd6 options=21PERFORMNUD,AUTO_
LINKLOCAL
media:Enthernet autoselect (none)
status:active
   
rl0: flags=8843UP,Broadcast,
Running,Simplex,Multicast Metric 0 mtu 1500
options=2008VLAN_MTU,WOL_MAGIC
ether 00:10:b5:48:9f:73
inet6 fe80::21f:b5ff:fe48:9f73%rl0 prefixlen 64 scopeid 0xa
inet 192.168.100.101 netmask 0xff00 broadcast
 192.168.100.255
nd6 options=21PERFORMNUD,AUTO_LINKLOCAL
media:Enthernet autoselect (none)
status: active
  
   Congratz on achieving active carrier wave on your NICs.
  
   Right now your system is running with link-local IPv6 addresses. You
   may view LL addresses as VLAN local. Packets to such addresses will
   never ever be forwarded by a router.
  
   Instead set up either official IPv6 addresses/subnets or create your
   own Unique 

Re: ZFS install on a partition

2013-05-23 Thread Albert Shih
 Le 18/05/2013 ? 09:02:15-0400, Paul Kraus a écrit
 On May 18, 2013, at 3:21 AM, Ivailo Tanusheff
 ivailo.tanush...@skrill.com wrote:
 
  If you use HBA/JBOD then you will rely on the software RAID of the
  ZFS system. Yes, this RAID is good, but unless you use SSD disks to
  boost performance and a lot of RAM the hardware raid should be more
  reliable and mush faster.
 
   Why will the hardware raid be more reliable ? While hardware raid is
   susceptible to uncorrectable errors from the physical drives
   (hardware raid controllers rely on the drives to report bad reads and
   writes), and the uncorrectable error rate for modern drives is such
   that with high capacity drives (1TB and over) you are almost certain
   to run into a couple over the operational life of the drive. 10^-14
   for cheap drives and 10^-15 for better drives, very occasionally I
   see a drive rated for 10^-16. Run the math and see how many TB worth
   of data you have to write and read (remember these failures are
   generally read failures with NO indication that a failure occurred,
   bad data is just returned to the system).
 
   In terms of performance HW raid is faster, generally due to the cache
   RAM built into the HW raid controller. ZFS makes good use of system,

Before I'm installing my server under 9.0 + ZFS I do some benchmarks with
ionice to compare 

FreeBSD 9.0+ ZFS + 12 disk SATA 7200 rpm vs CentOS + H700 + 12 disk SAS 
15krpm

(Both are same Dell poweredge).

And the ZFS+12 disk sata goes much faster than CentOS+H700+ext4 almost 
everywhere. Only
for small file AND small record size the ZFS is slower than CentOS. 

The server don't have SSD. He got 48Go of ram. 

Regards.

JAS
-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
France
Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
jeu 23 mai 2013 10:53:50 CEST
___
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: Keeping my system up to date with CTM or subversion?

2013-05-23 Thread Mike Clarke
On Wednesday 22 May 2013 21:23:39 Ed Flecko wrote:

 When security vulnerabilities are discovered and patches released by FBSD,
 the patch will tell you what steps you need to take to apply the patch and
 stay up to date, won't it?

Yes, if you subscribe to the FreeBSD Security Notifications mailing list 
http://lists.freebsd.org/mailman/listinfo/freebsd-security-notifications 
you'll get email notifications when security parches are available. These give 
details of the background and impact of the vulnerability along with 
instructions of how to obtain and apply the patches.

-- 
Mike Clarke
___
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


file corruption solution (soft-update or ZFS)

2013-05-23 Thread saeedeh motlagh
hello every body

i have a question about fixing file corruption in freebsd.

now i have freebsd8.2 and some times file corruption happened on it. this
issue has a heavy cost for me and i want to avoid it or fixit it
completely. so my question is:

is it better to upgrade my freebsd to 9.1 and use soft update or migrate
from UFS to ZFS?

i heard so much about soft update -that is added in freebsd9.1-  which can
fix file corruption in acceptable way with low cost but i don't know how
much is reliable and efficient.

in the other hand, i think migration from UFS to ZFS can be another
solution. as i read ZFS is is created to solve all the problems related
integrity file system. is it reliable enough in comparison soft-update?

now, i want to know which solution is better and why?
thanks in advance
s.motlagh
___
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: Fresh installation 9.1

2013-05-23 Thread Trond Endrestøl
On Thu, 23 May 2013 14:26+0530, hrkesh sahu wrote:

 Hi Trond,
 Thanks a lot for your help and Ipv6 routing is working with FreeBSD OS.
 we want to go for Ipv6 certification for our IPv6 stack.
 And Ipv6 stack we want to use FreeBSD as one vendor router.
 
 Now It will be easy for IPv6 interoperability test with freeBSD.
 
 for Ipv6 interoperability test We need another router device and I am
 planning use Ubuntu as IPv6 router.
 
 Please let me your personal view and if you can help me on this, it will be
 grateful.
 
 How to enable gateway for IPv6 in Ubuntu? Router may require to do 
 send Neighbor advertisement for Host Neighbor solicitation . I 
 installed radvd in ubuntu. could you please share radvd.conf of 
 ubuntu?

Hmm. I'm not at all familiar with Ubuntu or any other Linux distro for 
that matter. I admit, I did try out Debian/amd64 7.0.0 a couple of 
weeks ago, but I have far more experience with FreeBSD than anything 
else in the *nix world.

Truth to be told, I regard most Linux distros as inferior compared to 
the *BSDs, due to the Linux distros forcing you to install a whole lot 
of bloat. It probably boils down to what level you are on, be it Joe 
Public or someone with more experience when it comes to computers and 
operating systems. Maybe I'm just misinformed and there exists a Linux 
distro or two letting the user/administrator chose what to install 
rather well.

 On Wed, May 22, 2013 at 7:53 PM, Trond Endrestøl 
 trond.endres...@fagskolen.gjovik.no wrote:
 
  On Wed, 22 May 2013 19:34+0530, hrkesh sahu wrote:
 
   Hi Trond,
   Thanks a lot for a clear reply.
   Could you please tell me Laptop1 ipv6 configuration details?
   as laptop auto configuration will generate the LL address for a auto ipv6
   configuration.
   For Interface rl0 ipv6 address
   ifconfig_rl0_ipv6=inet6 fd8f:d6d0:e6e7:100::101 prefixlen 64 ,
  
   what will be laptop ipv6 address?
 
  It depends solely on the operating system and whether IPv6 privacy is
  in effect.
 
  Normally, the client will perform stateless automatic address
  configuration (SLAAC). It goes pretty much like this:
 
  The router announces the 64 bit prefix, usually every 200 seconds, but
  the client may request a new announcement at any time. The client
  generates a 64 bit interface identifier based on its 48 bit MAC
  address. The client then concatenates the supplied prefix with the
  generated interface identifier. The client then performs duplicate
  address detection (DAD), and if everythings checks out, the client got
  its IPv6 address.
 
  Given this prefix fd8f:d6d0:e6e7:100::/64, and this MAC address
  50:e5:49:41:4d:70.
 
  The client would then generated this interface id:
  52e5:49ff:fe41:4d70.
 
  The Universal/Local bit of the MAC address is inverted, and FF:FE is
  placed at center. (It really ought to be FF:FF, but way back in time
  someone misread the IEEE standards regarding conversion from 48 bit
  MAC addresses to EUI64 format. This oversight doesn't really matter.)
 
  The same client would then aqcuire this IPv6 address:
  fd8f:d6d0:e6e7:100:52e5:49ff:fe41:4d70, and perform DAD.
 
  The client gets its IPv6 default route/gateway from the router
  announcement.
 
  Of course, you may configure the IPv6 address and gateway manually on
  the client, say fd8f:d6d0:e6e7:100::1337/64 (client's address) and
  fd8f:d6d0:e6e7:100::101 (gateway's address).
 
   On Wed, May 22, 2013 at 6:54 PM, Trond Endrestøl 
   trond.endres...@fagskolen.gjovik.no wrote:
  
On Wed, 22 May 2013 18:21+0530, hrkesh sahu wrote:
   
 Hi Trond ,
 Thanks a lot.
 Now i am able to ping to other network with IPv4 address.

 For IPv6 I added these lines in rc.conf -
 first I included -
 ipv6_gateway_enable=YES

 ++ Laptop1( Ipv6 address fe80::224:7eff:fee0:6b51) is connected to
 interface rl0 ( ipv6 address - fe80::21f:b5ff:fe48:9f73)
 While doing ping6 from fe80::224:7eff:fee0:6b51 to
 fe80::21f:b5ff:fe48:9f73 - it is working. Neighbor advertisement
  from
 fe80::21f:b5ff:fe48:9f73 is happening.
 while doing from ping6 from fe80::224:7eff:fee0:6b51 to other
  interface
 fe80::21f:d0ff:fe40:8bbd , then there is no Neighbor advertisement.

 After this I included these two lines to rc.conf -

 rtadvd_enable=YES
 rtadvd_interfaces=rl0

 I have not created any file like /etc/rtadvd.conf . Do i need to
  create
 this configuration file?
 if yes, what should be the input to rtadvd.conf for  link local
  address?

 please find Ipv6 interface details.


 Ifconfig
 
 re0: flags=8843UP,Broadcast,
 Running,Simplex,Multicast Metric 0 mtu 1500
 options=8209bRXCSUM,TXCSUM,
 VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,WOL_MAGIC,LINKSTATE
 ether 00:1f:d0:40:8b:bd
 inet6 fe80::21f:d0ff:fe40:8bbd%re0 prefixlen 64 scopeid 0x5
 inet 192.168.200.101 netmask 0xff00 broadcast
  192.168.200.255
 

Re: setup journaling for root partition

2013-05-23 Thread Torsten Hantzsche

On Thu, 23 May 2013, s m wrote:



thanks,

i do as you said, but after loading gjournal, dd says operation not
permitted.
gjournal clear says operation not permitted too and therefore gjournal
label is not done and say previous error (gjournal cannot clear metadata
on ad3s1a: operation not permitted). and -v return no extra log.

i don't know why i can not do any thing in fixit mode:(

is this a true procedure? i mean maybe i should do any thing else  because
freebsd handbook set journaling for user partition in single user mode not
in fixit mode. i test it and it works well, but for root partition i can
not do the same because root partition can not be unmount in single user
mode.

any hints or comments are really appreciated.
thanks in advance



Hi,

i remember having similar error messages with glabel some years ago.
The solution was found in man 4 geom in section DIAGNOSTICS:

I had to set kern.geom.debugflags=0x10 to enable the foot shooting mode.

Maybe this could help you too?


Torsten
___
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


HP 2570p installation

2013-05-23 Thread Ludovit Koren

Hi,

I bought HP Elitebook 2570p(B6Q08EA). I checked everything, if it is
compatible, before I bought it. Unfortunately, I cannot install 9.1
RELEASE, nor 10.0 CURRENT. I get the following:

BTX loader 1.00  BTX version is 1.02
Consoles: internal video/keyboard
BIOS drive C: is disk0
BIOS drive D: is disk1
BIOS 631kB/523264kB available memory

FreeBSD/x86 bootstrap loader, Revision 1.1
(r...@snap.freebsd.org, Mon May 13 00:38:05 UTC 2013)
|


and the system beeps and freezes. I added hint.acpi.0.disabled=1 to
the file /boot/loader.conf with no effect. Please, could you point me
how to find out what causes the problem - even the way of debugging?

Thank you very much.

regards,

lk
___
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: setup journaling for root partition

2013-05-23 Thread RW
On Thu, 23 May 2013 09:57:50 +0430
s m wrote:


 my problem is, i can not run gjournal command for root partition in
 fixit mode nor single user mode. 

Just to check, you did boot into single user mode rather than shut-down
into single user mode?
___
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: HP 2570p installation

2013-05-23 Thread Erich Dollansky
Hi,

it might be a good idea to tell us from where you booted. The internal
disk, an USB stick, a USB drive ...

And of course, what was on that media.

Erich

On Thu, 23 May 2013 13:02:37 +0200 (CEST)
Ludovit Koren ludovit.ko...@gmail.com wrote:

 
 Hi,
 
 I bought HP Elitebook 2570p(B6Q08EA). I checked everything, if it is
 compatible, before I bought it. Unfortunately, I cannot install 9.1
 RELEASE, nor 10.0 CURRENT. I get the following:
 
 BTX loader 1.00  BTX version is 1.02
 Consoles: internal video/keyboard
 BIOS drive C: is disk0
 BIOS drive D: is disk1
 BIOS 631kB/523264kB available memory
 
 FreeBSD/x86 bootstrap loader, Revision 1.1
 (r...@snap.freebsd.org, Mon May 13 00:38:05 UTC 2013)
 |
 
 
 and the system beeps and freezes. I added hint.acpi.0.disabled=1 to
 the file /boot/loader.conf with no effect. Please, could you point me
 how to find out what causes the problem - even the way of debugging?
 
 Thank you very much.
 
 regards,
 
 lk
 ___
 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


Re: setup journaling for root partition

2013-05-23 Thread s m
thanks Torsten but it can't help me:((

and RW, yes i can boot to single user mode, but i can't do anything
there!!! i mean when i run command gjournal label -f ad3s1a ad3s1g some
errors returned and all my partition disappear!!

what do you do if you want to set a journal partition for your root
partition? can you tell me step by step to compare it with my steps?

i really don't know how to set a journal partition for my root:(( i think
it is so simple but it make me busy more than a week:(


On Thu, May 23, 2013 at 3:34 PM, RW rwmailli...@googlemail.com wrote:

 On Thu, 23 May 2013 09:57:50 +0430
 s m wrote:


  my problem is, i can not run gjournal command for root partition in
  fixit mode nor single user mode.

 Just to check, you did boot into single user mode rather than shut-down
 into single user mode?
 ___
 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


make release fails

2013-05-23 Thread Jack Mc Lauren
Hi
I'm trying to make my own release ...

# cd /usr/src
# make buildkernel KERNCONF=MYKERN
# make -j4 buildworld
# cd release/
# make release NODOC=YES NOPORTS=YES NOSRC=YES

and that's the error while making release:


find //usr/obj/usr/src/release/dist/doc -empty -delete
find: -delete: //usr/obj/usr/src/release/dist/doc: relative path potentially not
 safe
*** [distributeworld] Error code 1

Stop in /usr/src.
*** [distributeworld] Error code 1

Stop in /usr/src.
*** [base.txz] Error code 1

Stop in /usr/src/release.
*** [release] Error code 1

Stop in /usr/src/release

These are contents of /etc/src.conf file :

WITHOUT_BLUETOOTH=YES
WITHOUT_EXAMPLES=YES
WITHOUT_FLOPPY=YES
WITHOUT_GAMES=YES
WITHOUT_MAN=YES
WITHOUT_MAN_UTILS=YES
WITHOUT_SHAREDOCS=YES
WITHOUT_WIRELESS=YES
WITHOUT_WIRELESS_SUPPORT=YES
WITHOUT_AT=YES
WITHOUT_CALENDAR=YES
WITHOUT_INFO=YES
WITHOUT_LOCALES=YES
WITHOUT_ZFS=YES
WITHOUT_BSD_CPIO=YES
WITHOUT_CTM=YES
WITHOUT_DICT=YES
WITHOUT_GDB=YES
WITHOUT_GNU=YES
WITHOUT_GROFF=YES
WITHOUT_HTML=YES
WITHOU_INFO=YES
WITHOUT_LPR=YES
WITHOUT_MAIL=YES
WITHOUT_PORTSNAP=YES
WITHOUT_QUOTAS=YES
WITHOUT_RCS=YES
WITHOUT_SYSINSTALL=YES
WITHOUT_BIND=YES
WITHOUT_BIND_XML=YES
WITHOUT_BIND_IDN=YES
WITHOUT_BIND_SIGCHASE=YES
WITHOUT_BIND_LARGE_FILE=YES
WITHOUT_FREEBSD_UPDATE=YES
WITHOUT_RESCUE=YES

What's wrong with this?
Thanks in advance
___
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: setup journaling for root partition

2013-05-23 Thread Warren Block

On Thu, 23 May 2013, Torsten Hantzsche wrote:


On Thu, 23 May 2013, s m wrote:



thanks,

i do as you said, but after loading gjournal, dd says operation not
permitted.
gjournal clear says operation not permitted too and therefore gjournal
label is not done and say previous error (gjournal cannot clear metadata
on ad3s1a: operation not permitted). and -v return no extra log.

i don't know why i can not do any thing in fixit mode:(

is this a true procedure? i mean maybe i should do any thing else  because
freebsd handbook set journaling for user partition in single user mode not
in fixit mode. i test it and it works well, but for root partition i can
not do the same because root partition can not be unmount in single user
mode.

any hints or comments are really appreciated.
thanks in advance



Hi,

i remember having similar error messages with glabel some years ago.
The solution was found in man 4 geom in section DIAGNOSTICS:

I had to set kern.geom.debugflags=0x10 to enable the foot shooting mode.

Maybe this could help you too?


For certain values of help. :)

If geom won't let you write to part of a disk, it's because it thinks 
that part of the disk is already in use, usually by a mounted 
filesystem.  Overwriting part of a filesystem is not guaranteed to lose 
data.  But why take the chance?


Better to boot from mfsBSD (http://mfsbsd.vx.sk/).  Possibly better yet 
to use SUJ, which can be enabled with tunefs with the root partition 
mounted read-only in single user mode.  SUJ has its own problems, 
though.

___
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: file corruption solution (soft-update or ZFS)

2013-05-23 Thread Warren Block

On Thu, 23 May 2013, saeedeh motlagh wrote:


hello every body

i have a question about fixing file corruption in freebsd.

now i have freebsd8.2 and some times file corruption happened on it. this
issue has a heavy cost for me and i want to avoid it or fixit it
completely. so my question is:

is it better to upgrade my freebsd to 9.1 and use soft update or migrate
from UFS to ZFS?


That's a judgement call, which means it depends.


i heard so much about soft update -that is added in freebsd9.1-  which can
fix file corruption in acceptable way with low cost but i don't know how
much is reliable and efficient.


Several things:

Soft updates have been around for quite a while.
Soft updates journaling is the new addition.
Neither of these address file corruption.  Their purpose is to make sure 
the filesystem does not get corrupted, but individual files could still 
contain bad data.



in the other hand, i think migration from UFS to ZFS can be another
solution. as i read ZFS is is created to solve all the problems related
integrity file system. is it reliable enough in comparison soft-update?

now, i want to know which solution is better and why?


Again, it depends.  Does the target system have enough RAM for ZFS?  If 
the file corruption is due to a hardware problem or an application 
writing bad data, no filesystem can prevent that.

___
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: file corruption solution (soft-update or ZFS)

2013-05-23 Thread saeedeh motlagh
thanks for your reply.

you know i have a sensitive server and unfortunately it is located some
where that power outage happens much. so i want guarantee my data and avoid
data lost and file corruption in my server.

i do not have any problem in RAM and hardware.

i don't know which approach is more suitable for my server. using
soft-update or ZFS. please help me to select the best one.

thank you so much



On Thu, May 23, 2013 at 4:28 PM, Warren Block wbl...@wonkity.com wrote:

 On Thu, 23 May 2013, saeedeh motlagh wrote:

  hello every body

 i have a question about fixing file corruption in freebsd.

 now i have freebsd8.2 and some times file corruption happened on it. this
 issue has a heavy cost for me and i want to avoid it or fixit it
 completely. so my question is:

 is it better to upgrade my freebsd to 9.1 and use soft update or migrate
 from UFS to ZFS?


 That's a judgement call, which means it depends.


  i heard so much about soft update -that is added in freebsd9.1-  which can
 fix file corruption in acceptable way with low cost but i don't know how
 much is reliable and efficient.


 Several things:

 Soft updates have been around for quite a while.
 Soft updates journaling is the new addition.
 Neither of these address file corruption.  Their purpose is to make sure
 the filesystem does not get corrupted, but individual files could still
 contain bad data.


  in the other hand, i think migration from UFS to ZFS can be another
 solution. as i read ZFS is is created to solve all the problems related
 integrity file system. is it reliable enough in comparison soft-update?

 now, i want to know which solution is better and why?


 Again, it depends.  Does the target system have enough RAM for ZFS?  If
 the file corruption is due to a hardware problem or an application writing
 bad data, no filesystem can prevent that.




-- 
*Sa.M*
___
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: file corruption solution (soft-update or ZFS)

2013-05-23 Thread Trond Endrestøl
On Thu, 23 May 2013 16:44+0430, saeedeh motlagh wrote:

 thanks for your reply.
 
 you know i have a sensitive server and unfortunately it is located some
 where that power outage happens much. so i want guarantee my data and avoid
 data lost and file corruption in my server.

Maybe you should also invest in a decent UPS.

 i do not have any problem in RAM and hardware.
 
 i don't know which approach is more suitable for my server. using
 soft-update or ZFS. please help me to select the best one.
 
 thank you so much
 
 On Thu, May 23, 2013 at 4:28 PM, Warren Block wbl...@wonkity.com wrote:
 
  On Thu, 23 May 2013, saeedeh motlagh wrote:
 
   hello every body
 
  i have a question about fixing file corruption in freebsd.
 
  now i have freebsd8.2 and some times file corruption happened on it. this
  issue has a heavy cost for me and i want to avoid it or fixit it
  completely. so my question is:
 
  is it better to upgrade my freebsd to 9.1 and use soft update or migrate
  from UFS to ZFS?
 
  That's a judgement call, which means it depends.
 
  i heard so much about soft update -that is added in freebsd9.1-  which can
  fix file corruption in acceptable way with low cost but i don't know how
  much is reliable and efficient.
 
  Several things:
 
  Soft updates have been around for quite a while.
  Soft updates journaling is the new addition.
  Neither of these address file corruption.  Their purpose is to make sure
  the filesystem does not get corrupted, but individual files could still
  contain bad data.
 
   in the other hand, i think migration from UFS to ZFS can be another
  solution. as i read ZFS is is created to solve all the problems related
  integrity file system. is it reliable enough in comparison soft-update?
 
  now, i want to know which solution is better and why?
 
  Again, it depends.  Does the target system have enough RAM for ZFS?  If
  the file corruption is due to a hardware problem or an application writing
  bad data, no filesystem can prevent that.

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++___
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: file corruption solution (soft-update or ZFS)

2013-05-23 Thread Warren Block

On Thu, 23 May 2013, saeedeh motlagh wrote:


you know i have a sensitive server and unfortunately it is located some where 
that power outage happens much. so i want guarantee my data and avoid data lost 
and file corruption in my
server.

i do not have any problem in RAM and hardware.


The lack of a UPS can be considered a hardware problem.


i don't know which approach is more suitable for my server. using soft-update 
or ZFS. please help me to select the best one.


Please don't top-post, as it makes responding to your message more 
difficult.  One thing mentioned earlier is that ZFS wants lots of 
memory.  4G-8G minimum, some might say as much as the server will hold.


But resilient filesystems still can't prevent data corruption.  Fix the 
power problem with a UPS.

___
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 install on a partition

2013-05-23 Thread Paul Kraus
On May 23, 2013, at 4:53 AM, Albert Shih albert.s...@obspm.fr wrote:

 Have you ever try to update a ZFS Pool on 9.0 to 9.1 ? 

I recently upgraded my home server from 9.0 to 9.1, actually, I did exported my 
data zpool (raidZ2), did a clean installation of 9.1, then imported my data 
zpool. Everything went perfectly. zpool upgrade did NOT indicate that there was 
a newer version of zpool so I did not even have to upgrade the on-disk zpool 
format (currently 28).

 I've a server with a big zpool in 9.0 I'm wonder if it's good idea to
 upgrade to 9.1. If I lost the data I'm  close to dead person. If I thinking
 to upgrade to 9.1 it's because I got small issue about NFSD, LACP.

My data zpool is not that big, only five 1TB drives in a raidZ2 for a net 
capacity of about 3TB, plus one 1TB hot spare.

My suggestion is to do the following (which is how I did the upgrade):

1) on a different physical system install 9.1, get the OS configured how you 
want it
2) on the production server, export the data zpool
3) shutdown the production server
4) remove the OS drives from the production server and replace with the drives 
you just installed 9.1 on
5) booth the production server with the 9.1 OS drives, make sure everything is 
working the way you want
6) import the data zpool

If the import fails, you can always put the 9.0 drives back in and get back up 
and running fairly quickly.

My system has the OS on a mirror zpool of two drives for just the OS.

--
Paul Kraus
Deputy Technical Director, LoneStarCon 3
Sound Coordinator, Schenectady Light Opera Company

___
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: netgraph network setup for jail(8) vnet jails.

2013-05-23 Thread Joe

Teske, Devin wrote:
snip... 


I rendered your output by saving it in a file (joe.dot) and then running:

dot -Tsvg -o joe.svg  joe.dot

I then uploaded joe.svg to my website:

http://druidbsd.sf.net/download/joe.svg

Compare your output to any of the following:

http://druidbsd.sf.net/download/warden0.jbsd.svg
http://druidbsd.sourceforge.net/download/folsom.svg

It looks like everything is connected properly.

A couple thoughts off the top of my head:

a. Did you enable promiscuous mode on rl0 via ngctl? (in your script perhaps?)

b. Have you tried giving ngeth0 a new MAC address? (I do this through ngctl 
too, but I imagine ifconfig from within the jail could achieve the same thing)
--
Devin




Yes I enabled promiscuous mode and setautosrc 0 on rl0 via ngctl.
I can find no documentation on why this is done. Can you point me to some?

Yes I gave the jail a unique MAC address.

I tried to generate my own network map, but having problem.

ngctl dot  file.dot works.
dot -Tsvg -o file.svg  file.dot
gives me command dot not found.
Tried ngctl dot -Tsvg -o file.svg  file.dot
and -T is illegal option.
What am I doing wrong?

Thanks for your help
Joe

___
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: HP 2570p installation

2013-05-23 Thread Ludovit Koren

 On Thu, 23 May 2013 18:39:44 +0700
 erichsfreebsdl...@alogt.com(Erich Dollansky)  said:
 
 Hi,
 
 it might be a good idea to tell us from where you booted. The internal
 disk, an USB stick, a USB drive ...
 
I am sorry. It was USB memory stick.

 And of course, what was on that media.
 
As I wrote FreeBSD-9.1-RELEASE-amd64-memstick.img and
FreeBSD-10.0-CURRENT-amd64-20130512-r250582-memstick, respectively

lk

 Erich
 
 On Thu, 23 May 2013 13:02:37 +0200 (CEST)
 Ludovit Koren ludovit.ko...@gmail.com wrote:
 
  
  Hi,
  
  I bought HP Elitebook 2570p(B6Q08EA). I checked everything, if it is
  compatible, before I bought it. Unfortunately, I cannot install 9.1
  RELEASE, nor 10.0 CURRENT. I get the following:
  
  BTX loader 1.00  BTX version is 1.02
  Consoles: internal video/keyboard
  BIOS drive C: is disk0
  BIOS drive D: is disk1
  BIOS 631kB/523264kB available memory
  
  FreeBSD/x86 bootstrap loader, Revision 1.1
  (r...@snap.freebsd.org, Mon May 13 00:38:05 UTC 2013)
  |
  
  
  and the system beeps and freezes. I added hint.acpi.0.disabled=1 to
  the file /boot/loader.conf with no effect. Please, could you point me
  how to find out what causes the problem - even the way of debugging?
  
  Thank you very much.
  
  regards,
  
  lk
  ___
  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


Re: file corruption solution (soft-update or ZFS)

2013-05-23 Thread Michael Sierchio
On Thu, May 23, 2013 at 5:33 AM, Warren Block wbl...@wonkity.com wrote:

 ..

  One thing mentioned earlier is that ZFS wants lots of memory.  4G-8G
 minimum, some might say as much as the server will hold.


Not necessarily so - deduplication places great demands on memory, but that
can be satisfied with dedicated cache devices (on SSD for performance and
safety reasons).  Without dedup, the requirements are more modest.

Softupdates guarantee metadata consistency, but do nothing to address data
integrity. ZFS has copy-on-write semantics (which solve a problem that even
hardware RAID can't), and end-to-end checksums to detect/prevent data
corruption (large drives will have uncorrectable bit errors over their
lifetime).

- M
___
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


Thunderbird 17.0.6 build failure FreeBSD 9.1-p3 amd64

2013-05-23 Thread John
Hello list,

Portaudit said thunderbird had a vulnerability so I went to upgrade it
with portupgrade but it coredumps and it does this a good while into the
compilation process. Can anyone advise please how to overcome this?

Here is my system and output:

system - FreeBSD 9.1-RELEASE-p3 #0 r250634: Tue May 14 16:13:46 BST 2013
ports - r318881

# clang -v
FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
Target: x86_64-unknown-freebsd9.0
Thread model: posix

# cat /etc/make.conf
CC=clang
CXX=clang++
CPP=clang-cpp

DIALOG=/usr/ports/Tools/scripts/dialogwrapper.sh
# added by use.perl 2013-03-11 18:36:08
PERL_VERSION=5.14.2

# portupgrade thunderbird
---  Upgrading 'thunderbird-17.0.5' to 'thunderbird-17.0.6'
(mail/thunderbird)
---  Building '/usr/ports/mail/thunderbird'
===  Cleaning for thunderbird-17.0.6
===  Found saved configuration for thunderbird-17.0.6
=== Fetching all distfiles required by thunderbird-17.0.6 for building
===  Extracting for thunderbird-17.0.6
= SHA256 Checksum OK for thunderbird-17.0.6esr.source.tar.bz2.
= SHA256 Checksum OK for enigmail-1.5.1.tar.gz.
===   thunderbird-17.0.6 depends on file: /usr/local/bin/perl5.14.2 - found

[...]

nsAutoSyncManager.cpp:27:1: warning: delete called on
'nsDefaultAutoSyncMsgStrategy' that has virtual functions but
  non-virtual destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_ISUPPORTS1(nsDefaultAutoSyncMsgStrategy, nsIAutoSyncMsgStrategy)
^
../../../mozilla/dist/include/nsISupportsImpl.h:1201:3: note: expanded
from macro 'NS_IMPL_ISUPPORTS1'
  NS_IMPL_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:495:40: note: expanded
from macro 'NS_IMPL_RELEASE'
  NS_IMPL_RELEASE_WITH_DESTROY(_class, delete (this))
   ^
../../../mozilla/dist/include/nsISupportsImpl.h:475:5: note: expanded
from macro 'NS_IMPL_RELEASE_WITH_DESTROY'
_destroy;
  \
^
nsAutoSyncManager.cpp:114:1: warning: delete called on
'nsDefaultAutoSyncFolderStrategy' that has virtual functions but
  non-virtual destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_ISUPPORTS1(nsDefaultAutoSyncFolderStrategy,
nsIAutoSyncFolderStrategy)
^
../../../mozilla/dist/include/nsISupportsImpl.h:1201:3: note: expanded
from macro 'NS_IMPL_ISUPPORTS1'
  NS_IMPL_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:495:40: note: expanded
from macro 'NS_IMPL_RELEASE'
  NS_IMPL_RELEASE_WITH_DESTROY(_class, delete (this))
   ^
../../../mozilla/dist/include/nsISupportsImpl.h:475:5: note: expanded
from macro 'NS_IMPL_RELEASE_WITH_DESTROY'
_destroy;
  \
^
nsSyncRunnableHelpers.cpp:12:1: warning: delete called on
'StreamListenerProxy' that has virtual functions but non-virtual
  destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_THREADSAFE_ISUPPORTS1(StreamListenerProxy, nsIStreamListener)
^
../../../mozilla/dist/include/nsISupportsImpl.h:1386:3: note: expanded
from macro 'NS_IMPL_THREADSAFE_ISUPPORTS1'
  NS_IMPL_THREADSAFE_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:1363:5: note: expanded
from macro 'NS_IMPL_THREADSAFE_RELEASE'
delete (this);
  \
^
nsSyncRunnableHelpers.cpp:13:1: warning: delete called on
'ImapMailFolderSinkProxy' that has virtual functions but
  non-virtual destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_THREADSAFE_ISUPPORTS1(ImapMailFolderSinkProxy,
nsIImapMailFolderSink)
^
../../../mozilla/dist/include/nsISupportsImpl.h:1386:3: note: expanded
from macro 'NS_IMPL_THREADSAFE_ISUPPORTS1'
  NS_IMPL_THREADSAFE_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:1363:5: note: expanded
from macro 'NS_IMPL_THREADSAFE_RELEASE'
delete (this);
  \
^
nsSyncRunnableHelpers.cpp:14:1: warning: delete called on
'ImapServerSinkProxy' that has virtual functions but non-virtual
  destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_THREADSAFE_ISUPPORTS1(ImapServerSinkProxy, nsIImapServerSink)
^
../../../mozilla/dist/include/nsISupportsImpl.h:1386:3: note: expanded
from macro 'NS_IMPL_THREADSAFE_ISUPPORTS1'
  NS_IMPL_THREADSAFE_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:1363:5: note: expanded
from macro 'NS_IMPL_THREADSAFE_RELEASE'
delete (this);
  \
^
nsSyncRunnableHelpers.cpp:15:1: warning: delete called on
'ImapMessageSinkProxy' that has virtual functions but
  non-virtual destructor [-Wdelete-non-virtual-dtor]
NS_IMPL_THREADSAFE_ISUPPORTS1(ImapMessageSinkProxy,
^
../../../mozilla/dist/include/nsISupportsImpl.h:1386:3: note: expanded
from macro 'NS_IMPL_THREADSAFE_ISUPPORTS1'
  NS_IMPL_THREADSAFE_RELEASE(_class)
  \
  ^
../../../mozilla/dist/include/nsISupportsImpl.h:1363:5: note: expanded
from macro 'NS_IMPL_THREADSAFE_RELEASE'
delete (this);
  \
^
nsSyncRunnableHelpers.cpp:17:1: warning: delete called on
'ImapProtocolSinkProxy' that has virtual functions but
  non-virtual destructor 

mariadb-scripts conflict with mariadb-server

2013-05-23 Thread Jim Ballantine
When trying to do a clean/new install of mariadb, I first install
mariadb-server (which installs cleanly), and try to install mariadb-scripts
which fails with:
# make install
===  Installing for mariadb-scripts-5.3.12
===   mariadb-scripts-5.3.12 depends on file: /usr/local/bin/perl5.16.2 -
found
===   mariadb-scripts-5.3.12 depends on shared library: mysqlclient.16 -
found
===   Generating temporary packing list
===  Checking if databases/mariadb-scripts already installed
Making install in scripts
make  install-am
test -z /usr/local/bin || /bin/mkdir -p /usr/local/bin
 install  -o root -g wheel -m 555 msql2mysql mysql_fix_extensions
mysql_setpermission mysql_secure_installation mysql_zap mysqlaccess
mysql_convert_table_format mysql_find_rows mysqlhotcopy mytop mysqldumpslow
mysqld_multi '/usr/local/bin'
Making install in man
test -z /usr/local/man/man1 || /bin/mkdir -p /usr/local/man/man1
 install  -o root -g wheel -m 444 msql2mysql.1 mysql_convert_table_format.1
mysql_find_rows.1 mysql_fix_extensions.1 mysql_secure_installation.1
mysql_setpermission.1 mysql_zap.1 mysqlaccess.1 mysqldumpslow.1
mysqlhotcopy.1 mysqld_multi.1 '/usr/local/man/man1'
make  install-data-hook
rm -f /usr/local/man/man1/make_win_*
make abi_headers= do_abi_check
set -ex;  for file in ; do  cc -E -nostdinc -dI -DMYSQL_ABI_CHECK
-I./include  -I./include/mysql  -I./sql  -I./include  -I./include/mysql
-I./sql  $file 2/dev/null |  /usr/bin/sed -e '/^# /d'  -e '/^[   ]*$/d'
-e '/^#pragma GCC set_debug_pwd/d'  -e '/^#ident/d'   ./abi_check.out;
/usr/bin/diff -w $file.pp ./abi_check.out;  /bin/rm ./abi_check.out;  done
===   Compressing manual pages for mariadb-scripts-5.3.12
===   Registering installation for mariadb-scripts-5.3.12
Installing mariadb-scripts-5.3.12...pkg: mariadb-scripts-5.3.12 conflicts
with mariadb-server-5.3.12 (installs files into the same place).
Problematic file: /usr/local/bin/mysql_convert_table_format
*** [fake-pkg] Error code 70

Stop in /usr/ports/databases/mariadb-scripts.
___
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


Strange behavior of NFS/ZFS on 9.0

2013-05-23 Thread Albert Shih
Hi all,

I've a server under FreeBSD 9.0 with a large ZFS pool (~ 150To) 

This server is use mainly for backup and NFS server, he also have 4 Gb/s
interface bound with LACP. 

If the nfs client is close to the server (physical distance) everything is
fine. 

When the client is far away (NFS over tcp of course) from the client side
everything work (it's slow but it's working), the strange thing is when the
client do some « heavy » acces to the server through NFS, we cannot ping
the server during 10-30 sec and the ping come back, and some time later (
~10-15 min) again we cannot ping the server. When I quote « heavy » it's
because the traffic is ~ 40 Mbit/s. 

I'm sure of the relation between client acces through NFS and lost ping.

Anyone have a idea.

Regards.




-- 
Albert SHIH
DIO bâtiment 15
Observatoire de Paris
5 Place Jules Janssen
92195 Meudon Cedex
France
Téléphone : +33 1 45 07 76 26/+33 6 86 69 95 71
xmpp: j...@obspm.fr
Heure local/Local time:
jeu 23 mai 2013 21:58:21 CEST
___
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


netgraph network for jail(8) vnet jail unable to reach internet

2013-05-23 Thread Joe

Hello list.
Trying to get my script to work that creates a netgraph network for a 
jail(8) vnet jail. Every thing seems to work, but from inside of the 
started vnet jail I can not ping the public internet. The host can ping 
the public internet so the problem has to be in the netgraph script. The 
problem must be staring me in the face but I can just not see it. A 
fresh pair of eyes may see things I am missing.


I'm running 9.1-RELEASE with vimage compiled into the kernel. Non-vnet 
jails work fine and bridge/epair networked vnet jails work fine. The 
host has a single ethernet interface (rl0) facing the public internet. 
Dhcp is used to get the hosts ip address and dns server info. The 
vnet.ng script is designed to create a single ng bridge to rl0 and 
connect vnet jails to it as the jails are started. The following is a 
walk through of a test cycle showing what I can see from the host. At 
the end is a listing of the vnet.ng script.


Thanks for your help


# From the host lets see if there is a netgraph network before we start?
# Nope, no netgraph network running
# /root ngctl ls -l
There are 2 total nodes:
  Name: rl0 Type: ether ID: 0001   Num hooks: 0
  Name: ngctl2850   Type: socketID: 0037   Num hooks: 0



# Here is the jail(8) jail.conf definition statements
# /root cat /usr/local/etc/vnet/vdir9
vdir9 {
host.hostname   =  vdir9;
path=  /usr/jails/vdir9;
mount.fstab =  /usr/local/etc/fstab/vdir9;
exec.start  =  /bin/sh /etc/rc;
exec.stop   =  /bin/sh /etc/rc.shutdown;
exec.consolelog =  /var/log/vdir9.console.log;
devfs_ruleset   =  4;
allow.mount.devfs;
vnet;
}



# Lets start the vnet jail
# /root jail -f /usr/local/etc/qjail.vnet/vdir9 -c
vdir9: created


# Yes it’s really running.
# /root jls
   JID  IP Address  Hostname  Path
 4  -   vdir9 /usr/jails/vdir9


# Lets start the netgraph network for the running vnet jail
# /root vnet.ng start vdir9 rl0
Netgraph vnet jail network established successfully!


# Lets check the host for the vnet jail netgraph network
# Yep it’s there and looks complete to me.
# /root ngctl ls -l

There are 4 total nodes:

  Name: rl0   Type: ether   ID: 0001   Num hooks: 2
  Local hook  Peer name   Peer typePeer ID Peer 
hook
  --  -   ---- 
-
  upper   bridge0 bridge   003dlink1 

  lower   bridge0 bridge   003dlink0 



  Name: bridge0   Type: bridge  ID: 003d   Num hooks: 3
  Local hook  Peer name   Peer typePeer ID Peer 
hook
  --  -   ---- 
-
  link2   vdir9   eiface   0041ether 

  link1   rl0 ether0001upper 


  link0   rl0 ether0001lower

  Name: vdir9 Type: eiface  ID: 0041   Num hooks: 1
  Local hook  Peer name   Peer typePeer ID Peer 
hook
  --  -   ---- 
-
  ether   bridge0 bridge   003dlink2 



 Name: ngctl3126  Type: socket  ID: 0046   Num hooks: 0


# Lets log into the running jail
# /root jexec vdir9 tcsh

# Lets ping freebsd.org ip address. No public internet connection
# even though host can do same ping and get good reply.
vdir9 / ping -c4 8.8.178.135
PING 8.8.178.135 (8.8.178.135): 56 data bytes

--- 8.8.178.135 ping statistics ---
4 packets transmitted, 0 packets received, 100.0% packet loss
vdir9 / exit
exit

# Now stop the vnet jails netgraph network
# /root vnet.ng stop vdir9 rl0
Netgraph vnet jail network shutdown successfully!

# and yes the netgraph network is shutdown
# /root ngctl ls -l
There are 2 total nodes:
  Name: rl0 Type: etherID: 0001   Num hooks: 0
  Name: ngctl3167   Type: socket   ID: 004b   Num hooks: 0



# Here is the vnet.ng  script
# It starts and stops the vnet jail’s netgraph network

#!/bin/sh
function=$1
jailname=$2
nicname=$3

jid=`jls -j ${jailname} jid`

# Load netgraph kernel modules if not done already.
for module in ng_socket netgraph ng_bridge ng_eiface ng_ether; do
  if ! kldstat -v | grep -qw ${module}; then
 kldload ${module} || exit 1
  fi
done

# mac manufacturer prefix. Modify if need be.
#mac_prefix=00:1d:92
mac_prefix=07:22:49

start() {

sysctl net.inet.ip.forwarding=1  /dev/null 2 /dev/null

jid=`jls -j ${jailname} jid`

if [ ${jid} -gt 100 ]; then
  echo  
  echo WARNING: The JID value is greater then 100.
  echo This may indicate many cycles of starting/stopping vnet jails
  echo which results in lost memory pages. To recover the lost memory,
  echo shutdown the host and reboot. This will zero out the JID
  echo counter and make all the memory available again.
  echo  
fi

# The jid is 

Re: file corruption solution (soft-update or ZFS)

2013-05-23 Thread Joshua Isom

On 5/23/2013 7:14 AM, saeedeh motlagh wrote:

thanks for your reply.

you know i have a sensitive server and unfortunately it is located some
where that power outage happens much. so i want guarantee my data and avoid
data lost and file corruption in my server.


Get a good reliable UPS.  Test it regularly, the batteries do fail. 
Test to make sure that it will work, unplug it and let the computer 
drain the battery to time it.  Consider that the battery will degrade 
over time.  One thing google does is put a 12V battery inside the 
chassis to help with the power backup, you might look into it.



i do not have any problem in RAM and hardware.

i don't know which approach is more suitable for my server. using
soft-update or ZFS. please help me to select the best one.


If power failure is an issue, you have no guarantee of data loss 
protection unless you use networked storage to a safe place.  UFS soft 
updates protects against file system corruption in case of power loss, 
no guarantees of individual file consistency.  ZFS guarantees no silent 
failures, it doesn't guarantee protection, only that you'll know about 
it.  There is no filesystem that can guarantee you won't lose data in a 
power failure.  Hard drives are known to lie about what's been 
physically synced to disk out of cache in order to improve speed.  If 
the power goes out at the wrong time, you can lose data.  ZFS can find a 
corrupted file and tell you, everything else won't.  If you have a back 
up of that file, you can restore it.



thank you so much



On Thu, May 23, 2013 at 4:28 PM, Warren Block wbl...@wonkity.com wrote:


On Thu, 23 May 2013, saeedeh motlagh wrote:

  hello every body


i have a question about fixing file corruption in freebsd.

now i have freebsd8.2 and some times file corruption happened on it. this
issue has a heavy cost for me and i want to avoid it or fixit it
completely. so my question is:

is it better to upgrade my freebsd to 9.1 and use soft update or migrate
from UFS to ZFS?



That's a judgement call, which means it depends.


  i heard so much about soft update -that is added in freebsd9.1-  which can

fix file corruption in acceptable way with low cost but i don't know how
much is reliable and efficient.



Several things:

Soft updates have been around for quite a while.
Soft updates journaling is the new addition.
Neither of these address file corruption.  Their purpose is to make sure
the filesystem does not get corrupted, but individual files could still
contain bad data.


  in the other hand, i think migration from UFS to ZFS can be another

solution. as i read ZFS is is created to solve all the problems related
integrity file system. is it reliable enough in comparison soft-update?

now, i want to know which solution is better and why?



Again, it depends.  Does the target system have enough RAM for ZFS?  If
the file corruption is due to a hardware problem or an application writing
bad data, no filesystem can prevent that.







___
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


dtrace of a Samba nbench run shows

2013-05-23 Thread Richard Sharpe
Hi folks,

I have been using dtrace, and particularly procsystime, to measure
Samba system call usage stuff. This is what I get:

cs-cc1# ./procsystime -n smbd
Tracing... Hit Ctrl-C to end...
^C

Elapsed Times for processes smbd,

 SYSCALL  TIME (ns)
 sysarch   1492
thr_self   2636
__getcwd   5695
 getsockname   5778
  accept   6952
  sendto   8019
 getpeername   8273
  setsockopt   9394
pipe  13567
kenv  15151
   umask  16400
   sigaction  23504
   msync  24068
mprotect  26960
  getpid  29888
  socket  38078
dup2  42323
   chdir  49643
   getgroups  74299
   wait4 108578
 connect 148649
 sigprocmask 150443
__sysctl 215389
 getegid 243731
mmap 257379
setregid 260529
   setgroups 270894
 thr_new 376349
  munmap 428773
fork 511601
   sigreturn 668402
   chown 703765
  getuid 821748
   chmod1175632
kill1230340
   write1281535
 geteuid1918738
   rmdir2376245
   mkdir2516070
   fsync3346330
setreuid5205649
gettimeofday9212264
   lseek9336442
pathconf   18606662
  statfs   29714064
  access   30073540
 fstatfs   31360178
   lstat   33902417
  extattr_get_fd   38793210
  fchmod  147266506
  rename  156300564
   fstat  234898224
  utimes  237551881
   getdirentries  253926535
extattr_set_link  371269699
   pread  671050763
  unlink  768327954
  pwrite  825201124
 fstatat  866823356
   clock_gettime 1257134991
  writev 1984839112
read 2922189298
   close 6180434183
   fcntl 7849631277
stat 7872399963
extattr_get_file 7887564205
   ioctl 9034605338
open23145865857
  select   274329462364
poll   753606057912
_umtx_op  1097794513187

So, what is _umtx_op? I guess I have to move to kqueue as well.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)
___
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: netgraph network setup for jail(8) vnet jails.

2013-05-23 Thread Trond Endrestøl
On Thu, 23 May 2013 09:42-0400, Joe wrote:

 Teske, Devin wrote:
  snip... 
  I rendered your output by saving it in a file (joe.dot) and then running:
  
  dot -Tsvg -o joe.svg  joe.dot
  
  I then uploaded joe.svg to my website:
  
  http://druidbsd.sf.net/download/joe.svg
  
  Compare your output to any of the following:
  
  http://druidbsd.sf.net/download/warden0.jbsd.svg
  http://druidbsd.sourceforge.net/download/folsom.svg
  
  It looks like everything is connected properly.
  
  A couple thoughts off the top of my head:
  
  a. Did you enable promiscuous mode on rl0 via ngctl? (in your script
  perhaps?)
  
  b. Have you tried giving ngeth0 a new MAC address? (I do this through ngctl
  too, but I imagine ifconfig from within the jail could achieve the same
  thing)
  --
  Devin
 
 Yes I enabled promiscuous mode and setautosrc 0 on rl0 via ngctl.
 I can find no documentation on why this is done. Can you point me to some?
 
 Yes I gave the jail a unique MAC address.
 
 I tried to generate my own network map, but having problem.
 
 ngctl dot  file.dot works.

 dot -Tsvg -o file.svg  file.dot
 gives me command dot not found.

Please install graphics/graphviz, either from ports or from packages.

 Tried ngctl dot -Tsvg -o file.svg  file.dot
 and -T is illegal option.
 What am I doing wrong?
 
 Thanks for your help
 Joe

-- 
+---++
| Vennlig hilsen,   | Best regards,  |
| Trond Endrestøl,  | Trond Endrestøl,   |
| IT-ansvarlig, | System administrator,  |
| Fagskolen Innlandet,  | Gjøvik Technical College, Norway,  |
| tlf. mob.   952 62 567,   | Cellular...: +47 952 62 567,   |
| sentralbord 61 14 54 00.  | Switchboard: +47 61 14 54 00.  |
+---++___
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