Re: Re-starting a gjournal provider

2009-07-19 Thread Anthony Chavez
I'm moving this discussion to freebsd-questions, which is probably a
more suitable forum (if not freebsd-geom).  I apologize for the
intrusion and the subsequent crosspost.

Anthony Chavez wrote:
 Hello freebsd-fs,
 
 I'm trying to get gjournal working on a removable hard disk.  I use
 the term loosely, because I'm using a very simple eSATA enclosure: an
 AMS Venus DS5 [1].
 
 If I swap out disks, atacontrol cap ad0 seems sufficient enough to
 detect the new drive: the reported device model, serial number, firmware
 revision, and CHS values change as one would expect.
 
 My interpretation of [2] section 5.3 and gjournal(8) is that the
 following sequence of commands should ensure me that all write buffers
 have been flushed and bring the system to a point where it is safe to
 remove a disk.
 
 sync; sync; sync
 gjournal sync
 umount /dev/ad0s1.journal
 gjournal stop ad0s1.journal
 
 However, once they are executed, /dev/ad0s1.journal disappears and when
 I swap out the disk it doesn't come back.  The only way I've found to
 bring it back is atacontrol detach ata0; atacontrol attach ata0, which
 doesn't seem like a wise thing to do if I have another device on the
 same channel.
 
 My question is, do I need to issue gjournal stop before I swap disks?
 And if so, is there any way that I can avoid the atacontrol
 detach/attach cycle that would need to take place before any mount is
 attempted so that /dev/ad0s1.journal appears (if in the drive inserted
 at the time does in fact utilize gjournal; I may want to experiment with
 having disks with either gjournal or soft updates)?
 
 And while I'm on the subject, are the (gjournal) syncs commands
 preceeding umount absolutely necessary in the case of removable media?
 
 [1] http://www.american-media.com/product/external/ds/ds.html
 
 [2] http://www.freebsd.org/doc/en/articles/gjournal-desktop/article.html

-- 
Anthony Chavez  http://hexadecagram.org/
mailto:a...@hexadecagram.orgxmpp:a...@hexadecagram.org



signature.asc
Description: OpenPGP digital signature


UFS2 or ZFS for 3TB disk?

2008-10-21 Thread Anthony Chavez
The subject says it all.

I will soon be installing an Areca ARC-1110 and 3x 1.5TB Seagate
Barracuda SATAs into a 3.2GHz Northwood P4 with 1GB of RAM, and I'm
wondering which would be the most stable filesystem to use.

I've read the bigdisk page [1] and the various information about ZFS on
the FreeBSD Wiki [2].  I'm aware of the tuning requirements that ZFS
requires, and upgrading to 4GB of RAM would be quite possible as it was
understood beforehand that ZFS requires a large quantity of it.

My questions are as follows.

1. I'm aware of the fact that ZFS works better on 64-bit platforms, and
 that alone has me thinking that it's not a good fit for this particular
machine.  But apart from that, it seems that ZFS is not yet stable
enough for my environment (only about 25 users but in production
nonetheless).  To me, [3] paints all sorts of ugly pictures, which can
be summarized as count on ZFS-related panics and deadlocks happening
fairly regularly and disabling ZIL in the interest of stability will
put your data at risk.  Comments about live systems using ZFS (on
7.0-RELEASE or 7-STABLE) would be appreciated.

2. [1] appears to be a bit dated.  Nevertheless, I'm inclined to think
that the status described there (as well as in various man pages) still
applies to UFS2 on 7.0-RELEASE.  Please correct me if I'm wrong or let
me know if the state of affairs has improved significantly in 7-STABLE.

2a. Does the information contained in [1] apply to ZFS as well?

3. As the array will be for data only and not be booted, will it be
possible to use fdisk to slice it up, or will I need to use gpt?

4. My planned course of action will be to attempt to newfs the device
itself (da0, all 3TB of it) or 1 full-disk slice (da0s1).  Failing that,
I will attempt to gconcat da0s1 and da0s2 (1.5TB each), although I
suspect that may not work since for one thing, growfs is not yet 64-bit
clean.  In either case, I'm very interested in using gbde/geli to
encrypt the fs.  If either of these paths are not possible or
recommended, are there any suggestions for alternate means of creating a
3TB fs?

4a. If gconcat'ing 2 slices together (or some other suggetion) will in
fact work, would doing so effectively work around the userland tool
incompatibilities mentioned in [1]?

Thank you!

