Building file server for multi-tera capacity

2009-04-16 Thread Valerio Daelli

Hi

we plan a FreeBSD server which can host
at least 20 Terabyte of data.
The system will be shipped with FreeBSD 7 or 8 and will be based
on a NexSAN SAS Beast.

We would like to know if anybody has tried FreeBSD with NexSAN products
and particularly if he has a suggestion about a solid HBA.
Also we would like to hear your opinion about ZFS with this  
configuration.


Greetings

Valerio Daelli

---
Il tuo 5 X mille a favore della Ricerca della Fondazione IFOM

Tutti coloro che presentano il modello Unico, il modello 730 o che  
ricevono dal proprio datore di lavoro il modello CUD,

hanno la facoltà di scegliere la destinazione del proprio 5 X mille.

Nella casella riservata al Finanziamento agli Enti della Ricerca  
Sanitaria inserisci il codice fiscale di IFOM (97358780159) e apponi  
la tua firma.


Il tuo 5 X mille verrà destinato alla Ricerca contro il Cancro della  
Fondazione IFOM


Per saperne di più vai al sito IFOM.
http://www.ifom-firc.it/5x1000.php

Segnala questa opportunità ai tuoi amici e al tuo commercialista

---

Valerio Daelli
Email valerio.dae...@ifom-ieo-campus.it
Phone +39 02 574303006
c/o IFOM-IEO campus, building 1 -Via Adamello 16 - 20139 Milan Italy



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


Port of perl 5.10

2009-03-01 Thread Valerio Daelli
Hi

is there anyone working on a port of perl5.10?
I can only see ports of 5.8 and 5.6.
I can make a port of 5.10, it seems to compile flawlessly on FreeBSD 7.
Have a good day

Valerio
___
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: Questions about coretemp

2008-08-09 Thread Valerio Daelli
On Fri, Aug 8, 2008 at 10:35 PM, <[EMAIL PROTECTED]> wrote:
>>
>> have you checked your device.hints?
>> Also there is the cpuid port which may help you identify if your CPU is
>> supported.
>>
>> Valerio Daelli
>
> I'm not sure what I would be looking for in device.hints. Below is the output 
> of cpuid. Perhaps Xeons are not supported by coretemp? ::
>
>  eax ineax  ebx  ecx  edx
>  0005 756e6547 6c65746e 49656e69
> 0001 0f4a 01020800 641d bfebfbff
> 0002 605b5001   007d7040
> 0003    
> 0004 4121 01c0003f 001f 
> 0005 0040 0040  
> 8000 8008   
> 8001   0001 2010
> 8002 20202020 20202020 20202020 20202020
> 8003 6e492020 286c6574 58202952 286e6f65
> 8004 20294d54 20555043 30302e33 007a4847
> 8005    
> 8006   08006040 
> 8007    
> 8008 3024   
>
> Vendor ID: "GenuineIntel"; CPUID level 5
>
> Intel-specific functions:
> Version 0f4a:
> Type 0 - Original OEM
> Family 15 - Pentium 4
> Extended family 0
> Model 4 - Intel Pentium 4 processor (generic) or newer
> Stepping 10
> Reserved 0
>
> Extended brand string: "  Intel(R) Xeon(TM) CPU 3.00GHz"
> CLFLUSH instruction cache line size: 8
> Initial APIC ID: 1
> Hyper threading siblings: 2
>
> Feature flags: bfebfbff:
> FPUFloating Point Unit
> VMEVirtual 8086 Mode Enhancements
> DE Debugging Extensions
> PSEPage Size Extensions
> TSCTime Stamp Counter
> MSRModel Specific Registers
> PAEPhysical Address Extension
> MCEMachine Check Exception
> CX8COMPXCHG8B Instruction
> APIC   On-chip Advanced Programmable Interrupt Controller present and enabled
> SEPFast System Call
> MTRR   Memory Type Range Registers
> PGEPTE Global Flag
> MCAMachine Check Architecture
> CMOV   Conditional Move and Compare Instructions
> FGPAT  Page Attribute Table
> PSE-36 36-bit Page Size Extension
> CLFSH  CFLUSH instruction
> DS Debug store
> ACPI   Thermal Monitor and Clock Ctrl
> MMXMMX instruction set
> FXSR   Fast FP/MMX Streaming SIMD Extensions save/restore
> SSEStreaming SIMD Extensions instruction set
> SSE2   SSE2 extensions
> SS Self Snoop
> HT Hyper Threading
> TM Thermal monitor
> 31 reserved
>
> Feature flags set 2: 641d:
> SSE3SSE3 extensions
> 2 - unknown feature
> MONITOR MONITOR/MWAIT instructions
> DS-CPL  CPL Qualified Debug Store
> CID Context ID
> CX16CMPXCHG16B
> xTPRSend Task Priority messages
>
> Extended feature flags: 2010:
> XD-bitExecution Disable bit
> EM64T Intel Extended Memory 64 Technology
>
> Extended feature flags set 2: 0001:
> 0 - unknown feature
>
> TLB and cache info:
> 50: Instruction TLB: 4KB and 2MB or 4MB pages, 64 entries
> 5b: Data TLB: 4KB and 4MB pages, fully assoc., 64 entries
> 60: 1st-level data cache: 16-KB, 8-way set associative, sectored cache, 
> 64-byte line size
> 40: No 2nd-level cache, or if 2nd-level cache exists, no 3rd-level cache
> 70: Trace cache: 12K-micro-op, 4-way set assoc
> 7d: 2nd-level cache: 2-MB, 8-way set associative, 64-byte line size
> Processor serial: -0F4A----


Only CPU with CPUID >= 6 seems supported.
I found this link useful

http://www.intel.com/software/products/documentation/vlin/mergedprojects/analyzer_ec/mergedprojects/reference_olh/mergedprojects/instructions/instruct32_hh/vc46.htm

Bye

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


Re: Vsftpd rotate logs with newsyslog...

2008-06-18 Thread Valerio Daelli
>> Well, i take this opportunity also to ask about Apache toowhich signal
>> should i send?
>
> A HUP signal should work for apache.
>

For Apache you may find useful rotatelogs. It should come with port.
Bye

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


Re: Is FreeBSD suitable for my thinkpad T61 ?

2008-06-12 Thread Valerio Daelli
On Thu, Jun 12, 2008 at 10:40 AM, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> Jerry McAllister wrote:
>>
>> On Wed, Jun 11, 2008 at 08:50:36PM +0800, [EMAIL PROTECTED] wrote:
>>
>>> Hi all,
>>>
>>> I brought a new ThinkPad T61 for work, the hardware is as follows:
>>>
>>> T7300(2GHz), 2GB RAM, 120GB 5400rpm HD, 15.4in 1680x1050 LCD, 128MB
>>> nVIDIA Quadro NVS 140M, CDRW/DVDRW, Intel 802.11agn(n-disabled), Bluetooth,
>>> Modem, 1Gb Ethernet, UltraNav, Secure chip, Intel Turbo, 9c Li-Ion,
>>>
>>> My current working involves scientific calculation and programming. I'm
>>> from a linux background(redhat, debian, ubuntu), but after some googling and
>>> comparison, I found FreeBSD more stable and I want to try FreeBSD.  I am
>>> tired of a dual-boot system, so I want to just install FreeBSD or another
>>> linux distribution(maybe ubuntu) on my notebook.
>>>
>>> My questions are:
>>> 1) Can FreeBSD work well with my hardware? The display card, CDRW/DVDRW,
>>> wireless, Ethernet and battery managment are the most important.
>>>
>>> 2) I have read the FreeBSD Handbook. According to Chapter 10: Linux
>>> Binary Compatibility, it seems that FreeBSD lacks support of many commercial
>>> softwares such as MATLAB, Oracle, Mathematica. Is the linux binary
>>> compatibility stable enough for work ?
>>
>> It should run FreeBSD just fine.   Check the hardware compatibility
>> lists to check for specific peripherals.
>>
>> The Linux compatibility layer worked well.  Should be no problem.
>>
>> jerry
>>
>>> Thanks a lot.
>
> Thank you guys.
>
> I will try to install FreeBSD on a second hard disk to have a test.
>
> Is FreeBSD going to enhance himself on the desktop ? It seems that FreeBSD
> focuses mainly on server, while Linux has improved a lot in the past a few
> years both on server and desktop. But I'm still eager to try FreeBSD on my
> notebook :P
>

