Re: FreeBSD slices and the Boot Manager

2013-07-28 Thread Peter Andreev
Why wouldn't you simply update your 8.1 to 8.4?


2013/7/27 Conny Andersson atar...@telia.com

 Hi,

 I have a workstation with two factory installed hard disks. The first
 disk, ada0, is occupied by a Windows 7 Pro OS (mainly kept for the three
 year warranty of the workstation as Dell techs mostly speak the Microsoft
 language).

 Instead I have configured the BIOS to boot from the MBR on the second disk
 as I most of the time (99%) use FreeBSD. The MBR on ada1 was installed with
 sysinstall's option Install the FreeBSD Boot Manager, when I installed
 the FreeBSD 8.3-RELEASE.

 (The latest BIOS version 2.4.0 for Dell T1500 does not support
 UEFI/GPT/GUID.)

 The second disk ada1, now has three FreeBSD slices:

 1) ada1s1 with FreeBSD 8.1-RELEASE

 2) ada1s2 with FreeBSD 8.2-RELEASE

 3) ada1s3 with FreeBSD 8.3-RELEASE

 I want to install the new FreeBSD 8.4-RELEASE on ada1s1 by overwriting the
 now existing two first slices. This means that ada1s3, must become ada1s2
 instead. Is this possible to do?

 A very important question is if sysinstall's option Install the FreeBSD
 Boot Manager detects that I have a FreeBSD 8.3 and detect it as slice 2 on
 disk 1? So it becomes a boot option when I am rebooting? (Maybe the slice
 may come up as ad6s2, because AHCI in FreeBSD 8.4 isn't enabled at the time
 of the install.)

 If the answer to these questions is yes, then the next two questions arise.

 Can I mount ada1s2a (FreeBSD 8.3) from the newly installed FreeBSD 8.4 and
 edit my FreeBSD's 8.3-R /etc/fstab according to the new disk layout, and
 occasionally run FreeBSD 8.3 without problems? Or do I have to do more to
 get it to work?

 The idea behind this kind of 'reverse' disk layout of mine is to have
 FreeBSD 8.4 as my new default OS. And have FreeBSD 8.3 untouched for
 configuring FreeBSD 8.4 and booting into it when ever needed. If I can do
 this as described above, I will have plenty of space on the disk for the
 future and a new FreeBSD release.


 Thanks for your interest in my questions,

 Conny Andersson

 =-=-=-=-=-=-=-=-=-=
   Conny Andersson
 atar...@telia.com
 =-=-=-=-=-=-=-=-=-=
 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org




-- 
Is there any problem Exterminatus cannot solve? I have not found one yet.
___
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: Any arp table size limitations?

2013-05-29 Thread Peter Andreev
Thank you Lowell,

Yes, that's an Internet exchange point. We have done a similar test and
didn't found any problems, I asked on maillist just to be sure.


2013/5/30 Lowell Gilbert freebsd-questions-lo...@be-well.ilk.org

 Peter Andreev andreev.pe...@gmail.com writes:

  We are connecting to an IXP, they have tested our FreeBSD 9.1 server and
  said we can store only about 600 MACs simultaneously. So I'd like to ask
 if
  there is any arp table size limitations and if so, how we can increase
 the
  limit?

 I looked at the code and there don't seem to be any arbitrary
 limits. The code isn't optimized for really large numbers of entries,
 but 600 isn't what I'd consider large in this context.

 I ran a simple shell script and had no problems entering many thousands
 of static ARP entries, so my interpretation from reading the code isn't
 horribly wrong. I think you need to find out what kind of problems they
 ran into at 600 entries.

 As a (maybe-irrelevant) side point, I don't know what you mean by IXP,
 since in my background the term means Internet eXchange Point, and
 isn't likely to get anywhere close to 600 ARP entries on a single
 subnet.




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


Any arp table size limitations?

2013-05-28 Thread Peter Andreev
Hello,