[1] http://freebsd.org/projects/bigdisk

[2] http://wiki.freebsd.org/ZFS

[3] http://wiki.freebsd.org/ZFSKnownProblems

-- 
Anthony Chavez  http://hexadecagram.org/
mailto:[EMAIL PROTECTED]xmpp:[EMAIL PROTECTED]

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


RAID migration

2008-10-12 Thread Anthony Chavez
Dear freebsd-questions,

I have a HighPoint 1820 RAID controller that is using 1 channel for an
OS drive and 3 channels for a RAID-5 array.  I'm interested in migrating
to a new (possibly non-HighPoint) card, and am wondering if I will be
able to plug the OS drive into one channel on the new card and have it
just work.  Is it a safe bet that it will?

I'm curious to know if the array could be migrated just as easily, or if
I should listen to my instinct and count on bumping into
incompatibilities due to proprietary implementations.

Here are the relevant dmesg lines of my system as it stands:

hptrr: HPT RocketRAID controller driver v1.1 (Jun  7 2008 14:01:57)
hptmv0: RocketRAID 182x SATA Controller mem 0xf200-0xf207 irq
24 at device 1.0 on pci2
hptmv0: [GIANT-LOCKED]
hptmv0: [ITHREAD]
hptrr: no controller detected.
da0 at hptmv0 bus 0 target 0 lun 0
da0: Maxtor 6 Y080M0 YAR5 Fixed Direct Access SCSI-0 device
da1 at hptmv0 bus 0 target 1 lun 0
da1: RR182x RAID 5 Array 3.00 Fixed Direct Access SCSI-0 device

-- 
Anthony Chavez  http://hexadecagram.org/
mailto:[EMAIL PROTECTED]xmpp:[EMAIL PROTECTED]

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


Re: RAID migration

2008-10-12 Thread Anthony Chavez
Jeremy Chadwick wrote:
 On Sun, Oct 12, 2008 at 07:10:31PM -0600, Anthony Chavez wrote:
 Dear freebsd-questions,

 I have a HighPoint 1820 RAID controller that is using 1 channel for an
 OS drive and 3 channels for a RAID-5 array.  I'm interested in migrating
 to a new (possibly non-HighPoint) card, and am wondering if I will be
 able to plug the OS drive into one channel on the new card and have it
 just work.  Is it a safe bet that it will?
 
 It probably will work, assuming that the OS disk is not configured
 as a RAID or array member in the RAID cards' BIOS.  Meaning, if you're
 using the disk on the controller purely in a JBOD fashion, yes, it
 should work.

In the WebGUI's logical device information section, that particular
drive is listed as a hard disk whereas the other 3 are clearly spelled
out as a RAID 5 array.  When I shut the machine down, I will check the
BIOS itself to see if it specifically states JBOD.  Thanks for the
pointer.

Regardless, I will be backing it up before I attempt to plug it into a
new RAID controller.

 I'm curious to know if the array could be migrated just as easily, or if
 I should listen to my instinct and count on bumping into
 incompatibilities due to proprietary implementations.
 
 I can absolutely guarantee you that you will lose access to all of your
 data once you plug those 3 disks into another controller.
 
 You need to back up all of your data from the RAID-5 array using
 something like rsync, cpdup, or dump, move the disks over to the
 non-RAID controller, format them (in whatever fashion you want),
 and then restore the backup.

Exactly what I planned to do, but figured I'd ask anyhow. ;-)

Thank you for responding.

-- 
Anthony Chavez  http://hexadecagram.org/
mailto:[EMAIL PROTECTED]xmpp:[EMAIL PROTECTED]

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


Re: Stress testing and TIMEOUT - WRITE_DMA

2005-09-06 Thread Anthony Chavez
On Fri, 26 Aug 2005 03:21:35 -0600 Anthony Chavez [EMAIL PROTECTED] wrote:

 My question is simply this: is the fact that I received 4 TIMEOUT
 warnings in the space of roughly 2 weeks significant cause for concern?

Apparently, the fact that the stress tool produced so few warnings may
have given me a false sense of security.  I'm being treated to the
following messages (81 in total) today, after 8 days uptime:

Sep  6 11:35:27 mybox kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries 
left) LBA=8348191
...
Sep  6 18:59:09 mybox kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries 
left) LBA=8348383
Sep  6 19:04:58 mybox kernel: ad0: TIMEOUT - READ_DMA retrying (2 retries left) 
LBA=61749183