I am able to compile world and kernel and the temperature of the cores
is never higher than 67.
I  find it stable.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: chmod operation on directories / files

2008-05-07 Thread Valerio Daelli
Try with

find -type d -exec chmod 755 {} \;
find -type f -exec chmod 644 {} \;

Bye

Valerio Daelli

On Wed, May 7, 2008 at 1:56 PM, Zbigniew Szalbot <[EMAIL PROTECTED]>
wrote:

> Hello,
>
> How do I chmod separately files and directories?
>
> If I use chmod -R 644 then it will go through all the subdirectories
> assigning everything 644 permissions, directories including.
>
> Many thanks!
>
> --
> Zbigniew Szalbot
> www.lc-words.com
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Kernel panic on Acer TravelMate 2500

2008-03-23 Thread Valerio Daelli
76,0x8070-0x807f at device 20.1 on
pci0
ata0:  on atapci0
ata0: [ITHREAD]
ata1:  on atapci0
ata1: [ITHREAD]
isab0:  at device 20.3 on pci0
isa0:  on isab0
pcib2:  at device 20.4 on pci0
pci2:  on pcib2
cbb0:  at device 4.0 on pci2
cardbus0:  on cbb0
pccard0: <16-bit PCCard bus> on cbb0
cbb0: [ITHREAD]
cbb1:  at device 4.1 on pci2
cardbus1:  on cbb1
pccard1: <16-bit PCCard bus> on cbb1
cbb1: [ITHREAD]
rl0:  port 0xa000-0xa0ff mem
0xd820-0xd82000ff irq 16 at device 10.0 on pci2
miibus0:  on rl0
rlphy0:  PHY 0 on miibus0
rlphy0:  10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
rl0: Ethernet address: 00:0a:e4:53:a7:98
rl0: [ITHREAD]
pcm0:  mem 0xd8004400-0xd80044ff irq 17 at device 20.5 on pci0
pcm0: [ITHREAD]
pci0:  at device 20.6 (no driver attached)
acpi_tz0:  on acpi0
acpi_tz1:  on acpi0
atkbdc0:  port 0x60,0x64 irq 1 on acpi0
atkbd0:  irq 1 on atkbdc0
kbd0 at atkbd0
atkbd0: [GIANT-LOCKED]
atkbd0: [ITHREAD]
psm0:  irq 12 on atkbdc0
psm0: [GIANT-LOCKED]
psm0: [ITHREAD]
psm0: model Generic PS/2 mouse, device ID 0
pmtimer0 on isa0
orm0:  at iomem 0xc-0xcefff,0xdc000-0xd pnpid
ORM on isa0
fdc0:  at port 0x3f0-0x3f5,0x3f7 irq 6 drq 2 on isa0
fdc0: [FILTER]
ppc0: parallel port not found.
sc0:  at flags 0x100 on isa0
sc0: VGA <16 virtual consoles, flags=0x300>
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0: configured irq 4 not in bitmap of probed irqs 0
sio0: port may not be enabled
sio0 at port 0x3f8-0x3ff irq 4 flags 0x10 on isa0
sio0: type 8250 or not responding
sio0: [FILTER]
sio1: configured irq 3 not in bitmap of probed irqs 0
sio1: port may not be enabled
vga0:  at port 0x3c0-0x3df iomem 0xa-0xb on isa0
WARNING: ZFS is considered to be an experimental feature in FreeBSD.
Timecounter "TSC" frequency 2800111428 Hz quality 800
Timecounters tick every 1.000 msec
ipfw2 (+ipv6) initialized, divert enabled, nat loadable, rule-based
forwarding enabled, default to deny, logging limited to 100
packets/entry by default
ZFS WARNING: Recommended minimum RAM size is 512MB; expect unstable behavior.
ZFS filesystem version 6
ZFS storage pool version 6
ad0: 38154MB  at ata0-master UDMA100
acd0: CDRW  at ata1-master UDMA33
pcm0: 
GEOM_LABEL: Label for provider acd0 is iso9660/GLENNGOULD3.
Trying to mount root from ufs:/dev/ad0s1a
WARNING: / was not properly dismounted
Loading configuration files.
kernel dumps on /dev/ad0s1b

If you want me to investigate more please let me know.
Thanks for your help

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


Bad performance of 7.0 nfs client with Solaris nfs server

2008-02-19 Thread Valerio Daelli
Hi list

we have a FreeBSD 7.0 NFS client (csup today, built world and kernel).
It mounts a Solaris 10 NFS share.
We have bad performance with 7.0 (3MB/s).
We have tried both UDP and TCP mounts, both sync and async.
This is our mount:

nest.xx.xx:/data/export/hosts/bsd7.xx.xx/ /mnt/nest.xx.xx nfs
noatime,async,-i,rw,-T,-3

Both our server (7.0 and Solaris 10) are Gigabit Ethernet, both are HP
Proliant DL360 i386 (NIC bge0):

---
FreeBSD 7.0:

[EMAIL PROTECTED] ~]$ uname -a
FreeBSD bsd7.xx.xx 7.0-RC2 FreeBSD 7.0-RC2 #1: Mon Feb 18 17:46:46 CET
2008 [EMAIL PROTECTED]:/usr/obj/usr/src/sys/BSD7  i386

---
This is our performance with iozone:
command line:

iozone -+q 1 -i 0 -i 1 -n 2048 -g 2G -Raceb iozone.xls -f
/mnt/nest.xx.xx/iozone.bsd7/iozone.tmp

FreeBSD 7:

File stride size set to 17 * record size.
random
randombkwd  record  stride
  KB  reclen   write rewritereadrereadread
writeread rewriteread   fwrite frewrite   fread  freread
20481024  109883  101289   769058   779880
2048204838123674   760479   767066
40961024  56  106788   724692   728040
4096204833362241   157132   733417
4096409628293364   699351   699807


As you can see, while with record length less than 1024KB the speed is
'fast', with record of 2048 or more (I've tried with record much
bigger) we get only
3 MB/s.
Is this a known issue? If you need more details please contact me, I
am willing to do more tests to risolve this problem.
Thanks

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


nfsv4: strange things happen

2008-01-17 Thread Valerio Daelli
Hi

we have a Solaris 10 NFS server and a FreebSD 7.0 NFS client.
We have a couple of NFSv4 mounted filesystem on the client.

nest.ifom-ieo-campus.it:/data/exports/obj/bsd7.ifom-ieo-campus.it/obj
/mnt/nest nfs rw,-r=16384,-w=16384,tcp,-4  2   0
nest.ifom-ieo-campus.it:/data/exports/jails/bsd7.ifom-ieo-campus.it/jails
/jails nfs rw,-r=16384,-w=16384,tcp,-4   2   0