We are connecting to an IXP, they have tested our FreeBSD 9.1 server and
said we can store only about 600 MACs simultaneously. So I'd like to ask if
there is any arp table size limitations and if so, how we can increase the
limit?

-- 
AP
___
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: PCBSD9.0-x64-DVD and Intel HD Graphics 2000

2012-07-24 Thread Peter Andreev
2012/7/24 ufs u...@poniki.net

 On 24.07.2012 01:12, David Christensen wrote:

 On 07/23/2012 03:37 AM, Vladislav wrote:

 http://wiki.freebsd.org/Intel_**GPU http://wiki.freebsd.org/Intel_GPU


 Okay.


 I wrote:
  I've installed PCBSD9.0-x64-DVD on the following hardware:

 On 07/23/2012 06:30 AM, Erich Dollansky wrote:
  this where the problem starts. If nothing changed since I used this, it
 only supports VESA on i7 CPUs.

 Okay.


 I wrote:
  I have updated the system using Update Manager, and the problems
 persist.

 On 07/23/2012 06:30 AM, Erich Dollansky wrote:
  What does this affect? Also the FreeBSD part?

 I don't know.


  I am now running FreeBSD 10 on an i7 without any problems. It should
 also be possible to get the same result with a current 9.0.
  Do the same what I have done. Use PC-BSD just to get a machine running
 and then update to FreeBSD.

 I was hoping to find an OS distribution that works OOTB.  The key
 features I'm looking for are:

 1.  Full support of my hardware; notably Enhanced Speed Step, AES-NI,
 Intel HD Graphics 2000 dual head, and SSD TRIM.

 2.  ZFS on encrypted partitions, including root.


 I guess I'll have to wait for PC-BSD 10 or FreeBSD 10.


 Thanks!

 David
 __**_
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/**mailman/listinfo/freebsd-**questionshttp://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to freebsd-questions-**
 unsubscr...@freebsd.org freebsd-questions-unsubscr...@freebsd.org

 Hi,
 What about the new Xorg(make.conf WITH_NEW_XORG=true)  and drivers Intel?
 I have heard that this solution works, OpenGL too...

 I tried WITH_NEW_XORG=true and WITH_KMS=true with Core i5-3450 and
9.1-prerelease last weekend. It was so slow, that I decided to buy the
cheapest Nvidia card.

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




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


Gnome and sound

2012-01-17 Thread Peter Andreev
Hello, everybody!

I'm using FreeBSD 9.0 with Gnome. I have been trying to control my
soundcard via gnome-volume-control for two days and still without much
success.
Soundcard itself works great, the main problem is I can't change default
output via gui. That is every time I want to switch between headphones and
speakers, I have to run sysctl hw.snd.default_unit=X from console, where
X - is the number of needed output. Gnome-volume-control doesn't see
devices in hardware tab and choosing the right output in output tab has
no effect.
Another problem is that I don't know where to start search for solution
from.

Could somebody help me with my issue?

-- 
--
AP
___
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: mutual forwarders in ISC BIND

2011-12-29 Thread Peter Andreev
2011/12/29 Victor Sudakov v...@mpeks.tomsk.su:
 Peter Andreev wrote:
 
   Victor, we researched this topic and learned that response time highly
   depends on distance between user and resolver, while cache influence
   on this value is lesser.
   So I advice you to keep all as is.
 
  Be it so. Thank you.
 
  And the reason for the whole thread. One of the customers told me that
  8.8.8.8 is faster than our own DNS servers which are located on the
  same 100 MBit/s LAN with them. I was shocked but it seems true, at
  least for the answers which are not yet cached.

 I don't know what software google uses on its resolvers, but I suppose
 something with shared or synchronizing cache. May be they also make
 preventive lookups on popular domains to fill this cache. And the
 reason why 8.8.8.8 seems faster - it answered from cache while your
 resolver made full lookup chain.

 Duh! That is why I started thinking about some cache synchronizing
 technique for my resolvers.

Preventive lookups can be made via self-written scripts.

AFAIK there is no free open source implementations providing cache
synchronization between different resolvers.


 --
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 sip:suda...@sibptus.tomsk.ru
 ___
 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



-- 
--
AP
___
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: mutual forwarders in ISC BIND

2011-12-29 Thread Peter Andreev
2011/12/29 Victor Sudakov v...@mpeks.tomsk.su:
 Peter Andreev wrote:
Victor, we researched this topic and learned that response time 
highly
depends on distance between user and resolver, while cache influence
on this value is lesser.
So I advice you to keep all as is.
  
   Be it so. Thank you.
  
   And the reason for the whole thread. One of the customers told me that
   8.8.8.8 is faster than our own DNS servers which are located on the
   same 100 MBit/s LAN with them. I was shocked but it seems true, at
   least for the answers which are not yet cached.
 
  I don't know what software google uses on its resolvers, but I suppose
  something with shared or synchronizing cache. May be they also make
  preventive lookups on popular domains to fill this cache. And the
  reason why 8.8.8.8 seems faster - it answered from cache while your
  resolver made full lookup chain.
 
  Duh! That is why I started thinking about some cache synchronizing
  technique for my resolvers.

 Preventive lookups can be made via self-written scripts.

 Sure, after query log analysis.


 AFAIK there is no free open source implementations providing cache
 synchronization between different resolvers.

 Unbound cannot do that, can it?

It has options dump-cache and load-cache for debugging purposes,
but I don't recommend using it in production.
May be cache-min-ttl and cache-max-ttl would be useful, but I
doubt what is better - get fast response or get right response.

 I am surprised. After all, squid siblings are quite common.


 --
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 sip:suda...@sibptus.tomsk.ru
 ___
 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



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


mutual forwarders in ISC BIND

2011-12-28 Thread Peter Andreev
2011/12/28 Damien Fleuriot m...@my.gd:


 On 12/28/11 2:07 PM, Victor Sudakov wrote:
 Damien Fleuriot wrote:

 If you're trying to build up a cache to improve performance and response
 time, here's your scenario:

 DNS C, forward to DNS A,B for all queries
 DNS D, forward to DNS B,A for all queries

 Your cache will start building up and only responses that are not cached
 will be taken from your NS A and B servers.

 Sorry, I fail to see how this is any better than two independent DNS
 servers. Perhaps a variant like

 DNS C, forward to DNS A
 DNS D, forward to DNS A

 would be close to the goal of cache consolidation.


 DNS A suffers an outage ; you're fucked, to put it bluntly.

BIND can be configured to deal with such troubles.  But still Victor's
idea isn't very good. First of all because response time increasing in
case of using forwarders.

Victor, we researched this topic and learned that response time highly
depends on distance between user and resolver, while cache influence
on this value is lesser.
So I advice you to keep all as is.



 Matthew Seaman wrote:

 If you want to consolidate caches then probably your best bet is to have
 fewer, but larger resolvers.  A pretty standard server class machine
 dedicated to recursive DNS should be easily capable of supporting many
 thousands of clients.

 You are certainly right.


 DNS is not really a fruitful target for reducing traffic volume -- there
 really isn't that much of it compared to all other types in any case.
 It's also pretty critical to the perceived performance of your networks.
  Complicating and slowing down the DNS lookup path just makes everything
 look slow.

 I just wanted the servers to benefit from each other's caches. That
 could speed up the lookups.



 On a side note, have you considered unbound ?

 It may be better suited to your needs and scale.
 ___
 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



--
--
AP


-- 
--
AP
___
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: mutual forwarders in ISC BIND

2011-12-28 Thread Peter Andreev
2011/12/29 Victor Sudakov v...@mpeks.tomsk.su:
 Victor Sudakov wrote:

  Victor, we researched this topic and learned that response time highly
  depends on distance between user and resolver, while cache influence
  on this value is lesser.
  So I advice you to keep all as is.

 Be it so. Thank you.

 And the reason for the whole thread. One of the customers told me that
 8.8.8.8 is faster than our own DNS servers which are located on the
 same 100 MBit/s LAN with them. I was shocked but it seems true, at
 least for the answers which are not yet cached.

I don't know what software google uses on its resolvers, but I suppose
something with shared or synchronizing cache. May be they also make
preventive lookups on popular domains to fill this cache. And the
reason why 8.8.8.8 seems faster - it answered from cache while your
resolver made full lookup chain.


 --
 Victor Sudakov,  VAS4-RIPE, VAS47-RIPN
 sip:suda...@sibptus.tomsk.ru
 ___
 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



-- 
--
AP
___
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: freebsd-update, fetch once upgrade many machines

2011-08-19 Thread Peter Andreev
2011/8/19 Paul Schenkeveld free...@psconsult.nl:
 Hi,

 Is it possible to fetch files needed for freebsd-update once and put
 them on a local fileserver to update many machines?

You can use 
http://www.freebsd.org/cgi/cvsweb.cgi/projects/freebsd-update-server/

 The reason for asking is that all these machines are on secure
 networks and are not allowed to have Internet access but can all
 access a common fileserver (using FTP, HTTP, SSH but not NFS).

 I can safely assume that all these machines run the same version of
 FreeBSD, installed from binary distributions, GENERIC kernel and only
 upgraded using freebsd-update.

 Thanks,

 Paul Schenkeveld
 ___
 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




-- 
--
AP
___
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: Re[2]: freebsd ARP problem

2011-08-04 Thread Peter Andreev
4 августа 2011 г. 9:56 пользователь Коньков Евгений kes-...@yandex.ru написал:
 Hi, Peter.

 GW-77.93.52.9/29 - 77.93.52.10/29-MyServer
                               00:1b:21:45:da:b8

 I have change LAN and not it is:
 GW-77.93.52.9/29 - 77.93.52.10/29-MyServer
                               00:30:67:5a:44:72

 ping 77.93.52.9
 ^C
 --- 77.93.52.9 ping statistics ---
 3 packets transmitted, 0 packets received, 100.0% packet loss

 tcpdump -n -i re0 arp
  15:39:46.540277 ARP, Request who-has 77.93.52.10 (00:1b:21:45:da:b8) tell 
 77.93.52.9, length 46
         0x:  001b 2145 dab8 0006 d602 e0c0 0806 0001  ..!E
         0x0010:  0800 0604 0001 0006 d602 e0c0 4d5d 3409  M]4.
         0x0020:  001b 2145 dab8 4d5d 340a     ..!E..M]4...
         0x0030:                   

 77.93.52.9 thinks that 77.93.52.10 have old MAC 00:1b:21:45:da:b8
 Why freebsd do not answer for 'who-has' packet?

What says arp -a on 77.93.52.9? Did you try ping 77.93.52.10 from 77.93.52.9?


 PA Eugenie

 PA I didn't understand your question, so I ask you for some clarification.
 PA 3 августа 2011 г. 17:19 пользователь Коньков Евгений
 PA kes-...@yandex.ru написал:
 Hi, all.

 I delete IP address from one server and add it to this one.
 PA You moved IP address from one server to second one. Right?

 But connection is not up, because of remote server (77.93.52.9)
 ask IP and notice MAC in whe-has frame.
 PA Are you trying to connect from second server to third one?
 PA Whose ip address is 77.93.52.9?

 15:39:46.540277 ARP, Request who-has 77.93.52.10 (00:1b:21:45:da:b8) tell 
 77.93.52.9, length 46
        0x:  001b 2145 dab8 0006 d602 e0c0 0806 0001  ..!E
        0x0010:  0800 0604 0001 0006 d602 e0c0 4d5d 3409  M]4.
        0x0020:  001b 2145 dab8 4d5d 340a     ..!E..M]4...
        0x0030:                   

 Must freebsd replay to this who-has packet with
 ARP, Reply 77.93.52.10 is at 
  or it must it ignore, becase of 00:1b:21:45:da:b8 is not its MAC address?
 PA Are these servers in different network segments?


 --
 С уважением,
  Коньков                          mailto:kes-...@yandex.ru

 ___
 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







 --
 С уважением,
  Коньков                          mailto:kes-...@yandex.ru





-- 
--
AP
___
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: freebsd ARP problem

2011-08-03 Thread Peter Andreev
Eugenie

I didn't understand your question, so I ask you for some clarification.
3 августа 2011 г. 17:19 пользователь Коньков Евгений
kes-...@yandex.ru написал:
 Hi, all.

 I delete IP address from one server and add it to this one.
You moved IP address from one server to second one. Right?

 But connection is not up, because of remote server (77.93.52.9)
 ask IP and notice MAC in whe-has frame.
Are you trying to connect from second server to third one?
Whose ip address is 77.93.52.9?

 15:39:46.540277 ARP, Request who-has 77.93.52.10 (00:1b:21:45:da:b8) tell 
 77.93.52.9, length 46
        0x:  001b 2145 dab8 0006 d602 e0c0 0806 0001  ..!E
        0x0010:  0800 0604 0001 0006 d602 e0c0 4d5d 3409  M]4.
        0x0020:  001b 2145 dab8 4d5d 340a     ..!E..M]4...
        0x0030:                   

 Must freebsd replay to this who-has packet with
 ARP, Reply 77.93.52.10 is at 
  or it must it ignore, becase of 00:1b:21:45:da:b8 is not its MAC address?
Are these servers in different network segments?


 --
 С уважением,
  Коньков                          mailto:kes-...@yandex.ru

 ___
 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




-- 
--
AP
___
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: reverse dns in bind9

2011-03-28 Thread Peter Andreev
2011/3/28 Tim Dunphy bluethu...@gmail.com

 Hello,

  Thanks for your reply!

  I took your advice and removed that line from resolv.conf and added
 it into /etc/named/named.conf

  Now it looks like this

  // RFC 1912
 zone localhost{ type master; file master/localhost-forward.db;
 };
 zone 127.in-addr.arpa { type master; file master/localhost-reverse.db;
 };
 zone 255.in-addr.arpa { type master; file master/empty.db; };
 zone 192.in-addr.arpa { type master; file
 master/summitjnhome-reverse.db; };


Robert said that you should replace 192.in-addr.arpa with
1.168.192.in-addr.arpa in your named.conf.

Your named.conf should be look like the following:

zone localhost{ type master; file master/localhost-forward.db;
};
zone 127.in-addr.arpa { type master; file master/localhost-reverse.db;
};
zone 255.in-addr.arpa { type master; file master/empty.db; };
zone 1.168.192.in-addr.arpa { type master; file
master/summitjnhome-reverse.db; };



  And I did a restart of both network and named but the issue remains:


 LBSD2# host 192.168.1.44
 Host 44.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)


 On Mon, Mar 28, 2011 at 1:06 AM, Robert Bonomi bon...@mail.r-bonomi.com
 wrote:
 
  Date: Mon, 28 Mar 2011 00:19:26 -0400
  From: Tim Dunphy bluethu...@gmail.com
  Subject: reverse dns in bind9
 
  Hello,
 
   I am attempting to setup reverse dns in bind 9 under freebsd... this is
   in an attempt to allow mysql to work a little easier with DNS
   resolution.
 
   In my /etc/named/named.conf file I have the following:
 
  // RFC 1912
  zone localhost  { type master; file master/localhost-forward.db; };
  zone 127.in-addr.arpa { type master; ile
 master/localhost-reverse.db; };
  zone 255.in-addr.arpa { type master; file master/empty.db; };
  zone 192.in-addr.arpa { type master; file
 master/summitjnhome-reverse.db; };
  zone summitnjhome.com { type master; file master/summitnjhome.db;
 };
 
 
  My master/summitnjhome.com looks like the following:
 
  For starters, this should be in master/summitnjhome-reerse.db
 
  $TTL 3D
  @   IN  SOA ns1.summitnjhome.com. bluethundr.gmail.com. (
  201103271 ; Serial, todays date + todays serial
  8H  ; Refresh
  2H  ; Retry
  4W  ; Expire
  1D) ; Minimum TTL
  NS  ns1.summitnjhome.com.
 
  summitnjhome.com.
  42   PTR LCENT01.summitnjhome.com.
  43   PTR LCENT02.summitnjhome.com.
  44   PTR LBSD2.summitnjhome.com.
  45   PTR LCENT02.summitnjhome.com.
  46   PTR LCENT03.summitnjhome.com.
  47   PTR LCENT04.summitnjhome.com.
  23   PTR virtcent01.summitnjhome.com.
  24   PTR virtcent02.summitnjhome.com.
  21   PTR virtcent03.summitnjhome.com.
  26   PTR virtcent04.summitnjhome.com.
  27   PTR virtcent05.summitnjhome.com.
  28   PTR virtcent06.summitnjhome.com.
  29   PTR virtcent07.summitnjhome.com.
  30   PTR virtcent08.summitnjhome.com.
  31   PTR virtcent09.summitnjhome.com.
  32   PTR virtcent10.summitnjhome.com.
  33   PTR virtcent11.summitnjhome.com.
  34   PTR virtcent12.summitnjhome.com.
  35   PTR virtcent13.summitnjhome.com.
  36   PTR virtcent14.summitnjhome.com.
  37   PTR virtcent15.summitnjhome.com.
  38   PTR virtcent16.summitnjhome.com.
  39   PTR virtcent17.summitnjhome.com.
  40   PTR virtcent18.summitnjhome.com.
  41   PTR virtcent19.summitnjhome.com.
 
 
  and my /etc/resolv.conf looks like this:
 
  domain  summitnjhome.com
  nameserver 192.168.1.44
  nameserver 4.2.2.2
 
  zone 1.168.192.in-addr.arpa { type master; file
  /etc/named/master/summitnjhome-reverse.db
  };
 
  the 'zone' line  you show should *NOT* be in resolv.conf at all.
  this line should be in the  named.conf file *instead* of the one for
  the '192.in-addr.arpa' zone.
 
  then I restart both named and the network service
 
  and yet if I were to try forward resolution:
 
  LBSD2# host sum1
  sum1.summitnjhome.com is an alias for LCENT01.summitnjhome.com.
  LCENT01.summitnjhome.com has address 192.168.1.42
 
 
  and then reverse resolution:
 
  LBSD2# host 192.168.1.42
  Host 42.1.168.192.in-addr.arpa. not found: 3(NXDOMAIN)
 
  I have no luck. Any thoughts on this?
 
  see above.
 
 
 
 



 --
 GPG me!!

 gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B
 ___
 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




-- 
--
AP

Re: script help

2011-02-16 Thread Peter Andreev
2011/2/15 RW rwmailli...@googlemail.com:
 On Tue, 15 Feb 2011 12:57:12 +0300
 Peter Andreev andreev.pe...@gmail.com wrote:

 Use of xargs on many files will be much faster than find...exec
 construction

 This is a surprisingly common myth. exec can pass single or multiple
 arguments  according to whether you use ; or +

You are right, use of + makes -exec much faster. Thank you, I
didn't know about this feature.

 find / -type f -name copyright.htm | xargs sed -i .bak -e
 's/2010/2011/g'

 This is much less safe on FreeBSD than it is with the GNU versions
 because print0 is required for paths with spaces.

 find  ... -print0 | xargs -0 ...



 ___
 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




-- 
--
AP
___
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: script help

2011-02-15 Thread Peter Andreev
Use of xargs on many files will be much faster than find...exec construction

find / -type f -name copyright.htm | xargs sed -i .bak -e 's/2010/2011/g'

2011/2/15 erikmccaskey64 erikmccaske...@zoho.com:
 my little opinion: first run the changes on a backup, or a copy of the files:

 this one works under linux bash fedora:
 how to create a shadow of a folder [same filenames in another dir, but with 
 0 Byte size]


 in the original, A directory:
 find . -type f gt; a.txt


 B directory:
 cat ../a.txt | while read file; do if [[ $file = */* ]]; then mkdir -p 
 ${file%/*}; fi; touch $file; done




 so if something goes wrong, there would be no trouble

  Be Mon, 14 Feb 2011 15:11:19 -0800 Adam Vande More 
 lt;amvandem...@gmail.comgt; írta 

 On Mon, Feb 14, 2011 at 4:34 PM, Jack L. Stone 
 lt;ja...@sage-american.comgt;wrote:

 gt; Hello folks:
 gt;
 gt; No doubt this will be easy for those with scritping abilities.
 gt;
 gt; I have a gazillion files by the same name and each contains the same line
 gt; requiring the same change. But the problem is that they are in many
 gt; different directories on a server with numerous domains. While I could
 gt; handle the change using a single directory within my abilities, I'm 
 unsure
 gt; how to do a search and replace throughout the many domains and their
 gt; directories. Don't want to mess up. Here's what I'm trying to do:
 gt;
 gt; # find all of the same filenames (copyright.htm) and then replace the 
 year
 gt; 2010 with 2011 in each file. Once I have a working script, I should be 
 able
 gt; to add it as a cron job to run on the first day of each new year.
 gt;
 gt; Any help appreciated.
 gt;

 /usr/ports/misc/rpl

 --
 Adam Vande More
 ___
 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




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


loader halting

2009-08-12 Thread Peter Andreev
Good day.

While server is booting, I see this:

/boot.config: -Dh
BTX loader 1.00  BTX version is 1.01
Consoles: internal video/keyboard  serial port
BIOS drive C: is disk0
BIOS drive D: is disk1
BIOS 637kB/3668864kB available memory

FreeBSD/i386 bootstrap loader, Revision 1.1
(em...@email, Fri Aug  7 14:18:25 MSD 2009)
|


And boot process is stopping. I tried to boot /boot/loader.old, tried to
boot from other hdd (there is a mirror) - in all cases I see the same
picture.
Where I should look to find a source of troubles?
___
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: Cronjob

2009-06-09 Thread Peter Andreev
yes, you're right, thank you/ the right version will be:

* * 31 1,3,5,7,8,10,12 *
* * 30 4,6,9,11 *
* * 28,29 2 *

2009/6/9 Jonathan McKeown j.mcke...@ru.ac.za

 On Monday 08 June 2009 17:37:14 Jerry McAllister wrote:
  On Mon, Jun 08, 2009 at 06:31:57PM +0400, Peter Andreev wrote:
   may be this solution will help you:
 [snip]
  
   * * 31 1/2 *
   * * 30 4/2 *
   * * 28 2 *

 This isn't right, surely? It goes wrong in August and stays wrong for the
 rest
 of the year. The 31-day months are 1,3,5,7,8,10,12.

  Don't forget leapyear.

 Jonathan
 ___
 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: Cronjob

2009-06-08 Thread Peter Andreev
may be this solution will help you:

* * 31 jan,mar,may,jul,aug,oct,dec *
* * 30 apr,jun,sep,nov *
* * 28 feb *

or:

* * 31 1/2 *
* * 30 4/2 *
* * 28 2 *

2009/6/8 Jos Chrispijn j...@webrz.net

 I would like to execute a script on every last day of the month in my
 crontab.
 Can someone tell me how I should solve that as it doesn't know which month
 day is the last day of the month?
 Solving this in the script to be executed is no option.

 Thanks, Jos

 ___
 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