The READ_DMA timeouts are happening very infrequently, but it's worth
mentioning that I'm seeing them now in addition.

This is quite disturbing, particularly when the machine in question is
*in*production.*

Has anyone who has experienced this pain found solace in 5-STABLE's ATA
drivers?

dmesg below.

-- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]

Copyright (c) 1992-2005 The FreeBSD Project.
Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994
The Regents of the University of California. All rights reserved.
FreeBSD 5.4-RELEASE-p6 #0: Fri Aug 26 02:23:19 MDT 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC
ACPI APIC Table: DELL   2400   
Timecounter i8254 frequency 1193182 Hz quality 0
CPU: Intel(R) Celeron(R) CPU 2.40GHz (2392.25-MHz 686-class CPU)
  Origin = GenuineIntel  Id = 0xf29  Stepping = 9
  
Features=0xbfebfbffFPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE
real memory  = 266813440 (254 MB)
avail memory = 251445248 (239 MB)
ioapic0: Changing APIC ID to 1
ioapic0 Version 2.0 irqs 0-23 on motherboard
npx0: math processor on motherboard
npx0: INT 16 interface
acpi0: DELL 2400on motherboard
acpi0: Power Button (fixed)
Timecounter ACPI-fast frequency 3579545 Hz quality 1000
acpi_timer0: 24-bit timer at 3.579545MHz port 0x808-0x80b on acpi0
cpu0: ACPI CPU on acpi0
acpi_button0: Power Button on acpi0
pcib0: ACPI Host-PCI bridge port 0xcf8-0xcff on acpi0
pci0: ACPI PCI bus on pcib0
agp0: Intel 82845G (845G GMCH) SVGA controller mem 
0xfeb8-0xfebf,0xe800-0xefff irq 16 at device 2.0 on pci0
agp0: detected 892k stolen memory
agp0: aperture size is 128M
uhci0: Intel 82801DB (ICH4) USB controller USB-A port 0xff80-0xff9f irq 16 at 
device 29.0 on pci0
usb0: Intel 82801DB (ICH4) USB controller USB-A on uhci0
usb0: USB revision 1.0
uhub0: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub0: 2 ports with 2 removable, self powered
uhci1: Intel 82801DB (ICH4) USB controller USB-B port 0xff60-0xff7f irq 19 at 
device 29.1 on pci0
usb1: Intel 82801DB (ICH4) USB controller USB-B on uhci1
usb1: USB revision 1.0
uhub1: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub1: 2 ports with 2 removable, self powered
uhci2: Intel 82801DB (ICH4) USB controller USB-C port 0xff40-0xff5f irq 18 at 
device 29.2 on pci0
usb2: Intel 82801DB (ICH4) USB controller USB-C on uhci2
usb2: USB revision 1.0
uhub2: Intel UHCI root hub, class 9/0, rev 1.00/1.00, addr 1
uhub2: 2 ports with 2 removable, self powered
pci0: serial bus, USB at device 29.7 (no driver attached)
pcib1: ACPI PCI-PCI bridge at device 30.0 on pci0
pci1: ACPI PCI bus on pcib1
pci1: simple comms, generic modem at device 5.0 (no driver attached)
xl0: 3Com 3c900-TPO Etherlink XL port 0xddc0-0xddff irq 18 at device 6.0 on 
pci1
xl0: selecting 10baseT transceiver, half duplex
xl0: Ethernet address: 00:60:97:74:a8:6d
bfe0: Broadcom BCM4401 Fast Ethernet mem 0xfe9fe000-0xfe9f irq 17 at 
device 9.0 on pci1
miibus0: MII bus on bfe0
bmtphy0: BCM4401 10/100baseTX PHY on miibus0
bmtphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
bfe0: Ethernet address: 00:12:3f:d4:21:75
isab0: PCI-ISA bridge at device 31.0 on pci0
isa0: ISA bus on isab0
atapci0: Intel ICH4 UDMA100 controller port 
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 irq 18 at device 31.1 on pci0
ata0: ATA channel 0 on atapci0
ata1: ATA channel 1 on atapci0
pci0: serial bus, SMBus at device 31.3 (no driver attached)
pci0: multimedia, audio at device 31.5 (no driver attached)
fdc0: floppy drive controller port 0x3f7,0x3f0-0x3f5 irq 6 drq 2 on acpi0
atkbdc0: Keyboard controller (i8042) port 0x64,0x60 irq 1 on acpi0
atkbd0: AT Keyboard irq 1 on atkbdc0
kbd0 at atkbd0
sio0: 16550A-compatible COM port port 0x3f8-0x3ff irq 4 flags 0x10 on acpi0
sio0: type 16550A
ppc0: ECP parallel printer port port 0x778-0x77f,0x378-0x37f irq 7 on acpi0
ppc0: SMC-like chipset (ECP/EPP/PS2/NIBBLE) in COMPATIBLE mode
ppc0: FIFO with 16/16/8 bytes threshold
ppbus0: Parallel port bus on ppc0
plip0: PLIP network interface on ppbus0
lpt0: Printer on ppbus0
lpt0: Interrupt-driven port
ppi0: Parallel I/O on ppbus0