We are having strange issues: for example
- we cannot execute binaries on the mounted filesystems
- if we umount one of the two filesystem from the client, the other filesystem
must be remounted, otherwise a process the is writing on it exit with
errors. For example
we have a iozone running on /mnt/nest and we umount /jails, the
iozoine exits with:

Can not open temp file: iozone.tmp
open: Unknown error: 10011
[EMAIL PROTECTED]:/mnt/nest/iozone/nfs4

Is anybody using nfsv4 between a Solaris 10 server and a FreebSD 7.0 client?
Are you having problems on it?

This is our FreeBSD version:
[EMAIL PROTECTED]:~ uname -a
FreeBSD bsd7.ifom-ieo-campus.it 7.0-RC1 FreeBSD 7.0-RC1 #0: Fri Jan 11
19:22:50 CET 2008
[EMAIL PROTECTED]:/mnt/nest/usr/src/sys/BSD7  i386

(everything si running fine on nfsv3).

Bye and thanks for your help

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


Re: Question about a patch

2008-01-03 Thread Valerio Daelli
> Just send in the 'diff -Nur' output, but make a note in your PR
> that the filename has been changed.  The committer will be able to
> make it all right in CVS.
>

Thanks a lot for your help.
Bye

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


Question about a patch

2008-01-02 Thread Valerio Daelli
Hi

I am about to send a patch about a port. I would like to move a file
of the port, located in the
'files/' directory. Basically the file now is called netdisco.sh.in
and I would like to call it
netdisco.in.
If I use a normal 'diff -ruN' command to generate the patch, after I
apply the patch
the new file is created but the old file (netdisco.sh.in) is still
there, with zero size.
I wonder if I should generate a shar archive for this port instead of a patch.
Sorry if this question is so simple.
Bye

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


Re: fsck of big disk

2007-12-11 Thread Valerio Daelli
Hi,
thanks a lot for your answer.

> > we have a freshly installed FreeBSD 6.2 machine with a gstriped external 
> > disk,
> > of 5.3Tb. The disk is composed of two slices of 2.6 Tb.
> > We are trying to have a (background) fsck of it but few hours later
> > since the start of the check
> > the host get unresponsive: it responds to ping but it doesn't let
> > login anyone, nor by ssh
> > nor by console.
> >
> What do you get if you press Control-T on the console when it is
> unresponsive?

We are not able to login via console nor via ssh.
Pheraps you suggest me to press Control-T on the console even if I am not
logged on. I did not try, sorry.


>
> When you do a background fsck there is a point at which a snapshot of
> the filesystem is taken, although I'd say that happens at the beginning
> of the check. The problem is that with 5.3 Tb, it may take quite a while
> to take the snapshot, and during that time the system blocks any process
> that tries to write to the filesystem. Maybe that's what you are
> experiencing.
>

What you explained us sounds very interesting. But anyway we simply
solved by disabling background fsck on such a big partition. We had
panics and reboot
and we did not want to risk on a production host.
Bye

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


fsck of big disk

2007-12-06 Thread Valerio Daelli
Hi list

we have a freshly installed FreeBSD 6.2 machine with a gstriped external disk,
of 5.3Tb. The disk is composed of two slices of 2.6 Tb.
We are trying to have a (background) fsck of it but few hours later
since the start of the check
the host get unresponsive: it responds to ping but it doesn't let
login anyone, nor by ssh
nor by console.
In the meanwhile we are having a large rsync from another host.
Tonight during the fsck/rsync we had a reboot, without special
messages on the console.
We have 1Gb of RAM on this server.
Is 1Gb too small as memory to have a fsck and a rsync on a server with
5.3Gb as external disk?
Thanks for your precious help

Valerio Daelli

Server:
i386 - HP DL360
CPU pentium4
1Gb RAM
HBA: LSI Logic 929
External disk: Apple XRAID with upgraded firmware
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Need help with backup shell script

