Curiously unable to access network - bce, 7.2-RELEASE on a HP blade server

2009-11-14 Thread Ivan Voras

The symptoms are:

	* The device (bce0, bce1) comes up, is visible in ifconfig, can be 
configured, is UP and RUNNING, everything looks fine

* Apparently, it simply doesn't work - no ping responses, TCP, nothing
	* But tcpdump shows that the NIC apparently does receive multicast 
router announcements, and some broadcast ARP traffic; only unicast seems 
to be affected.
	* Running "netstat 1" shows that apparently there are some packets 
received - once a second or so, and the "err" counters are 0.
	* Digging further, the dev.bce.0.stat_IfinFramesL2FilterDiscards 
contains an increasing number, currently arround 57000 and the 
dev.bce.0.stat_IfHCInBadOctets also contains an increasing number, 
currently around 450,000, while ...InOctets is around 30,000 and 
...OutBadOctets is 0.


From the sysctls it looks like maybe it's discarding valid input 
packets. I've tried disabling rxcsum, txcsum and TSO without effect.


I cannot upgrade or install 8.0 because newusb has some problems with 
the hardware.


Any ideas?

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


Re: Curiously unable to access network - bce, 7.2-RELEASE on a HP blade server

2009-11-14 Thread Ivan Voras

I forgot to attach hardware details:

bce0: HP NC373i Multifunction Gigabit Server Adapter (B2) ASIC 
0x57081021 Rev B2 B/C 0x04040105 Flags 2.5G


Additional data point: I cannot reconfigure the card to 100 Mbit 
operation (currently in 1000baseSX autoselect, full-duplex).


Ivan Voras wrote:

The symptoms are:

* The device (bce0, bce1) comes up, is visible in ifconfig, can be 
configured, is UP and RUNNING, everything looks fine

* Apparently, it simply doesn't work - no ping responses, TCP, nothing
* But tcpdump shows that the NIC apparently does receive multicast 
router announcements, and some broadcast ARP traffic; only unicast seems 
to be affected.
* Running "netstat 1" shows that apparently there are some packets 
received - once a second or so, and the "err" counters are 0.
* Digging further, the dev.bce.0.stat_IfinFramesL2FilterDiscards 
contains an increasing number, currently arround 57000 and the 
dev.bce.0.stat_IfHCInBadOctets also contains an increasing number, 
currently around 450,000, while ...InOctets is around 30,000 and 
...OutBadOctets is 0.


 From the sysctls it looks like maybe it's discarding valid input 
packets. I've tried disabling rxcsum, txcsum and TSO without effect.


I cannot upgrade or install 8.0 because newusb has some problems with 
the hardware.


Any ideas?

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



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


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread Nikolay Tychina
I need a mirror of FreeBSD sources.
But the only one tool I can use for mirroring is rsync.
So, now I understand, that even if I get all sourrces from
ftp://ftp.freebsd.org/pub/FreeBSD/development/FreeBSD-CVS/
I won't be able to check them out without a pain.

cheers,

Nik

It would be easier to answer your question if you were more clear
> about what your goal is. What is it that you are trying to accomplish?
>
>
> Doug
>
> --
>
>Improve the effectiveness of your Internet presence with
>a domain name makeover!http://SupersetSolutions.com/
>
>
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread Doug Barton
Nikolay Tychina wrote:
> I need a mirror of FreeBSD sources.

Nope, not what I asked. :) The question is, what problem are you
trying to solve by having a mirror of FreeBSD sources? When we know
the answer to that, then we can advise you better.

-- 

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread Nikolay Tychina
Having a mirror accessible from our network for free would help users to get
sources for free.
Incoming traffic from Internet costs money, that's problem.


2009/11/14 Doug Barton 

> Nikolay Tychina wrote:
> > I need a mirror of FreeBSD sources.
>
> Nope, not what I asked. :) The question is, what problem are you
> trying to solve by having a mirror of FreeBSD sources? When we know
> the answer to that, then we can advise you better.
>
> --
>
>Improve the effectiveness of your Internet presence with
>a domain name makeover!http://SupersetSolutions.com/
>
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread cpghost
On Sat, Nov 14, 2009 at 09:38:11PM +0300, Nikolay Tychina wrote:
> Having a mirror accessible from our network for free would help users to get
> sources for free.
> Incoming traffic from Internet costs money, that's problem.

So you need to mirror /usr/src, and not the whole repository with
all its history, right?