Stress testing and TIMEOUT - WRITE_DMA

2005-08-26 Thread Anthony Chavez
Greetings, freebsd-questions!

I've got a number of machines to deploy in very critical locations
*very* soon, so I'd appreciate any expedient responses that I can get
about this.

I have been affected by the recent issues surrounding the recent ATA
driver changes in the 5.x branch.  I'm currently tracking RELENG_5_4
(FreeBSD 5.4-RELEASE-p6) on systems with ICH4 and ICH6 UDMA controllers.

I recently applied Soeren's patch [1] on an ICH4 system, and put a
significant write load (/usr/ports/sysutils/stress -i4 -d4) on it for
almost 2 weeks.  Here are the results:

Aug 13 21:10:01 witproto sudo:  acc : TTY=ttyp5 ; PWD=/usr/home/acc ; 
USER=root ; COMMAND=/usr/local/bin/stress -i 4 -d 4
Aug 19 21:31:14 witproto kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries 
left) LBA=7879615
Aug 21 07:59:57 witproto kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries 
left) LBA=3775775
Aug 23 23:01:41 witproto kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries 
left) LBA=5560159
Aug 25 12:06:50 witproto kernel: ad0: TIMEOUT - WRITE_DMA retrying (2 retries 
left) LBA=5786623

FWIW, my hardware is:

atapci0: Intel ICH4 UDMA100 controller port 
0xffa0-0xffaf,0x376,0x170-0x177,0x3f6,0x1f0-0x1f7 irq 18 at device 31.1 on pci0
ad0: 76293MB SAMSUNG SP0802N TK100-28 at ata0-master UDMA100

During the test, the drive remained in UDMA100 mode and throughput
varied from 18ish to 50ish MB/s (eyeball average approx. 20-25 MB/s).
System load is 0.00 0.06 0.45 after killing stress.

My question is simply this: is the fact that I received 4 TIMEOUT
warnings in the space of roughly 2 weeks significant cause for concern?

[1] http://people.freebsd.org/~sos/ATA/

-- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]


pgp0WTnRnQrMr.pgp
Description: PGP signature


Re: VNC multiplexer

2005-07-01 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On Thu, 30 Jun 2005 21:59:14 -0700 (PDT) Philip Hallstrom [EMAIL PROTECTED] 
wrote:

 On 6/26/05, Anthony Chavez [EMAIL PROTECTED] wrote:
 I've got a client that would like to be able to connect to VNC servers
 behind a FreeBSD gateway.  Said servers are assigned dynamic IPs via
 DHCP, so port mapping (via pf) is not an option (AFAIK).  However, we
 intend to make use of dynamic DNS, so they will at least have hostnames.

 I missed the first part of this, but would proxying the VNC
 connections through an intermediate SSH server help at all?

 http://www.pjkh.com/wiki/vnc_through_an_ssh_proxy

 You could setup individual SSH tunnels for each machine in question.
 The tunnel would stay the same regardless of the IP... and the VNC
 viewer would connect to localhost so you'd never really need the
 server IP.

This *might* work.  I think that my client wants to be as non-intrusive
on the users' workstations as possible, but we could always script up
something to mass-deploy openssh and tightvnc invisibly to the users.

Thanks!