2007-11-21 Thread Valerio Daelli
> ---
> #!/bin/sh
>
> MOUNT=/external
> DATE=`date +%Y%m%d%H%M`
>
> mount /dev/da2 $MOUNT #Change device name
> find $MOUNT -mtime +30 -delete
> mkdir $MOUNT/$DATE
> cp -rp /backup/* $MOUNT/$DATE
> umount /external
> ---
>
Please substitute the line starting with 'cp' with this one:

rsync -rlpgoD /backup/ $MOUNT/$DATE

(you must portinstall rsync as well)
since 'cp -rp' preserve modification times as well while 'rsync -rlpgoD'
preserve permission but not mtime.
Sorry

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


Re: Need help with backup shell script

2007-11-21 Thread Valerio Daelli
On Nov 21, 2007 2:39 PM, Andreas Widerøe Andersen <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I'm working on a shell script that will let me attach (mount) an
> external USB 2.0 harddrive and to my FreeBSD 6.2 server and perform a
> full backup of /backup on my server (all files and subfolders) once or
> twice a week (whenever I run the cronjob). The script must be able to
> run through a cronjob and the drive must be mounted and unmounted
> after each job (I will swap between two drives of the same type and
> size). The script must also remove folders/files older than 30 days.
>
> Does anyone use a script like this today that they can share? I'm not
> a shell scripter myself so any help is highly appreciated.
>
> Here's my rough idea/sketch:
>
> #! /bin/sh
>
> $MOUNT = /external
> $DATE= date_today
>
> mount usb_drive $MOUNT
> cd /$MOUNT
> rm all files forlders older than 30 days
> mkdir /$DATE
> cp -fr /backup to /$MOUNT/$DATE
> cd
> unmount
>
>
---
#!/bin/sh

MOUNT=/external
DATE=`date +%Y%m%d%H%M`

mount /dev/da2 $MOUNT #Change device name
find $MOUNT -mtime +30 -delete
mkdir $MOUNT/$DATE
cp -rp /backup/* $MOUNT/$DATE
umount /external
---

Bye

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


[OT] Rotate logs for openbgpd

2007-11-09 Thread Valerio Daelli
Hi
we use openbgpd-4.0 from ports. We would like to rotate its logs
with newsyslog but if we send the daemon the HUP or USR1 signal
it does not close its old, already-rotated log file.
Does anyone by accident know the correct signal to get openbgpd close
its old log file?
Maybe we should use 'bgpctl reload'?
Many thanks for your help

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


repquota strange behaviour

2007-08-30 Thread Valerio Daelli
Hi list

we have a couple of fileservers (FreeBSD 5.4 and 6.2) with pam_ldap
and nss_ldap.
They get the users from our openldap server.
Suddendly when we run repquota we have a lot of usernames which are
not translated: they are shown as numeric userid.
About half of the usernames are displayed correctly and half are
displayed only as userid:

#repquota -u /data/exports/Users

...
sburgare --   10  2097152  2097152  -5 100
100  -
smurr--   724008  2097152  2097152  - 1181 100
100  -
giotti   --  1706432  2097152  2097152  - 3646 100
100  -
dpenkov  --  658  2097152  2097152  -   22 100
100  -
pmassa   --   200640  2097152  2097152  -  976 100
100  -

...
3440 --  1271682  2097152  2097152  - 2570 100
100  -
3441 --   381056  2097152  2097152  -  418 100
100  -
3442 --   182236  2097152  2097152  -  227 100
100  -
3443 --   314658  2097152  2097152  -  585 100
100  -

This is our nss_ldap.conf:
---
uri  ldap://ldap1.XXX
base dc=ifom-ieo-campus,dc=it
binddn uid=pam,ou=Services,ou=Accounts,dc=XXX,dc=XXX
bindpw XXX
bind_policy soft
pam_password SSHA
scope sub
nss_base_passwd ou=Users,ou=People,ou=Accounts,dc=XXX,dc=XXX
---

if we query the openldap server for those userids, we get the correct usernames:
# ldapsearch -LLL -h ldap1.XXX -b 'dc=XXX,dc=XXX' '(uidNumber=3440)' uid

dn: uid=lverhoef,ou=ifom,ou=Users,ou=People,ou=Accounts,dc=XXX,dc=
XXX
uid: lverhoef

id works as usual:

# id lverhoef
uid=3440(lverhoef) gid=951(CAMPUS)

and the command quota works as usual:
# quota lverhoef

Disk quotas for user lverhoef (uid 3440):
 Filesystem   usage   quota   limit   grace   files   quota   limit   grace
/data/exports/Users
1271682 2097152 20971522570 100 100


Any clue?
Thanks a lot!

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


Monitoring tool for Compaq Smart Array 5300

2007-04-05 Thread Valerio Daelli

Hi
we would like to monitor the status of a Compaq Smart Array 5300
installed on a HP Proliant DL360.
Is there any tool for FreeBSD 6.2?
Thanks for the help

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


Fwd: top(1) STATE column

2006-09-18 Thread Valerio daelli

They're only documented in the source, as far as I know.  A quick grep
comes up with around 300 different unique waits and mutexes in the
kernel:


Try searching this mail from freebsd-questions:

http://docs.freebsd.org/cgi/getmsg.cgi?fetch=1251488+0+archive/2006/freebsd-questions/20060618.freebsd-questions

the subject says it all
Hope it helps

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


Error in man page of sendmsg?

2006-06-22 Thread Valerio daelli

Hi

working with InterMapper (a network tool) on FreeBSD 5.4 I got a

sendmsg -1 errno 22 Invalid argument

I looked in man sendmsg in the errors but I found no EINVAL in the errors.
So I looked at the kernel sources and I found

--

static int
sendit(td, s, mp, flags)
   register struct thread *td;
   int s;
   register struct msghdr *mp;
   int flags;
{
   struct mbuf *control;
   struct sockaddr *to;
   int error;

   if (mp->msg_name != NULL) {
   error = getsockaddr(&to, mp->msg_name, mp->msg_namelen);
   if (error) {
   to = NULL;
   goto bad;
   }
   mp->msg_name = to;
   } else {
   to = NULL;
   }

   if (mp->msg_control) {
   if (mp->msg_controllen < sizeof(struct cmsghdr)
#ifdef COMPAT_OLDSOCK
   && mp->msg_flags != MSG_COMPAT
#endif
   ) {
   error = EINVAL;

--

that error is set to EINVAL so the man page should report EINVAL as possible
error in this funcion.
Bye

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


Re: changing kern.ngroups

2006-05-24 Thread Valerio daelli


Cool. Any suggestion on what to do if I do want to change it?


We managed to get 64 groups changing these files

/usr/include/sys/syslimits.h
/usr/src/sys/sys/syslimits.h

NGROUPS_MAX from 16 to 64, then recompiling world.
We use NFS and we never had problems (more than one year running).
But I heard you may get some trouble with some hardcoded limits.
Bye

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


Re: make installworld fails on amd64

2006-05-23 Thread Valerio daelli

I corrected /etc/make.conf, I changed

CPUTYPE?=opteron

to

CPUTYPE=opteron

and now everything is fixed.
Sorry

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


make installworld fails on amd64

2006-05-23 Thread Valerio daelli

Hi
I am trying to make a installworld on amd64 and I get the following result:

---
cc -Os  -fno-guess-branch-probability  -fomit-frame-pointer
-fno-unit-at-a-time  -mno-align-long-strings  -mrtd  -mno-mmx
-mno-3dnow -mno-sse -mno-sse2  -DUFS1_AND_UFS2  -DFLAGS=0x80
-DSIOPRT=0x3f8  -DSIOFMT=0x3  -DSIOSPD=9600
-I/usr/src/sys/boot/i386/boot2/../../common
-I/usr/src/sys/boot/i386/boot2/../btx/lib -I.  -Wall
-Waggregate-return -Wbad-function-cast -Wcast-align
-Wmissing-declarations -Wmissing-prototypes -Wnested-externs
-Wpointer-arith -Wshadow -Wstrict-prototypes -Wwrite-strings
-ffreestanding -mpreferred-stack-boundary=2  -mno-mmx -mno-3dnow
-mno-sse -mno-sse2 -m32  -S -o boot2.s.tmp
/usr/src/sys/boot/i386/boot2/boot2.c
sed -e '/align/d' -e '/nop/d' < boot2.s.tmp > boot2.s
rm -f boot2.s.tmp
as  --32 -o boot2.o boot2.s
ld -static -N --gc-sections -nostdlib -m elf_i386_fbsd -Ttext 0x2000
-o boot2.out /usr/obj/usr/src/sys/boot/i386/boot2/../btx/lib/crt0.o
boot2.o sio.o
objcopy -S -O binary boot2.out boot2.bin
btxld -v -E 0x2000 -f bin -b
/usr/obj/usr/src/sys/boot/i386/boot2/../btx/btx/btx -l boot2.ldr  -o
boot2.ld -P 1 boot2.bin
btxld:No such file or directory
*** Error code 1

Stop in /usr/src/sys/boot/i386/boot2.
*** Error code 1

Stop in /usr/src/sys/boot/i386.
*** Error code 1

Stop in /usr/src/sys/boot.
*** Error code 1

Stop in /usr/src/sys.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
*** Error code 1

Stop in /usr/src.
---

I did a cvsup this morning

---

*default host=cvsup.fi.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_6_1
*default delete use-rel-suffix
*default compress
src-all

---

Anyone any idea?
Thanks a lot

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


Question on NFS performance

2006-05-10 Thread Valerio daelli

Hi all
we have a FreeBSD 5.4 exporting some NFS filesystem to a cluster of gentoo boxes
(kernel 2.6.12).
Our exported storage disk is an Apple XRaid.
We have Gigabit Ethernet both on the client and the server.
We would like to improve our read performance.
This is our performance:

about 10Mb reading a file of 1Gb with dd

and iozone confirms this result.
We already use the normal optimization flags (we use rpc.lockd and
rpc.statd, on the client we have
read size 65536 and a read ahead of 4 blocks, the async options).
Is our performance the best we can get? Can we improve it?
Thanks for your help

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


Hang in 5.3, related to syslog-ng

2006-04-11 Thread Valerio daelli
Hi all
we have a server with 5.3 (latest patches) with twelve jails.
One of these jails is a mail server (mail-jail), serving about 300 users,
writing a lot of logs to /var/log/maillog.
On the same server I installed a jail with syslog-ng (syslog-jail).
syslog-ng was configured to listen on the network and write to
a named pipe.
On the same jail I created a script to read from that named pipe
and insert the result to mysql, but I didn't start this script.
I was about to start this system of logging, so I modified
/etc/syslog.conf in the mail-jail inserting a line like this:


mail.* @logger_with_syslog-ng.my.domain

then I restarted syslogd on the mail-jail sending a HUP signal.
Suddendly the system stopped responding to anything
(from ping to console, everything stopped).
I rebooted the server turning off the power and deleted that line in
syslog.conf.
Everything worked.
Could it be some issue related to a named pipe?
Or pheraps to syslogd? Or syslog-ng?
I tried recreating the situation on a test server with 5.4 but
everything worked.
Sorry if I don't have details but this is a very critical server for us
and I can't experiment.
Thanks

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


Re: Samba on amd64 6.0

2006-04-04 Thread Valerio daelli
> Anyone using this with LDAP backend?
> Does it work for you?
>
> To me it's giving severe troubles: smbd will tend to hang, hog CPU to
> 99% and keep some file locked, the user was modifing.
> I'll need to kill -9 it, in order to let the user keep on working.
>
> If anyone is having or has had this problem, I'd welcome any information
> or experience.
> I've seen past reports on this (dating back to autumn 2005), but the
> thread does not end with anything that can help.
>
>   bye & Thanks
> av.

We had the same problem as you, with FreeBSD 5.4,
last November.
We solved migrating to i386 (which worked stable for months).
Bye

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


Number of routing tables

2006-03-23 Thread Valerio daelli
Hello
I would like to know if exists a sysctl to get the number of
routing tables in the kernel.
I don't want the list of the routing tables, I just want the number.
The command 'netstat -rn|wc -l' could be a good candidate,
but since I want to implement this command on a very busy router,
I don't want it to go 100% CPU just to get a simple count.
If it doesn't exist I will create something based on netstat's source.
Thanks a million (routes)

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


Re: FreeBSD on Sun Fire V20Z

2006-02-23 Thread Valerio daelli
We use it since last August without problem.
We have FreeBSD 5.4 for amd64 and it works great.
Bye

Valerio Daelli

On 2/23/06, Paul Schmehl <[EMAIL PROTECTED]> wrote:
> Has anyone installed 6.0 RELEASE on this hardware?  I can't even get it to
> boot off the CD, but it boots fine off the Sun-supplied setup CD (which
> only offers RHE and Suse as options.)
>
> I've d/l'd both discs 1 & 2 and the bootonly ISOs and burned them to CD
> (like I usually do), but they do not boot.  (Yes, I'm using the amd64
> version.)
>
> Paul Schmehl ([EMAIL PROTECTED])
> Adjunct Information Security Officer
> University of Texas at Dallas
> AVIEN Founding Member
> http://www.utdallas.edu/ir/security/
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[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: FreeBSD-6 + Jail + MultipleIP

2006-02-16 Thread Valerio daelli
I think somebody already spoke about that in this mailing list,
anyway take a look at

http://garage.freebsd.pl/

Bye

Valerio Daelli

On 2/16/06, mr sicon <[EMAIL PROTECTED]> wrote:
> Anyone have a patch or know if and when it will be implemented into the base
> jail system?
>
> thanks
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[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: Group membership above 15 of them

2005-12-22 Thread Valerio daelli
On 12/21/05, Feczak Szabolcs <[EMAIL PROTECTED]> wrote:
>
> Hi,
>
> I would like to have users with more than 15 groups. The default
> kern.ngroups: is 16 by default and readonly, and not even /etc/sysctl.conf
> allows to modify it after reboot, although securelevel is -1. I read
> somewhere
> that I need the modify the source and rebuild world for this. If I put
> myself
> into more than 15 groups I cannot login anymore and only
> sshd[52178]: initgroups(username,100): Invalid argument message
> in the syslog warns me about this - I think more warnings needed
> at some other point since you can easily lock out yourself from
> a remote system.
>
> So what steps should I take to let this configuration work.
> Isn't there an easier way  then rebuild wolrd ?


We have a configuration with 64 groups and it is pretty stable.
We modified the sources:

/usr/include/sys/syslimits.h
/usr/src/sys/sys/syslimits.h

and put the NGROUPS_MAX to 64.
Then we rebuilt everything and now it just works.

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


Re: db_dump185 Utility?

2005-12-21 Thread Valerio daelli
On 12/20/05, Drew Tomlinson <[EMAIL PROTECTED]> wrote:
>
> I suspect I have a corrupted bayes token database for SpamAssassin.
> 'file' says it's a Berkeley DB 1.85 hash file. I googled for ways to
> repair it and came across many references to a man page for the db_dump
> utility. I don't seem to have this on my system.
>
> The man page states that db_dump is not always built when the libraries
> are installed and I should see my system administrator for further
> information. Since I am the sys admin for this box and don't have any
> further information, I'm hoping some one else does.
>
> How can I build and install this utility and the corresponding db_load?
> I'm clueless.
>
> Thanks,
>
> Drew
>
> --
> Visit The Alchemist's Warehouse
> Magic Tricks, DVDs, Videos, Books, & More!
>
> http://www.alchemistswarehouse.com
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>




You could try to install the db42 port.
It contains these kinds of utility:

/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_archive.html
/var/db/pkg/db42-
4.2.52_4/+CONTENTS:share/doc/db42/utility/db_checkpoint.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_deadlock.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_dump.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_load.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_printlog.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_recover.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_stat.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_upgrade.html
/var/db/pkg/db42-4.2.52_4/+CONTENTS:share/doc/db42/utility/db_verify.html

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


Installing mysql 5 with linuxthreads from ports

2005-12-20 Thread Valerio daelli
Hi
I have problem installing mysql 50 on FreeBSD 5.4.
I am trying to install it with linuxthreads and I keep getting these
errors:

$ cd /usr/ports/databases/mysql50-server

$ make -DWITH_LINUXTHREADS -DDATA_DIR=/data/mysql
CONFIGURE_ARGS="--without-debug --without-readline \
--without-libedit --without-bench
--without-extra-tools \
--with-libwrap --with-mysqlfs --with-vio
--with-low-memory \
--enable-thread-safe-client --enable-assembler
--without-berkeley-db \
--with-named-thread-libs=-pthread
--prefix=/usr/local" install

.

if c++ -DMYSQL_SERVER  -DDEFAULT_MYSQL_HOME="\"/usr/local\""
-DDATADIR="\"/data/mysql\""  -DSHAREDIR="\"/usr/local/share/mysql\""
-DHAVE_CONFIG_H -I. -I. -I.. -I../innobase/include   -I../include
-I../include  -I../regex -I.-DDBUG_OFF -O -pipe -D__USE_UNIX98
-D_REENTRANT -D_THREAD_SAFE -I/usr/local/include/pthread/linuxthreads -O
-pipe  -D__USE_UNIX98 -D_REENTRANT -D_THREAD_SAFE
-I/usr/local/include/pthread/linuxthreads -felide-constructors -fno-rtti
-fno-exceptions   -fno-implicit-templates -fno-exceptions -fno-rtti
-DMYSQLD_NET_RETRY_COUNT=100 -MT mysqld.o -MD -MP -MF ".deps/mysqld.Tpo"
-c -o mysqld.o mysqld.cc;  then mv -f ".deps/mysqld.Tpo" ".deps/mysqld.Po";
else rm -f ".deps/mysqld.Tpo"; exit 1; fi
mysqld.cc: In function `int main(int, char**)':
mysqld.cc:3266: error: `pthread_setprio' undeclared (first use this
function)
mysqld.cc:3266: error: (Each undeclared identifier is reported only once for
each function it appears in.)
*** Error code 1

Stop in /usr/ports/databases/mysql50-server/work/mysql-5.0.16/sql.
*** Error code 1


I found the definition of the function pthread_setprio in
/usr/local/include/mysql/my_pthread.h.
Does anybody how to fix this error?
Thanks

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


NFS over TCP on 5.4: client stucks

2005-12-02 Thread Valerio daelli
Hello everybody
I am trying to mount via NFS a directory exported from FreeBSD 5.4 on a
FreeBSD 5.4.
The server has these settings:

nfs_server_enable="YES"  # This host is an NFS server (or NO).
nfs_server_flags="-u -t -n 8"   # Flags to nfsd (if enabled).
nfs_reserved_port_only="YES" # Provide NFS only on secure port (or NO).
nfs_bufpackets="8"   # bufspace (in packets) for client
mountd_enable="YES"  # Run mountd (or NO).
rpcbind_enable="YES" # Run the portmapper service (YES/NO).
rpcbind_program="/usr/sbin/rpcbind" # path to rpcbind, if you want a
different one.
rpc_lockd_enable="YES"   # Run NFS rpc.lockd needed for
client/server.
rpc_statd_enable="YES"

and the client has these:

nfs_client_enable="YES"
nfs_access_cache="30"
nfs_bufpackets="8"
rpc_lockd_enable="YES"
rpc_statd_enable="YES"
rpcbind_enable="YES"

The client can mount the server via UDP, but not via TCP, it just stucks.
This is an extract from a tcpdump on the server


15:48:33.516995 IP client.991 > server.sunrpc: UDP, length: 56
15:48:33.517159 IP server.sunrpc > client.991: UDP, length: 28
15:48:33.518029 IP client.896 > server.nfsd: S 2110009721:2110009721(0) win
65535 
15:48:33.518060 IP server.nfsd > client.896: S 3833266037:3833266037(0) ack
2110009722 win 65535 
15:48:33.518458 IP client.896 > server.nfsd: . ack 1 win 33304

15:48:33.519193 IP client.1365672366 > server.nfs: 44 null
15:48:33.519230 IP server.nfs > client.1365672366: reply ok 28 null
15:48:33.519630 IP client.896 > server.nfsd: F 45:45(0) ack 29 win 33304

15:48:33.519649 IP server.nfsd > client.896: . ack 46 win 32745

15:48:33.519668 IP server.nfsd > client.896: F 29:29(0) ack 46 win 32745

15:48:33.519924 IP client.896 > server.nfsd: . ack 30 win 33303

15:48:33.520366 IP client.device > server.sunrpc: UDP, length: 56
15:48:33.520469 IP server.sunrpc > client.device: UDP, length: 28
15:48:33.539400 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:48:36.538776 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:48:39.737960 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:48:42.937178 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:48:46.136461 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:48:49.335703 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:48:55.534778 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:49:07.733942 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 
15:49:31.933007 IP client.683 > server.nfsd: S 3682544280:3682544280(0) win
65535 


Could anyone please help me?
Thank you

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


umapfs file system

2005-11-23 Thread Valerio daelli
Hi all
do you think is possible to compile cleanly and to use
the umapfs file system?
I tried but I got this error:

cc -c -O -pipe -mcpu=ev67 -mieee -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline
-Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I../../..
-I../../../contrib/dev/acpica -I../../../contrib/altq
-I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath
-I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL
-include opt_global.h -fno-common -finline-limit=15000 --param
inline-unit-growth=100 --param large-function-growth=1000  -mno-fp-regs
-ffixed-8 -Wa,-mev6 -ffreestanding -Werror  ../../../fs/umapfs/umap_vfsops.c
../../../fs/umapfs/umap_vfsops.c: In function `umapfs_omount':
../../../fs/umapfs/umap_vfsops.c:78: error: argument "ndp" doesn't match
prototype
../../../fs/umapfs/umap_vfsops.c:56: error: prototype declaration
../../../fs/umapfs/umap_vfsops.c:78: error: number of arguments doesn't
match prototype
../../../fs/umapfs/umap_vfsops.c:56: error: prototype declaration
../../../fs/umapfs/umap_vfsops.c: In function `umapfs_root':
../../../fs/umapfs/umap_vfsops.c:300: error: 'td' redeclared as different
kind of symbol
../../../fs/umapfs/umap_vfsops.c:298: error: previous definition of 'td' was
here
*** Error code 1

Do you think is still supported?
Bye

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


NFS export problem

2005-09-29 Thread Valerio daelli
Hello
I am trying to export two directories via NFS.
The two directories are on the same filesystem.
This is our /etc/exports file:

/raid/lower/data -maproot=root -network 10.210.0.0  -mask
255.255.0.0 
/raid/lower/home -maproot=nobody -network 10.210.0.0 -mask
255.255.0.0 
/raid/upper/db -maproot=root -network 10.210.0.0  -mask
255.255.0.0 
/raid/upper/scratch -maproot=root -network 10.210.0.0 -mask
255.255.0.0 

but we keep getting this strange errors in /var/log/messages:

Sep 29 17:38:46 biopresto mountd[411]: can't change attributes for
/raid/lower/home
Sep 29 17:38:46 biopresto mountd[411]: bad exports list line
/raid/lower/home -maproot
Sep 29 17:38:46 biopresto mountd[411]: can't change attributes for
/raid/upper/scratch
Sep 29 17:38:46 biopresto mountd[411]: bad exports list line
/raid/upper/scratch -maproot

We heard that there could be some problems sharing two directories on the
same
filesystem.
Is this true?
Thanks

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


Volume managers

2005-09-24 Thread Valerio daelli
Hello
we have an Apple XRAID disk and we would like to use it as a single disk,
joining its two disks of 2.5T each in order to get a single volume of 5T.
We are experiencing problems with vinum, we keep getting kernel panic
and we heard the vinum code is not very stable with 5.4.
Is there any other stable volume manager for freebsd we could try?
Thanks a lot

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


bsdlabel and c partition

2005-09-16 Thread Valerio daelli
Hi
I have partitioned a disk using bsdlabel and I have used
the c partition for the entire disk. According to the manual
this mean I have used the disk in dedicated mode.
Is there any danger in it?
Is it preferable to use another partition?
Thanks a lot.
 Valerio Daelli
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


fdisk maximum partition size

2005-08-10 Thread Valerio daelli
Hi all
does anyone know any maximum limit to the slice size in freebsd?
We would like to create a filesystem of 2.2T.
Is there any limit in fdisk and bsdlabel?
Thanks a lot

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


FreeBSD mount_null

2005-08-08 Thread Valerio daelli
Hello all
I would like to use freebsd mount_null features and I've tried
with some 2001 sources. But we didn't succedeed in installing it from sources
since it complaints about some functions missing:

mount_null.o(.text+0x10a): In function `main':
: undefined reference to `vfsisloadable'
mount_null.o(.text+0x11e): In function `main':
: undefined reference to `vfsload'
mount_null.o(.text+0x139): In function `main':
: undefined reference to `endvfsent'

Any help is really appreciated.
Bye

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


Grub not working

2005-07-27 Thread Valerio daelli
Hello 
I am trying to install grub as a boot loader on my disk.
I installed it from ports.
When I try to install it on the MBR I get the error

 Running "install /boot/grub/stage1 (hd0) /boot/grub/stage2 p /boot/grub/menu.l
st "... failed

Error 29: Disk write error

I tried to install it with 'grub-install '(hd0)'' and with grub ->
root (hd0,a) -> setup (hd0).
I tried deinstalling the port and installing from sources (version 0.97).
I don't think the problem is with menu.lst since I am using it with
linux (identical file)
and it works.
Anyone a guess?
Thanks

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


PAM debug

2005-07-26 Thread Valerio daelli
Hello
we are having problems with PAM authenticating users on LDAP.
We have FreeBSD 5.3.
We would like to switch debugging.
If we put this line in /etc/pam.d/login

authsufficient  pam_ldap.sodebug try_first_pass

nothing happens.
This is our nss_ldap.conf
--
uri  ldap://127.0.0.1/
base dc=ifom-ieo-campus,dc=it
binddn uid=MYID,dc=MYDOMAIN
bindpw MYPASSWD
pam_password SSHA
scope sub
logdir /var/log
debug 9
--
Thanks a lot

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


fdisk problem

2005-07-18 Thread Valerio daelli
Hello everybody
we have a 2235Gb disk which we want to partition.
If we use sysinstall->Configure->Fdisk and try to build a unique slice
we get a message like

'Wrote FDISK partition information out successfully (100%)'

but if we go back to fdisk it shows a freebsd slice of 187Gb
plus an unused slice of 2048Gb.
If we delete it and recreate a new slice, the problem persists.
Is there any tutorial about using fdisk without using sysinstall?
Thanks

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


Dual Fibre Channel Host Adapter

2005-06-30 Thread Valerio daelli
Hi all
we have a few FreeBSD 5.4 boxes on HP Proliant DL360 and DL380.
We have to buy some Dual Fibre Channel Host Adapter for these hosts
and we would like to know which are the best supported by FreeBSD.
If you have any experience with Fibre Channel (e.g. bad drivers,
bad compatibility) please let us know.
Thanks a lot

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


Re: make buildworld fails

2005-06-22 Thread Valerio Daelli


Yes.  You're using unsupported optimizations.

Please read very carefully the comments above CFLAGS in

/usr/share/examples/etc/make.conf

- Giorgos



Thanks a lot! I'll use a safer optimization.


Valeiro


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


make buildworld fails

2005-06-22 Thread Valerio Daelli

Hi all
I just did a cvsup with this supfile:

__

*default host=cvsup.fi.FreeBSD.org
*default base=/usr
*default prefix=/usr
*default release=cvs tag=RELENG_5
*default delete use-rel-suffix
*default compress
src-all
__

Then I started to make buildworld. But it fails with this error:
__

cc -O3 -mtune=pentium4 -march=pentium4 -pipe -funroll-loops -ffast-math 
-march=pentium4 -I/usr/src/lib/libc/include 
-I/usr/src/lib/libc/../../include -I/usr/src/lib/libc/i386 
-D__DBINTERFACE_PRIVATE -I/usr/src/lib/libc/../../contrib/gdtoa -DINET6 
-I/usr/obj/usr/src/lib/libc -DPOSIX_MISTAKE -I/usr/src/lib/libc/locale 
-DBROKEN_DES -DPORTMAP -DDES_BUILTIN -I/usr/src/lib/libc/rpc -DYP -DHESIOD 
-Wsystem-headers -Werror -Wall -Wno-format-y2k -Wno-uninitialized -c 
/usr/src/lib/libc/net/res_debug.c

In file included from /usr/src/lib/libc/net/res_debug.c:786:
/usr/src/lib/libc/net/res_debug.c: In function `__loc_aton':
/usr/src/lib/libc/net/res_debug.c:576: warning: passing arg 1 of 
`precsize_aton' from incompatible pointer type

In file included from /usr/src/lib/libc/net/res_debug.c:797:
/usr/src/lib/libc/net/res_debug.c:576: warning: passing arg 1 of 
`precsize_aton' from incompatible pointer type

In file included from /usr/src/lib/libc/net/res_debug.c:808:
/usr/src/lib/libc/net/res_debug.c:576: warning: passing arg 1 of 
`precsize_aton' from incompatible pointer type


__

Any idea what's happened?
Thanks a lot.

Valerio Daelli


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


Jails on NFS: locks on file

2005-06-09 Thread Valerio Daelli

Hi all,
we are using FreeBSD 5.4 with some jails.
One of this jail is on a NFS directory - I mean: the whole filesystem of 
this jail is on a remote directory, exported by a FreeBSD 5.4 server with 
NFS, and the 'host' system (the one that started and stopped the jail) 
mounts it via NFS. In this jail we can't perform a 'flock' operation, even 
if the NFS server has rpc.lockd and rpc.statd. We built a little executable 
in C like this (let's call it myflock):


___
#include 
#include 
#include 

int main() {
 int lockfd;
 char* tempfile="tempfile";

 lockfd=open(tempfile,O_CREAT);
 if (flock(lockfd, LOCK_SH|LOCK_NB)==-1) {
   printf("ERROR shared lock:  %d",errno);
 }
 if (flock(lockfd, LOCK_EX|LOCK_NB)==-1) {
   printf("ERROR exclusive lock:  %d",errno);
 }
  close(lockfd);
}
___

We executed on a local directory and it gets the flock.
We executed on the mounted NFS partition (with rpc.lockd and rpc.statd) and 
it works.
We executed in the jail-NFS and it fails! Errno 45 (from 
'/usr/include/errno.h': #define EOPNOTSUPP  45  /* Operation 
not supported */). The directory where we launch myflock is the same as the 
previous command (no permission problems).
We executed in a jail contained in a md mounted on a NFS directory and it 
works.
Could it be a rpcbind issue (the jail can't get the flock since it can't 
rpc-contact the NFS server)?