What I do here is to csup /usr/src on one reference machine every now
and then, and then distribute that directory with rsync to all other
500+ machines inside.

Actually, I do a little bit more: I compile the sources on the reference
machine, and rsync /usr/obj to the other machines too, saving some 500+
buildworlds as well. I could nfs mount /usr/src and /usr/obj from the
reference server to the internal machines, but I have enough diskspace
there, and rsync is good enough for us.

You could also explore a similar mechanism w.r.t. /usr/ports, /usr/local,
/var/db/ports, /var/db/pkg etc..., if you want to save external bandwidth
downloading ports and distfiles, or CPU cycles compiling all this on your
internal machines. But this requires slightly more care, though it works
quite well too.

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: hald running 100%

2009-11-14 Thread Dan Langille

Dan Langille wrote:

Adam Vande More wrote:
On Thu, Nov 12, 2009 at 7:59 PM, Dan Langille > wrote:


-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

After upgrading to 8.0-PRERELEASE today, I'm seeing hald at 100% 
on both

my laptop and my desktop:


 PID USERNAME  THR PRI NICE   SIZERES STATE  C   TIME   WCPU 
COMMAND
1500 haldaemon   1 1180 22944K  4904K CPU1   1 107:44 100.00% 
hald


uptime was about 1:50 at this point.

Seems to be relatively common from the posts I've seen.


ThinkPad X61s.  dmesg output attached.  FWIW.


it's not a common issue anymore.  What version of hal are you running 
and did you recompile after the upgrade?


I don't know the version (laptop is not available just now) but I will 
recompile.  That's the next task.  Thanks.


I deleted the libusb library, then recompiled everything that depended 
upon it.  It's running fine now.  Thank you.


FYI: I've also recompiled all other packages.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread Nikolay Tychina
Well, reference machine doesn't even run FreeBSD. I need to mirror src (say,
checkout of RELENG_8).
Another problem is that only rsync may be used on the reference machine. :)


2009/11/14 cpghost 

> On Sat, Nov 14, 2009 at 09:38:11PM +0300, Nikolay Tychina wrote:
> > Having a mirror accessible from our network for free would help users to
> get
> > sources for free.
> > Incoming traffic from Internet costs money, that's problem.
>
> So you need to mirror /usr/src, and not the whole repository with
> all its history, right?
>
> What I do here is to csup /usr/src on one reference machine every now
> and then, and then distribute that directory with rsync to all other
> 500+ machines inside.
>
> -cpghost.
>
> --
> Cordula's Web. http://www.cordula.ws/
>
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Curiously unable to access network - bce, 7.2-RELEASE on a HP blade server

2009-11-14 Thread Ivan Voras
2009/11/14 Miroslav Lachman <000.f...@quip.cz>:
> Ivan Voras wrote:
>>
>> I forgot to attach hardware details:
>>
>> bce0: HP NC373i Multifunction Gigabit Server Adapter (B2) ASIC
>> 0x57081021 Rev B2 B/C 0x04040105 Flags 2.5G
>>
>> Additional data point: I cannot reconfigure the card to 100 Mbit
>> operation (currently in 1000baseSX autoselect, full-duplex).
>>
>> Ivan Voras wrote:
>>>
>>> The symptoms are:
>>>
>>> * The device (bce0, bce1) comes up, is visible in ifconfig, can be
>>> configured, is UP and RUNNING, everything looks fine
>>> * Apparently, it simply doesn't work - no ping responses, TCP, nothing
>>> * But tcpdump shows that the NIC apparently does receive multicast
>>> router announcements, and some broadcast ARP traffic; only unicast
>>> seems to be affected.
>>> * Running "netstat 1" shows that apparently there are some packets
>>> received - once a second or so, and the "err" counters are 0.
>>> * Digging further, the dev.bce.0.stat_IfinFramesL2FilterDiscards
>>> contains an increasing number, currently arround 57000 and the
>>> dev.bce.0.stat_IfHCInBadOctets also contains an increasing number,
>>> currently around 450,000, while ...InOctets is around 30,000 and
>>> ...OutBadOctets is 0.
>>>
>>> From the sysctls it looks like maybe it's discarding valid input
>>> packets. I've tried disabling rxcsum, txcsum and TSO without effect.
>>>
>>> I cannot upgrade or install 8.0 because newusb has some problems with
>>> the hardware.
>>>
>>> Any ideas?
>
> Can it be related to this PR 134788?
> http://www.freebsd.org/cgi/query-pr.cgi?pr=134788
> (your problem sounds different, but anyway you can try 7-STABLE bce driver)
>
> Recent changes in bce driver fixed it for me.