- -- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQEVAwUBQsThsPAIdTFWAbdTAQoZVAgAjIbnkbKMiCZ4/BfIPFxx4bvLGnDUOjOY
JuhMJf/maDB7HDnAipZ8I8cd1BpE1JW+P8+EM2+wje6bA+SdcfDzy6WFJTIkc0er
SqVjsAj82JwBfOXE7tKbNZaw+R7JYazPVc5Kz4eliTIJxw/PnkJSjz3Io8F+Q5Vv
rMbkX04y7mu4O/T1NRSG7jyvmW9E+3wlrtSdhWAD+7HeQwsaLBiZDcw6Ln5t3Jp+
PTFzYFlyGHKQ7e6qiVWyxyIeHc0JWb2sHFZk/quDqfUe8bOeyf1Uyxpy6T1CTWxv
R6JpjHCM8wKbKX6KPSKyxPf7UzNVxg37a3A/P2waCaC2+qs00McPFw==
=+2Xo
-END PGP SIGNATURE-

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


Re: VNC multiplexer

2005-06-30 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

On Mon, 27 Jun 2005 01:42:53 -0500 Nikolas Britton [EMAIL PROTECTED] wrote:

 On 6/26/05, Anthony Chavez [EMAIL PROTECTED] wrote:
 I've got a client that would like to be able to connect to VNC servers
 behind a FreeBSD gateway.  Said servers are assigned dynamic IPs via
 DHCP, so port mapping (via pf) is not an option (AFAIK).  However, we
 intend to make use of dynamic DNS, so they will at least have hostnames.

 Why can't you just give them static mappings. On my networks I use
 DHCP for everything.
 I then tell my DHCP/DNS server (m0n0wall) to reserve and only give
 this ip address to server x or printer y etc.to put it bluntly...

Static IPs would certainly work, but this particular subnet is expected
to see a large degree of growth over the next few years, and my client
specificially asked for dynamic IPs.

 One solution we've considered is setting up a multiplexer of sorts that
 would enable users of VNC client apps to pick and choose which machine
 to connect to inside the LAN per session, but I'm curious to know if
 such a thing (or something similar) exists already.

 I've never heard of such a device

And after researching it, I'm discovering that even *making* such a
device would be extremely difficult because the VNC protocol itself does
not lend itself well to proxying.  So there's my answer: write a
multiplexer myself.

 I'd be very interested in knowing what solutions any of you may have
 come with to tackle this problem.

 DNS. u what about setting up a web page where the user can
 click on which server to connect to (you will still need DNS or Static
 mappings) and then it opens up in a java VNC client?

We've considered doing that.  However, my client has been somewhat
unimpressed by the Java VNC client, and is not terribly interested in
using it either.

Nevertheless, I appreciate your response.

- -- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQEVAwUBQsSwxvAIdTFWAbdTAQoEIwf/YwL4SLjpI/78wqvaGcwIXwQGXsSOfaJb
t3U3Jitjov6wnYgq26YxMGQoFknXpAtPzqAR8Rn9ceJdEt4AtJ1S7vo7NyD0GrRm
dqKnfVvUYUUPWNk1cuDmVbEH8HDXQllInQ/aeRaXTNDONACUtFxH/lKF+rEs0nV9
N7UhyFKeAHZAjd4FYBIlCbdw4rQkoFc1Ke8LLbi6LdK3ZuYTrLHIinLy2lcY4zkf
2E023tALJHh1+K0Ks82NmX7zLxbh2GqRKAlZ01Iy414vBSeGe9Yuz0jvwQ2YYZx2
g2mwvLdrujz3mVtOmn14tmFr9t/BrVq3NBONPSKKQaq4FawbX8bRqw==
=6iXs
-END PGP SIGNATURE-

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


VNC multiplexer

2005-06-26 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512

Hi, all.

Slightly off-topic here, but I thought I might get a better (and more
relevant) response from here rather than a more general VNC
list/newsgroup.

I've got a client that would like to be able to connect to VNC servers
behind a FreeBSD gateway.  Said servers are assigned dynamic IPs via
DHCP, so port mapping (via pf) is not an option (AFAIK).  However, we
intend to make use of dynamic DNS, so they will at least have hostnames.

One solution we've considered is setting up a multiplexer of sorts that
would enable users of VNC client apps to pick and choose which machine
to connect to inside the LAN per session, but I'm curious to know if
such a thing (or something similar) exists already.

I'd be very interested in knowing what solutions any of you may have
come with to tackle this problem.

Cheers!

- -- 
Anthony Chavez http://anthonychavez.org/
mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.0 (Darwin)