Thanks a lot

Valerio Daelli


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


Re: vipw: could not lock the passwd file: : Operation not supported

2005-06-06 Thread Valerio Daelli
Yes, I am root. The problem is that some tools like vipw and pam utilities 
want
to get a flock on some files, like /etc/passwd. If they can't (because of 
plain NFS) they complain.

I've been suggested to try with rpc.lockd.
Thanks for your help!

Valerio Daelli


It sounds like your not logged in as root, I'm sure you are but I have
never played with jails. Have you tried the adduser or pw commands?,
vipw is not the best tool for adding users because you can fsck your
system if your not careful.



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


Re: vipw: could not lock the passwd file: : Operation not supported

2005-06-06 Thread Valerio Daelli




From: Nikolas Britton <[EMAIL PROTECTED]>
Reply-To: Nikolas Britton <[EMAIL PROTECTED]>
To: Valerio Daelli <[EMAIL PROTECTED]>
Subject: Re: vipw: could not lock the passwd file: : Operation not 
supported

Date: Mon, 6 Jun 2005 10:20:10 -0500
MIME-Version: 1.0
Received: from wproxy.gmail.com ([64.233.184.206]) by mc2-f21.hotmail.com 
with Microsoft SMTPSVC(6.0.3790.211); Mon, 6 Jun 2005 08:26:52 -0700
Received: by wproxy.gmail.com with SMTP id 67so4729994wrifor 
<[EMAIL PROTECTED]>; Mon, 06 Jun 2005 08:26:51 -0700 (PDT)
Received: by 10.54.49.26 with SMTP id w26mr3295310wrw;Mon, 06 Jun 
2005 08:20:11 -0700 (PDT)