I did try booting 8.0 and found the same problem (though I cannot
install 8.0 because of an unrelated problem with newusb). Judging by
the dates in the PR, the fix should also be present in 8.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: Curiously unable to access network - bce, 7.2-RELEASE on a HP blade server

2009-11-14 Thread Miroslav Lachman

Ivan Voras wrote:

I forgot to attach hardware details:

bce0: HP NC373i Multifunction Gigabit Server Adapter (B2) ASIC
0x57081021 Rev B2 B/C 0x04040105 Flags 2.5G

Additional data point: I cannot reconfigure the card to 100 Mbit
operation (currently in 1000baseSX autoselect, full-duplex).

Ivan Voras wrote:

The symptoms are:

* The device (bce0, bce1) comes up, is visible in ifconfig, can be
configured, is UP and RUNNING, everything looks fine
* Apparently, it simply doesn't work - no ping responses, TCP, nothing
* But tcpdump shows that the NIC apparently does receive multicast
router announcements, and some broadcast ARP traffic; only unicast
seems to be affected.
* Running "netstat 1" shows that apparently there are some packets
received - once a second or so, and the "err" counters are 0.
* Digging further, the dev.bce.0.stat_IfinFramesL2FilterDiscards
contains an increasing number, currently arround 57000 and the
dev.bce.0.stat_IfHCInBadOctets also contains an increasing number,
currently around 450,000, while ...InOctets is around 30,000 and
...OutBadOctets is 0.

From the sysctls it looks like maybe it's discarding valid input
packets. I've tried disabling rxcsum, txcsum and TSO without effect.

I cannot upgrade or install 8.0 because newusb has some problems with
the hardware.

Any ideas?


Can it be related to this PR 134788?
http://www.freebsd.org/cgi/query-pr.cgi?pr=134788
(your problem sounds different, but anyway you can try 7-STABLE bce driver)

Recent changes in bce driver fixed it for me.

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


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread Jeremy Chadwick
On Sat, Nov 14, 2009 at 11:39:03PM +0300, Nikolay Tychina wrote:
> Well, reference machine doesn't even run FreeBSD. I need to mirror src (say,
> checkout of RELENG_8).
> Another problem is that only rsync may be used on the reference machine. :)

Your best best, in my opinion, would be to work with the responsible
party for said limitations and try to get them to understand that cvsup
should be used in this case.  If firewall holes are of a concern, state
all that's needed is a single outbound (not inbound) permit rule be
placed for TCP port 5999.  As long as the non-FreeBSD box runs some form
of *IX, you should be able to build cvsup and run it there.

Otherwise, if such truly can't be done, possibly the conversation should
be moved to freebsd-hubs where cvsup server owners reside and can
comment on which ones offer rsync access, etc..  Yes, some of them do
run an rsync daemon, but it's not a requirement.

-- 
| Jeremy Chadwick   j...@parodius.com |
| Parodius Networking   http://www.parodius.com/ |
| UNIX Systems Administrator  Mountain View, CA, USA |
| Making life hard for others since 1977.  PGP: 4BD6C0CB |
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Stefan Bethke
Am 28.10.2009 um 01:41 schrieb Daniel O'Connor:

> On Wed, 28 Oct 2009, jfar...@goldsword.com wrote:
>> Check the archives for stable@ and f...@.  I believe that there was a  
>> thread not that long ago detailing exactly how to do that.  IIRC,  
>> while it took a bit of work, it wasn't difficult.
> 
> Hmm do you have any idea what the subject was? I'm having trouble 
> finding it :(

If you still need it, it was "ZFS pool corrupted on upgrade of -current 
(probably sata  renaming)" on -current back in July.  You probably need to read 
the full thread, and there are some caveats, but it's sometimes possible to 
glabel each device/partion, and zpool replace the original device/partition 
with the labelled one online.


HTH,
STefan

-- 
Stefan BethkeFon +49 151 14070811




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


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread cpghost
On Sat, Nov 14, 2009 at 11:39:03PM +0300, Nikolay Tychina wrote:
> Well, reference machine doesn't even run FreeBSD. I need to mirror
> src (say, checkout of RELENG_8).

According to /usr/src/contrib/csup/README, csup can run on Linux or
other Unixoids too:

  Csup should build and run fine under any *BSD OS (that includes FreeBSD,
  NetBSD, OpenBSD and DragonFlyBSD), as well as Linux and Darwin.  If you
  have a problem building from source, drop me a mail!

So the reference machine running csup doesn't even need to run FreeBSD. :-)

> Another problem is that only rsync may be used on the reference machine. :)