iQEVAwUBQr58tfAIdTFWAbdTAQpPnggAmDPem80aanSH+L3ig0/Emo4y42NRqiWb
CUFRSaE0tAXpnsh75QGJrHqBW6Tzhmw/2ukA6oGHc79NJLMJPBE4s1LzkYM2Xg42
WI1E2985ISfqhQEjnTBCDQ+vfby1WsWG8Byf3EBPKVIFAR9t0pVbLbIpJDOjfZF/
AWQlUvLK3IOOdwauImBfDsIgZ+4RnCBOsizsoJpC1BXVAAJErCFYWBsKUek0MBdj
irQYqALglceIGC5britOHbz2dOL7qdOFnZ4Sh5hdovMM00OOlddHJdjCzRkENHOr
kAF6ClX7KpeFD/6TNC/5P+dOv6UqqOlcYBw2hTHgCEVMKssr+14Dnw==
=vZNY
-END PGP SIGNATURE-

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


linking to libc and libc_r (was Re: Certain 4.10 apps failing to run as root)

2004-07-13 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Here's an update...

On Thu, 10 Jun 2004 09:12:33 -0600 Anthony Chavez [EMAIL PROTECTED] wrote:
 I think that Kris has been swallowed up by other efforts at the moment,
 so I'm moving this to the freebsd-stable list, where it's probably more
 relevant anyhow.

Actually, this particular machine is actually running RELENG_4_10.  My
bad.  So I'm posting this back to -questions. :-)

 On Thu, 03 Jun 2004 01:35:33 -0600 Anthony Chavez [EMAIL PROTECTED] wrote:
 I just upgraded one of my machines to 4.10-STABLE from 4.9-STABLE and

s/0-STABLE/0-RELEASE/

 certain binaries (such as vim or vipw) when run as root (either with
 sudo or su -) freeze up with rcmdsh: unknown user: followed by a bunch
 of garbage.

 Any thoughts on what could be causing this?

 On Thu, 03 Jun 2004 07:22:09 -0600 Anthony Chavez [EMAIL PROTECTED] wrote:
 On Thu, 3 Jun 2004 01:27:57 -0700 Kris Kennaway [EMAIL PROTECTED] wrote:
 I've only seen this when something incorrectly links to both libc and
 libc_r.  Neither of those four binaries should be linked to libc_r at
 all though.  Can you confirm with ldd(1)?

I have successfully worked around the problem by passing -DLITE to make
when building editors/vim.  When I remove -DLITE, the error resurfaces.

The following binaries remain affected (there are others, but they are
irrelevant to vim):

/usr/X11R6/bin/glxinfo:
libc_r.so.4 = /usr/lib/libc_r.so.4 (0x28221000)
libc.so.4 = /usr/lib/libc.so.4 (0x2831e000)
/usr/X11R6/bin/glxgears:
libc_r.so.4 = /usr/lib/libc_r.so.4 (0x281ac000)
libc.so.4 = /usr/lib/libc.so.4 (0x28264000)

What is causing this?  My first suspicion is ccache.  Could it be that I
have set the following variables in /etc/make.conf?

CC=/usr/local/bin/cc
CPP=/usr/local/bin/cpp
CXX=/usr/local/bin/c++

( /usr/local/bin/c{c,pp,++} are symlinked to /usr/local/bin/ccache. )

Apart from that, the only difference between the system in question and
a stock FreeBSD installation is the following MARK_ARGS pair in
/usr/local/etc/pkgtools.conf:

'editors/vim' = '-DLITE -DWITH_CSCOPE -DWITH_PERL -DWITH_PYTHON -DWITH_RUBY 
-DWITH_TCL'

- -- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFA9KG1bZTbIaRBRXERAvYRAJ9Q+3AcEYJLB1iYSoSqWZM/ZMfxkACfXKeT
WTypK5pincbgv/4DyQ0abDU=
=FEw9
-END PGP SIGNATURE-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Certain 4.10 apps failing to run as root

2004-06-10 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I think that Kris has been swallowed up by other efforts at the moment,
so I'm moving this to the freebsd-stable list, where it's probably more
relevant anyhow.

On Thu, 03 Jun 2004 01:35:33 -0600 Anthony Chavez [EMAIL PROTECTED] wrote:
 I just upgraded one of my machines to 4.10-STABLE from 4.9-STABLE and
 certain binaries (such as vim or vipw) when run as root (either with
 sudo or su -) freeze up with rcmdsh: unknown user: followed by a bunch
 of garbage.

 Any thoughts on what could be causing this?