Received: by 10.54.124.2 with HTTP; Mon, 6 Jun 2005 08:20:10 -0700 (PDT)
X-Message-Info: JGTYoYF78jEHjJx36Oi8+Z3TmmkSEdPtfpLB7P/ybN8=
DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws;s=beta; 
d=gmail.com;
h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; 
   
b=I46dF0QiyvoOaAaieZMXRo9eli2REHtIyOzsvoJNfKA106m75TVN2eyGqF+PiwyDr4/NPhGsJwTbBk5VXzljyjP9OKgb2zDuFEZTf+9p4GvPGPs8Tz1R+J/+n1nMLRZeaGGGSAVQ7KKj3BsWhPIcEtJbAvS1Agj2rhzc3B/kIjo=
References: <[EMAIL PROTECTED]> 
<[EMAIL PROTECTED]>

Return-Path: [EMAIL PROTECTED]
X-OriginalArrivalTime: 06 Jun 2005 15:26:52.0848 (UTC) 
FILETIME=[2A6AAB00:01C56AAC]


On 6/6/05, Valerio Daelli <[EMAIL PROTECTED]> wrote:
> Hi all,
> we have FreeBSD 5.4 jail which is mounted via NFS from a host machine.
> The filesystem containing the jail is mounted from a remote machine.
> Everything is fine, except when I try to add a user in the jail I get a:
>
> vipw: could not lock the passwd file: : Operation not supported
>
> I solved the problem in pwd_mkdb using the -i switch.
> But I can't find any similar options in vipw.
> Has anyone an idea about this?
> Bye
>
> Valerio Daelli