If you're referring to firewall rules: csup connects by default to TCP
port 5999 of the csup server(s). This is an outbound connection only,
as there is no need to punch a hole in the firewall to allow for incoming
connections. Maybe talking to your network admin would resolve the problem?

Alternatively, there may be someone running a rsync daemon (over ssh?)
who could provide you with /usr/src? Or there may be someone running
a cvsup daemon on rsync's or http's port, so you could punch right
through your firewall with csup -p 873 or csup -p 80 (or something
similar)?

-cpghost.

-- 
Cordula's Web. http://www.cordula.ws/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Daniel O'Connor

Stefan Bethke wrote:

Am 28.10.2009 um 01:41 schrieb Daniel O'Connor:


On Wed, 28 Oct 2009, jfar...@goldsword.com wrote:
Check the archives for stable@ and f...@.  I believe that there was a  
thread not that long ago detailing exactly how to do that.  IIRC,  
while it took a bit of work, it wasn't difficult.
Hmm do you have any idea what the subject was? I'm having trouble 
finding it :(


If you still need it, it was "ZFS pool corrupted on upgrade of -current (probably 
sata  renaming)" on -current back in July.  You probably need to read the full 
thread, and there are some caveats, but it's sometimes possible to glabel each 
device/partion, and zpool replace the original device/partition with the labelled one 
online.


It's here..
http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009440.html

Quote...
> On Wed Jul 15 at 16:22, Freddie Cash  wrote:
> Yep.  It's as simple as:
>
>   * label all the drives using glabel, while they're still attached to
> the pool
>   * use "zpool replace pool ad4 label/disk01" to replace 1 drive
>   * wait for it to resilver
>   * use "zpool replace pool ad6 label/disk02" to replace the next
> drive
>   * repeat the resilver and replace until all the devices are replaced
>
> This is what I did to one of our servers.  Works quite nicely.
>
> There's no need to detach anything.

I'll try it when I get home and see how it goes.

--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Daniel O'Connor

Daniel O'Connor wrote:

Stefan Bethke wrote:

Am 28.10.2009 um 01:41 schrieb Daniel O'Connor:


On Wed, 28 Oct 2009, jfar...@goldsword.com wrote:
Check the archives for stable@ and f...@.  I believe that there was a  
thread not that long ago detailing exactly how to do that.  IIRC,  
while it took a bit of work, it wasn't difficult.
Hmm do you have any idea what the subject was? I'm having trouble 
finding it :(


If you still need it, it was "ZFS pool corrupted on upgrade of 
-current (probably sata  renaming)" on -current back in July.  You 
probably need to read the full thread, and there are some caveats, but 
it's sometimes possible to glabel each device/partion, and zpool 
replace the original device/partition with the labelled one online.


It's here..
http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009440.html

Quote...
 > On Wed Jul 15 at 16:22, Freddie Cash  wrote:
 > Yep.  It's as simple as:
 >
 >   * label all the drives using glabel, while they're still attached to
 > the pool
 >   * use "zpool replace pool ad4 label/disk01" to replace 1 drive
 >   * wait for it to resilver
 >   * use "zpool replace pool ad6 label/disk02" to replace the next
 > drive
 >   * repeat the resilver and replace until all the devices are replaced
 >
 > This is what I did to one of our servers.  Works quite nicely.
 >
 > There's no need to detach anything.

I'll try it when I get home and see how it goes.


It would be nice if the man page mentioned this case though, currently 
the "zpool replace" entry covers the case where the new disk has the 
same device node.


--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Larry Rosenman

On Sat, November 14, 2009 5:43 pm, Daniel O'Connor wrote:
> Stefan Bethke wrote:
>> Am 28.10.2009 um 01:41 schrieb Daniel O'Connor:
>>
>>> On Wed, 28 Oct 2009, jfar...@goldsword.com wrote:
 Check the archives for stable@ and f...@.  I believe that there was a
 thread not that long ago detailing exactly how to do that.  IIRC,
 while it took a bit of work, it wasn't difficult.
>>> Hmm do you have any idea what the subject was? I'm having trouble
>>> finding it :(
>>
>> If you still need it, it was "ZFS pool corrupted on upgrade of -current
>> (probably sata  renaming)" on -current back in July.  You probably need
>> to read the full thread, and there are some caveats, but it's sometimes
>> possible to glabel each device/partion, and zpool replace the original
>> device/partition with the labelled one online.
>
> It's here..
> http://lists.freebsd.org/pipermail/freebsd-current/2009-July/009440.html
>
> Quote...
>  > On Wed Jul 15 at 16:22, Freddie Cash  wrote:
>  > Yep.  It's as simple as:
>  >
>  >   * label all the drives using glabel, while they're still attached to
>  > the pool
>  >   * use "zpool replace pool ad4 label/disk01" to replace 1 drive
>  >   * wait for it to resilver
>  >   * use "zpool replace pool ad6 label/disk02" to replace the next
>  > drive
>  >   * repeat the resilver and replace until all the devices are replaced
>  >
>  > This is what I did to one of our servers.  Works quite nicely.
>  >
>  > There's no need to detach anything.
>
> I'll try it when I get home and see how it goes.

When I try that, I get:
# zpool status
  pool: vault
 state: ONLINE
 scrub: scrub completed after 3h4m with 0 errors on Wed Nov 11 04:32:00 2009
config:

NAMESTATE READ WRITE CKSUM
vault   ONLINE   0 0 0
  raidz1ONLINE   0 0 0
ada1ONLINE   0 0 0
ada2ONLINE   0 0 0
ada3ONLINE   0 0 0
ada4ONLINE   0 0 0
ada5ONLINE   0 0 0
  ada0s1f   ONLINE   0 0 0
  ada0s1e   ONLINE   0 0 0
  ada0s1d   ONLINE   0 0 0

errors: No known data errors
# glabel label disk01 /dev/ada1
glabel: Can't store metadata on /dev/ada1: Operation not permitted.
#

Ideas?

>
> --
> Daniel O'Connor software and network engineer
> for Genesis Software - http://www.gsoft.com.au
> "The nice thing about standards is that there
> are so many of them to choose from."
>-- Andrew Tanenbaum
> GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
> ___
> freebsd-stable@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-stable
> To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"
>


-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 512-248-2683 E-Mail: l...@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893


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


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Daniel O'Connor

Larry Rosenman wrote:

NAMESTATE READ WRITE CKSUM
vault   ONLINE   0 0 0
  raidz1ONLINE   0 0 0
ada1ONLINE   0 0 0
ada2ONLINE   0 0 0
ada3ONLINE   0 0 0
ada4ONLINE   0 0 0
ada5ONLINE   0 0 0
  ada0s1f   ONLINE   0 0 0
  ada0s1e   ONLINE   0 0 0
  ada0s1d   ONLINE   0 0 0

errors: No known data errors
# glabel label disk01 /dev/ada1
glabel: Can't store metadata on /dev/ada1: Operation not permitted.
#

Ideas?


This is because glabel writes to the end of the disk (which is what it 
uses to persist the label), if you haven't already labelled them it 
can't add a one without destroying some data.


I don't have this problem because I used GPT as a container and it has a 
UUID for each partition made.


--
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Larry Rosenman

On Sat, November 14, 2009 6:03 pm, Daniel O'Connor wrote:
> Larry Rosenman wrote:
>>  NAMESTATE READ WRITE CKSUM
>>  vault   ONLINE   0 0 0
>>raidz1ONLINE   0 0 0
>>  ada1ONLINE   0 0 0
>>  ada2ONLINE   0 0 0
>>  ada3ONLINE   0 0 0
>>  ada4ONLINE   0 0 0
>>  ada5ONLINE   0 0 0
>>ada0s1f   ONLINE   0 0 0
>>ada0s1e   ONLINE   0 0 0
>>ada0s1d   ONLINE   0 0 0
>>
>> errors: No known data errors
>> # glabel label disk01 /dev/ada1
>> glabel: Can't store metadata on /dev/ada1: Operation not permitted.
>> #
>>
>> Ideas?
>
> This is because glabel writes to the end of the disk (which is what it
> uses to persist the label), if you haven't already labelled them it
> can't add a one without destroying some data.
>
> I don't have this problem because I used GPT as a container and it has a
> UUID for each partition made.

That makes sense.  I guess if I ever rebuild this one, I'll be better
about it :)

and, now that we have raidz boot, I'll just make the whole mess ZFS. :)

LER

-- 
Larry Rosenman http://www.lerctr.org/~ler
Phone: +1 512-248-2683 E-Mail: l...@lerctr.org
US Mail: 430 Valona Loop, Round Rock, TX 78681-3893


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


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Stefan Bethke
Am 15.11.2009 um 00:58 schrieb Larry Rosenman:

>>> On Wed Jul 15 at 16:22, Freddie Cash  wrote:
>>> Yep.  It's as simple as:
>>> 
>>>  * label all the drives using glabel, while they're still attached to
>>> the pool
>>>  * use "zpool replace pool ad4 label/disk01" to replace 1 drive
>>>  * wait for it to resilver
>>>  * use "zpool replace pool ad6 label/disk02" to replace the next
>>> drive
>>>  * repeat the resilver and replace until all the devices are replaced
>>> 
>>> This is what I did to one of our servers.  Works quite nicely.
>>> 
>>> There's no need to detach anything.
>> 
>> I'll try it when I get home and see how it goes.
> 
> When I try that, I get:

> # glabel label disk01 /dev/ada1
> glabel: Can't store metadata on /dev/ada1: Operation not permitted.

There's some caveats that you need to consider before attempting this: most 
importantly, glabel will re-use the last block of the disk/partition to store 
the label.  Apparently, in many cases, the filesystem (UFS, ZFS) allocates 
blocks in larger chunks (8K or larger), and the last few blocks are unused and 
can be repurposed.  But there's no guarantee, so you might damage the 
filesystem by labeling the device.  I don't understand enough to definitivly 
say how to deterime whether the last block is available or not, so make sure 
you have a backup before trying.

Secondly, my limited experience shows that both GEOM and ZFS can get confused 
about devices/partitions/geoms that start on the same block as others.  How 
these are picked up by GEOM and/or ZFS in their probing depends on the order, 
and it wasn't always obvious to me how that worked.  In one case, I couldn't 
get GEOM to pick up the /dev/label entry, since it removed the label entry as 
soon as the physical device node was probed.  I've since come to the conclusion 
that labelled GPT partitions are the way forward, and now that booting off 
ZRAID pools on GPT partitions works, there's little speaking against it, IMO.

Finally, if you want to label the existing disks, you probably need to take the 
pool offline for the labelling step, using zpool export, so the devices are not 
mounted anymore.


Stefan

-- 
Stefan BethkeFon +49 151 14070811




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


Re: whats best pracfive for ZFS on a whole disc these days ?

2009-11-14 Thread Stefan Bethke
Am 15.11.2009 um 00:49 schrieb Daniel O'Connor:

> It would be nice if the man page mentioned this case though, currently the 
> "zpool replace" entry covers the case where the new disk has the same device 
> node.

Huh?

>zpool replace [‐f] pool old_device [new_device]
> 
>Replaces  old_device with new_device. This is equivalent to attach‐
>ing new_device, waiting for it  to  resilver,  and  then  detaching
>old_device.


Stefan

-- 
Stefan BethkeFon +49 151 14070811




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


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread Doug Barton
Nikolay Tychina wrote:
> Well, reference machine doesn't even run FreeBSD. I need to mirror src (say,
> checkout of RELENG_8).
> Another problem is that only rsync may be used on the reference machine. :)