On Thu, 03 Jun 2004 07:22:09 -0600 Anthony Chavez [EMAIL PROTECTED] wrote:
 On Thu, 3 Jun 2004 01:27:57 -0700 Kris Kennaway [EMAIL PROTECTED] wrote:
 I've only seen this when something incorrectly links to both libc and
 libc_r.  Neither of those four binaries should be linked to libc_r at
 all though.  Can you confirm with ldd(1)?

 [EMAIL PROTECTED]:~ ldd /usr/local/bin/vim | egrep 'libc(_r|\.)'
 libc.so.4 = /usr/lib/libc.so.4 (0x284c4000)
 libc_r.so.4 = /usr/lib/libc_r.so.4 (0x287aa000)
 [EMAIL PROTECTED]:~ ldd /usr/sbin/vipw | egrep 'libc(_r|\.)'
 libc.so.4 = /usr/lib/libc.so.4 (0x28068000)

- -- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAyHpvbZTbIaRBRXERAiWiAJ9WMh4IS1ev+J8gczXKtT3Cj+rbCQCeIkjd
1zjvmkl6qWMgXNJrY6SF6nA=
=/XiC
-END PGP SIGNATURE-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Certain 4.10 apps failing to run as root

2004-06-03 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

I just upgraded one of my machines to 4.10-STABLE from 4.9-STABLE and
certain binaries (such as vim or vipw) when run as root (either with
sudo or su -) freeze up with rcmdsh: unknown user: followed by a bunch
of garbage.

I seem to remember encountering this problem once or twice before and
IIRC, it was related to NIS, but it's been quite a while and I'm not
sure how accurate that is.

Any thoughts on what could be causing this?

- -- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAvtTIbZTbIaRBRXERAm7pAJ4yVMvPX9XMqZ55kKc8WXksQBqOIwCfduSq
ZR9MwbZF2iJHm6kBm5/0dfY=
=jSZB
-END PGP SIGNATURE-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Certain 4.10 apps failing to run as root

2004-06-03 Thread Anthony Chavez
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

On Thu, 3 Jun 2004 01:27:57 -0700 Kris Kennaway [EMAIL PROTECTED] wrote:
 I've only seen this when something incorrectly links to both libc and
 libc_r.  Neither of those four binaries should be linked to libc_r at
 all though.  Can you confirm with ldd(1)?

[EMAIL PROTECTED]:~ ldd /usr/local/bin/vim | egrep 'libc(_r|\.)'
libc.so.4 = /usr/lib/libc.so.4 (0x284c4000)
libc_r.so.4 = /usr/lib/libc_r.so.4 (0x287aa000)
[EMAIL PROTECTED]:~ ldd /usr/sbin/vipw | egrep 'libc(_r|\.)'
libc.so.4 = /usr/lib/libc.so.4 (0x28068000)

- -- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFAvyYFbZTbIaRBRXERAtlAAJ9j0GflgLlAOAcrgZwHFDxiHKyMHgCfXQ1t
n2kAUBidzwI1xCI5/7aaRrg=
=PNr8
-END PGP SIGNATURE-

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


anoncvs.freebsd.org down?

2003-11-20 Thread Anthony Chavez
Been getting Connection refused for the last couple of days when
trying to use anoncvs.  Anyone know why?

-- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: anoncvs.freebsd.org down?

2003-11-20 Thread Anthony Chavez
On Thu, 20 Nov 2003 23:33:39 +0600 Sergey Sysoev [EMAIL PROTECTED] wrote:
 Hello Anthony,

 AC Been getting Connection refused for the last couple of days when
 AC trying to use anoncvs.  Anyone know why?

 I   don't   know   why  but  you  may  use  any  mirror,  for  example
 anoncvs.de.freebsd.org if it is acceptable to you. You may change Root
 files using following script

I was aware of the other servers.  I should have done this before
posting, but after measuring hops and latency, the Japanese mirror is
actually a better mirror for me than the one in the US.

So, thanks for the script!  It will prove useful. :-)

-- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]


pgp0.pgp
Description: PGP signature


Re: Samba: very strange truncation error

2003-10-28 Thread Anthony Chavez
On Tue, 28 Oct 2003 12:53:03 -0500 Brandon Lodriguss [EMAIL PROTECTED] wrote:
 Hi Anthony,

Hi Brandon.  I'm following up to my post to freebsd-questions with your
response.

 I was searching the net for some help with a problem it appears you've
 had before (saw an email of yours on the freebsd-questions mailing
 list)...A bunch of Samba error messages that say can't connect to
 service _.  I'm not having much luck, I have 4 samba fileservers
 running, all configured virtually identically except for different
 share names...Two of which are having this problem, and two of which
 aren't.