It sounds like your not logged in as root, I'm sure you are but I have
never played with jails. Have you tried the adduser or pw commands?,
vipw is not the best tool for adding users because you can fsck your
system if your not careful.



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


vipw: could not lock the passwd file: : Operation not supported

2005-06-06 Thread Valerio Daelli

Hi all,
we have FreeBSD 5.4 jail which is mounted via NFS from a host machine.
The filesystem containing the jail is mounted from a remote machine.
Everything is fine, except when I try to add a user in the jail I get a:

vipw: could not lock the passwd file: : Operation not supported

I solved the problem in pwd_mkdb using the -i switch.
But I can't find any similar options in vipw.
Has anyone an idea about this?
Bye

Valerio Daelli


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


FreeBSD on AlphaServer DS25

2005-06-01 Thread Valerio Daelli

Hello
we are trying to install FreeBSD 5.4 (Alpha Version) on a AlphaServer DS25.
It fails when we start to boot from the CD.
This machine doesn't have any floppy so we cannot try the floppy install.
We have similar problem installing Debian so we think this model has problem 
booting with normal iso-images for Alpha.

Does anybody of you has any hint about FreeBSD's supported Alpha Servers?
Thanks a lot

Valerio Daelli


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


Re: Linux library conversion

2005-05-25 Thread Valerio Daelli