I really don't want to sound like a nag but you're still not being
very clear as to what you're trying to do. Do you need to have just
the checked out versions of /usr/src for one particular branch at one
specific point in time that will be the same for all the machines that
have to access it? If so, you'll need to check the files out on the
reference machine. This can be done with cvsup, csup, or subversion
(svn). If the reference machine is not running freebsd then svn is
your worst option since in order to expand the $FreeBSD$ Id tags you
need a patch to the subversion sources that a linux admin is not
likely to look kindly on. You can likely find cvsup binaries for linux
available on line, or you should be able to compile csup on the linux
box. If compiling it doesn't work, report the problems on
freebsd-hack...@freebsd.org.

If it's genuinely not possible to run anything but rsync on the
reference machine you'll have to check out the sources on a freebsd
box and rsync the files to the reference machine from there.

If this isn't what you're trying to accomplish at all you need to
provide a lot more information about what you're trying to do.


Doug

-- 

Improve the effectiveness of your Internet presence with
a domain name makeover!http://SupersetSolutions.com/
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscr...@freebsd.org"


Re: how to mirror cvs or svn with rsync

2009-11-14 Thread b. f.
>I need a mirror of FreeBSD sources.
>But the only one tool I can use for mirroring is rsync.

I'm not quite sure why this is so: I wonder if you have examined all
of your options, as others have written.  Anyway, if you want to use
rsync, have you tried any of the servers listed in:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/mirrors-rsync.html

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