Define configured virutally identically.  In what ways do they differ,
exactly?  Assuming they're all FreeBSD boxen, were they each built from
the same source tree?

 Did you ever have any success in finding out why this was happening?
 Any pointers in the right direction would be much appreciated.

I received no response from freebsd-questions, so I posted to the samba
mailing list (http://lists.samba.org/pipermail/samba/), but received no
response from that list, either.  I have been ignoring the problem
(well, that's not entirely accurate---I purchased a Powerbook to replace
my dying Win2k notebook) since I posted, but AFAIK, it hasn't been
resolved.

Based on the description of your configuration, you probably have the
better chance of determining root cause.  I currently have many other
priorities, so I will be unable to look into this any deeper until
further notice.

One possible solution would be to upgrade to 3.0.0 (net/samba-devel).  I
have yet to do so myself, but I'm hoping that by doing so, cosmic rays
will shine down from the distribution servers and send the issue
hurtling off to /dev/null, at least for the time being. :-)

Best of luck!

-- 
Anthony Chavez http://www.anthonychavez.org/
mailto:[EMAIL PROTECTED]jabber:[EMAIL PROTECTED]

On Wed, 27 Aug 2003 10:25:23 -0600 [EMAIL PROTECTED] wrote:
 Fellow Samba- and FreeBSD-lovers:

 I'm encountering a very peculiar error.  I first encountered it when
 doing an upgrade to Samba 2.2.8a (from a fairly recent version---I don't
 recally exactly which, but it couldn't have been older than 2.2.7) on
 FreeBSD 4.8-STABLE.

 The error I'm encountering is twofold.  In the first example, I try to
 connect to the shared service, which results in the following:

 [2003/08/26 18:21:17, 0] smbd/service.c:make_connection(252)
   aphrodite (192.168.1.4) couldn't find service share

 Second, when trying to connect to service acc I get:

 [2003/08/18 13:36:22, 0] smbd/service.c:make_connection(252)
   aphrodite (192.168.1.4) couldn't find service accproject.ede
 [2003/08/18 13:36:22, 0] smbd/service.c:make_connection(252)
   aphrodite (192.168.1.4) couldn't find service accmakefile.am

 The former example doesn't seem to phase Win2k SP4 at all, but certain
 apps (such as Emacs 21.3.1) freeze up when the latter is encountered.
 However, when I try to access the acc service again, it works fine
 (i.e., it alternates from functional to non-functional, ad nauseum).

 I've tried rebuilding a couple of times, which doesn't fix the problem
 at all.  The make variables (which should be obvious to any FreeBSD user
 experienced with portupgrade and fairly straightforward to everyone
 else) I pass to the build process are:

 -DWITH_AUDIT -DWITH_RECYCLE -DWITH_SSL -DWITH_UTMP -DWITH_MSDFS
 -DWITHOUT_CUPS -DWITH_WINBIND_AUTH_CHALLENGE

 I would very much appreciate any insight that you could lend.  This is
 only a slight nuisance, but one that is starting become slightly more
 irritating as time goes on.  I've included my (very minimal) smb.conf
 below.  Thanks!

 -- 
 Anthony Chavez http://www.anthonychavez.org/
 mailto:[EMAIL PROTECTED] jabber:[EMAIL PROTECTED]

 # Samba config file created using SWAT
 # from aphrodite.anthonychavez.org (192.168.1.4)
 # Date: 2003/07/17 02:56:37

 # Global parameters
 [global]
   workgroup = ATHENS
   server string = Samba %v
   interfaces = rl0 127.0.0.1
   bind interfaces only = Yes
   encrypt passwords = Yes
   passwd chat = *password* %n\n *password* %n\n *done*
   username map = /usr/local/etc/smb.usermap
   unix password sync = Yes
   log level = 1
   log file = /var/log/samba.%m
   max log size = 50
   socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192 IPTOS_THROUGHPUT
   load printers = No
   domain admin group = @staff
   add user script = /root/bin/addmachine.pl %u
   delete user script = /root/bin/rmmachine.pl %u
   logon path = \\%N\profiles\%u
   domain logons = Yes
   os level = 65
   preferred master = Yes
   domain master = Yes
   hosts allow = 192.168.1. 127.

 [netlogon]
   path = /usr/local/samba/netlogon
   write list = root
   browseable = No

 [profiles]
   path = /usr/local/samba/profiles
   read only = No
   create mask = 0600