I finally did it and it works great!
Thanks a lot! The support here is really helpful!

Valerio Daelli


> What do you mean?
> We already have compat_linux.
> Do you mean I sholud use a linux perl binary?

Yes.  Install it and your library under /compat/linux.  See the
handbook for more information about running Linux binaries on FreeBSD.

Kris
<< attach3 >>



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


Re: Linux library conversion

2005-05-25 Thread Valerio Daelli

What do you mean?
We already have compat_linux.
Do you mean I sholud use a linux perl binary?
Or else?
Sorry I am a bit new to compat_linux issues.
Thanks

Valerio Daelli


Hello
we have a linux perl program to run in FreeBSD.
We need to convert this library from Linux to FreeBSD:

msparser.so:ELF 32-bit LSB shared object, Intel 80386, 
version 1 (GNU/Linux), not stripped


Is there any tool similar to brandelf to convert this library and make it 
work under FreeBSD?

Thanks

Valerio


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





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


Statically linked bash

2005-05-25 Thread Valerio Daelli

Hello
we are trying to compile a statically linked bash from ports.
I edited the Makefile in /usr/ports/shells/bash with '--enable-static-link' 
in CONFIGURE_ARGS.

But it didn't work (it compiled a dynamically linked one).
So I entered in work/bash-3.0 and configured by and with

./configure ...DEFAULT_ARGS...  --enable-static-link

But it didn't work.
So I edited every Makefile in these directories, to include in every gcc 
argument -static.

But It didn't work.
That's the last compile operation (notice the -static)

gcc -L./builtins -L./lib/readline -L./lib/readline -L./lib/glob  
-L./lib/tilde  -L./lib/sh -static -static -rdynamic  -g -O2 -o bash shell.o 
eval.o y.tab.o general.o make_cmd.o print_cmd.o   dispose_cmd.o 
execute_cmd.o variables.o copy_cmd.o error.o  expr.o flags.o jobs.o subst.o 
hashcmd.o hashlib.o mailcheck.o  trap.o input.o unwind_prot.o pathexp.o 
sig.o test.o version.o  alias.o array.o arrayfunc.o braces.o bracecomp.o 
bashhist.o  bashline.o  list.o stringlib.o locale.o findcmd.o redir.o  
pcomplete.o pcomplib.o syntax.o xmalloc.o -lbuiltins -lsh -lreadline 
-lhistory -ltermcap -lglob  -ltilde  /usr/local/lib/libintl.so 
/usr/local/lib/libiconv.so


But I keep getting a
#file bash
bash: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), for 
FreeBSD 5.4, dynamically linked (uses shared libs), not stripped


Thanks a milion

Valerio Daelli


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


Linux library conversion

2005-05-24 Thread Valerio Daelli

Hello
we have a linux perl program to run in FreeBSD.
We need to convert this library from Linux to FreeBSD:

msparser.so:ELF 32-bit LSB shared object, Intel 80386, 
version 1 (GNU/Linux), not stripped


Is there any tool similar to brandelf to convert this library and make it 
work under FreeBSD?

Thanks

Valerio


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


Linux Perl Program not working

2005-05-05 Thread Valerio Daelli
Hello everybody
we are trying to use a linux perl program called Mascot on FreeBSD. It is 
statistical-bioinformatic software.
We use this program on Linux RedHat 7.3 (glibc 2.3.2), perl 5.8.6.
We copied the program and the libraries.
We tried installing the ports linux_base (glibc 2.1.3), linux_base-rh-9 
(2.3.2).
What actually happens is this:
1) If we use freebsd-perl 5.8.6 (we tried the 'plain' and the ithreads one) 
when we launch this application it fails with a Bus error - core dump.
We did a 'strace' on it and it fails after loading some libraries (I report 
it at the end). This perl program goes into a 'use msparser;', then the 
msparser.pm file calls a msparser.so file which is a Gnu/Linux shared 
object. We could't recompile this library since we don't have source code. 
We just copied it from Linux.

/msparser.so:ELF 32-bit LSB shared object, Intel 80386, 
version 1 (GNU/Linux), not stripped

2) If we use an rpm-installed Active Perl 5.8.6 designed for Linux Red Hat, 
the program fails with:

Can't load '../bin/auto/msparser/msparser.so' for module msparser: 
../bin/auto/msparser/msparser.so: ELF file OS ABI invalid at 
/usr/local/ActivePerl-5.8/lib/5.8.6/i686-linux-thread-multi/DynaLoader.pm 
line 230.

Have anyone any idea what happened?
Thanks
Valerio Daelli
Strace last lines of output:
___
access("/lib/ld-linux.so.2", F_OK)  = -1 ENOENT (No such file or 
directory)
access("/usr/lib/ld-linux.so.2", F_OK)  = -1 ENOENT (No such file or 
directory)
access("/usr/lib/compat/ld-linux.so.2", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/local/lib/ld-linux.so.2", F_OK) = -1 ENOENT (No such file or 
directory)
access("/usr/X11R6/lib/ld-linux.so.2", F_OK) = -1 ENOENT (No such file or 
directory)
access("/compat/linux/lib/ld-linux.so.2", F_OK) = 0
mprotect(0x282bb000, 1286144, PROT_READ|PROT_WRITE|PROT_EXEC) = 0
mmap(0, 27880, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28638000
munmap(0x28638000, 27880)   = 0
mprotect(0x282bb000, 1286144, PROT_READ|PROT_EXEC) = 0
mmap(0, 2528, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28638000
munmap(0x28638000, 2528)= 0
mmap(0, 2984, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28638000
munmap(0x28638000, 2984)= 0
mmap(0, 17504, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28638000
munmap(0x28638000, 17504)   = 0
mmap(0, 496, PROT_READ|PROT_WRITE, MAP_ANON, -1, 0) = 0x28638000
munmap(0x28638000, 496) = 0
sigprocmask(SIG_SETMASK, [], NULL)  = 0
--- SIGBUS (Bus error) ---
--- SIGBUS (Bus error) ---

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