How to clear the 32-bit ldconfig error in 64-bit FreeBSD?

2010-05-10 Thread lhmwzy
like this:

ELF ldconfig path: /lib /usr/lib /usr/lib/compat /usr/local/lib
/usr/local/lib/compat
32-bit compatibility ldconfig path: /usr/local/lib32/compat
.: Can't open %%RC_SUBR%%: No such file or directory

uname -a:
FreeBSD lanshuweb2 8.0-RELEASE FreeBSD 8.0-RELEASE #2: Tue May 11
10:04:28 UTC 2010 r...@lanshuweb2:/usr/obj/usr/src/sys/mlh  amd6

/usr/src/sys/amd64/conf/mlh:
...
options SCHED_ULE   # ULE scheduler
options PREEMPTION  # Enable kernel thread preemption
options INET# InterNETworking
#optionsINET6   # IPv6 communications protocols
options SCTP# Stream Control Transmission Protocol
options FFS # Berkeley Fast Filesystem
options SOFTUPDATES # Enable FFS soft updates support
options UFS_ACL # Support for access control lists
options UFS_DIRHASH # Improve performance on big directories
options UFS_GJOURNAL# Enable gjournal-based UFS journaling
options MD_ROOT # MD is a potential root device
#optionsNFSCLIENT   # Network Filesystem Client
#optionsNFSSERVER   # Network Filesystem Server
#optionsNFSLOCKD# Network Lock Manager
#optionsNFS_ROOT# NFS usable as /, requires NFSCLIENT
#optionsMSDOSFS # MSDOS Filesystem
options CD9660  # ISO 9660 Filesystem
options PROCFS  # Process filesystem (requires PSEUDOFS)
options PSEUDOFS# Pseudo-filesystem framework
options GEOM_PART_GPT   # GUID Partition Tables.
options GEOM_LABEL  # Provides labelization
options COMPAT_43TTY# BSD 4.3 TTY compat (sgtty)
#optionsCOMPAT_IA32 # Compatible with i386 binaries
#optionsCOMPAT_FREEBSD4 # Compatible with FreeBSD4
#optionsCOMPAT_FREEBSD5 # Compatible with FreeBSD5
options COMPAT_FREEBSD6 # Compatible with FreeBSD6
options COMPAT_FREEBSD7 # Compatible with FreeBSD7
options SCSI_DELAY=5000 # Delay (in ms) before probing SCSI
#optionsKTRACE  # ktrace(1) support
#optionsSTACK   # stack(9) support
options SYSVSHM # SYSV-style shared memory
options SYSVMSG # SYSV-style message queues
options SYSVSEM # SYSV-style semaphores
options P1003_1B_SEMAPHORES # POSIX-style semaphores
options _KPOSIX_PRIORITY_SCHEDULING # POSIX P1003_1B real-time 
extensions
options PRINTF_BUFR_SIZE=128# Prevent printf output being 
interspersed.
options KBD_INSTALL_CDEV# install a CDEV entry in /dev
options HWPMC_HOOKS # Necessary kernel hooks for hwpmc(4)
options AUDIT   # Security event auditing
options MAC # TrustedBSD MAC Framework
options FLOWTABLE   # per-cpu routing cache
#optionsKDTRACE_FRAME   # Ensure frames are compiled in
#optionsKDTRACE_HOOKS   # Kernel DTrace hooks

# Make an SMP-capable kernel by default
options SMP # Symmetric MultiProcessor Kernel
...
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to freebsd-stable-unsubscr...@freebsd.org


Re: non-root user can not create zfs filesystem?

2008-10-23 Thread lhmwzy
This patch must be used in CURRENT??
cvsup src with tag=.
put and upzip the patch to /usr/src
usepatch  zfs_20080727.patch to patch the file?

Is it right?

I have done following what I said,but find a few file in /usr/src

-rw-r--r--1 root  wheel 4166 Oct 23 13:37 sha256.c
-rw-r--r--1 root  wheel0 Oct 23 13:37 sha256.c.orig
drwxr-xr-x   24 root  wheel   26 Oct 23 12:25 share
-rw-r--r--1 root  wheel11391 Oct 23 13:37 spare.t
-rw-r--r--1 root  wheel10335 Oct 23 13:37 spare.t.orig
drwxr-xr-x   56 root  wheel   57 Oct 23 13:08 sys
drwxr-xr-x   12 root  wheel   15 Oct 12 10:48 tools
-rw-r--r--1 root  wheel55965 Oct 23 13:37 u8_textprep.c
-rw-r--r--1 root  wheel0 Oct 23 13:37 u8_textprep.c.orig
drwxr-xr-x  228 root  wheel  230 Oct 23 13:11 usr.bin
drwxr-xr-x  195 root  wheel  197 Oct 23 13:11 usr.sbin
-rw-r--r--1 root  wheel11075 Oct 23 13:37 zfs.c
-rw-r--r--1 root  wheel0 Oct 23 13:37 zfs.c.orig
-rw-r--r--1 lhm   wheel  4548386 Oct 23 13:27 zfs_20080727.patch
-rw-r--r--1 root  wheel19599 Oct 23 13:37 zfsboot.c
-rw-r--r--1 root  wheel0 Oct 23 13:37 zfsboot.c.orig
-rw-r--r--1 root  wheel31739 Oct 23 13:37 zfsimpl.c
-rw-r--r--1 root  wheel0 Oct 23 13:37 zfsimpl.c.orig
-rw-r--r--1 root  wheel39098 Oct 23 13:37 zfsimpl.h
-rw-r--r--1 root  wheel0 Oct 23 13:37 zfsimpl.h.orig
-rw-r--r--1 root  wheel12492 Oct 23 13:37 zfsldr.S
-rw-r--r--1 root  wheel0 Oct 23 13:37 zfsldr.S.orig
-rw-r--r--1 root  wheel 5531 Oct 23 13:37 zfssubr.c
-rw-r--r--1 root  wheel0 Oct 23 13:37 zfssubr.c.orig

Is this correct??

2008/10/23 Andrew Snow [EMAIL PROTECTED]:
 lhmwzy wrote:

 where is the patch?
 I can't find it in freebsd-fs@ and [EMAIL PROTECTED]

 http://people.freebsd.org/~pjd/patches/zfs_20080727.patch.bz2

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


Re: non-root user can not create zfs filesystem?

2008-10-23 Thread lhmwzy
What's you mean?
This patch is not suit for Current or Current has alreday have this patch?

2008/10/23 Xin LI [EMAIL PROTECTED]:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 lhmwzy wrote:

 This patch must be used in CURRENT??
 cvsup src with tag=.
 put and upzip the patch to /usr/src
 usepatch  zfs_20080727.patch to patch the file?

 Is it right?
 [...]

 No.  Current has been progressed too much for this patch to apply.

 Cheers,
 -BEGIN PGP SIGNATURE-
 Version: GnuPG v2.0.9 (FreeBSD)

 iEYEARECAAYFAkkAGSQACgkQi+vbBBjt66CJIgCfQwnKSJZc/QeyjvW3J8pBoZyv
 LKkAnRx1B8MdXNYwWjj9oas9NgXI0vtk
 =qSC2
 -END PGP SIGNATURE-

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


Re: non-root user can not create zfs filesystem?

2008-10-23 Thread lhmwzy
OK.close this thread.:)

2008/10/23 Jeremy Chadwick [EMAIL PROTECTED]:
 On Thu, Oct 23, 2008 at 02:35:24PM +0800, lhmwzy wrote:
 What's you mean?
 This patch is not suit for Current or Current has alreday have this patch?

 The patch was made against CURRENT's code dated August 27th.

 There have been too many changes to CURRENT between August 27th and now
 for the patch to apply cleanly/correctly.

 Finally, this thread has gone from talking about user-error when
 creating a ZFS pool to how to patch CURRENT to present-day ZFS code.
 This is NOT the correct mailing list for CURRENT items.  Please start a
 new thread on the freebsd-current mailing list instead.

 --
 | Jeremy Chadwickjdc at parodius.com |
 | Parodius Networking   http://www.parodius.com/ |
 | UNIX Systems Administrator  Mountain View, CA, USA |
 | Making life hard for others since 1977.  PGP: 4BD6C0CB |


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


non-root user can not create zfs filesystem?

2008-10-22 Thread lhmwzy
$zfs create www/lhm
cannot create 'www/lhm': permission denied

How to do this or when can do this?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: non-root user can not create zfs filesystem?

2008-10-22 Thread lhmwzy
Tks very much for your reply.
I'm very sorry for the last mail,I didn't see the CC is empty,I'm not
deliberately.


2008/10/22 Jeremy Chadwick [EMAIL PROTECTED]:
 On Wed, Oct 22, 2008 at 06:54:49PM +0800, lhmwzy wrote:
 hmm...
 I transfer data to a remote machine use zfs.
 for example:

 #zfs send pool/[EMAIL PROTECTED] | ssh -l lhm 10.67.141.80 zfs receive  
 www/102

 If login into 10.67.141.80 throught non-root user,it says:
 cannot receive: permission denied
 cannot send 'pool/[EMAIL PROTECTED]': Broken pipe

 But login into a remote machine use root through ssh is not a good 
 idea,right?


 2008/10/22 Jeremy Chadwick [EMAIL PROTECTED]:
  On Wed, Oct 22, 2008 at 05:13:21PM +0800, lhmwzy wrote:
  $zfs create www/lhm
  cannot create 'www/lhm': permission denied
 
  How to do this or when can do this?
 
  Creating a filesystem is something that can only be done by root.  I'm
  not sure what gave you the impression non-root users can do this...?

 This problem has nothing to do with ZFS, it has to do with SSH.

 You need to do a few things for this to work.  Here's a very quick way:

 1) Make a public key on the machine you're doing zfs send from.
   Run ssh-keygen as root
 2) Place contents of /root/.ssh/id_rsa.pub in /root/.ssh/authorized_keys
   on 10.67.141.80.  Make sure the /root/.ssh directory is perm 0700,
   and authorized_keys is perm 0600.
 3) On 10.67.141.80, edit /etc/ssh/sshd_config and change this line:

 #PermitRootLogin no

 ...to:

 PermitRootLogin without-password

 4) Send a SIGHUP signal to the master sshd process.  This might
 disconnect any existing SSH sessions to the machine:

 kill -HUP `cat /var/run/sshd.pid`


 If you're concerned about what without-password does, read the man
 page.  It WILL NOT let people SSH into the root account, UNLESS they
 have the private key (on zfs_send_host).  That's the ONLY WAY they can
 get in as root.

 You may want to secure things down a bit more by editing
 /root/.ssh/authorized_keys on 10.67.141.80 to only allow certain
 commands to be executed (specifically zfs receive).  You can look on
 Google for how to do this.

 Finally, why did you remove the mailing list from the CC list?  Now
 no one knows what we've discussed, which isn't good.

 --
 | Jeremy Chadwickjdc at parodius.com |
 | Parodius Networking   http://www.parodius.com/ |
 | UNIX Systems Administrator  Mountain View, CA, USA |
 | Making life hard for others since 1977.  PGP: 4BD6C0CB |


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


Re: non-root user can not create zfs filesystem?

2008-10-22 Thread lhmwzy
Yes,that's is what I want to say.
In other word is the command zfs allow and zfs unallow
I think it is not Support chflags(2) which is described in at the bottom
 of http://wiki.freebsd.org/ZFS

2008/10/22 Pete French [EMAIL PROTECTED]:
 Creating a filesystem is something that can only be done by root.  I'm
 not sure what gave you the impression non-root users can do this...?

 He probably though that because it's possible in the current Solaris
 implementation of ZFS:

 http://blogs.sun.com/marks/entry/zfs_delegated_administration

 I thought this hadn't been ported, but taking a quick look at the bottom
 of http://wiki.freebsd.org/ZFS it appears it's now done, which is cool :)

 -pete.

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


Re: non-root user can not create zfs filesystem?

2008-10-22 Thread lhmwzy
But what is Jeremy Chadwick said is also a good solution for my problem.
Tks Jeremy Chadwick again.

2008/10/22 lhmwzy [EMAIL PROTECTED]:
 Yes,that's is what I want to say.
 In other word is the command zfs allow and zfs unallow
 I think it is not Support chflags(2) which is described in at the bottom
  of http://wiki.freebsd.org/ZFS

 2008/10/22 Pete French [EMAIL PROTECTED]:
 Creating a filesystem is something that can only be done by root.  I'm
 not sure what gave you the impression non-root users can do this...?

 He probably though that because it's possible in the current Solaris
 implementation of ZFS:

 http://blogs.sun.com/marks/entry/zfs_delegated_administration

 I thought this hadn't been ported, but taking a quick look at the bottom
 of http://wiki.freebsd.org/ZFS it appears it's now done, which is cool :)

 -pete.


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


Re: ZFS

2008-10-22 Thread lhmwzy
I think the time is when FB8.0 out.

2008/10/22 David Peall [EMAIL PROTECTED]:
 Hi



 While we are on the topic,  I had a brief but happy encounter with ZFS
 while dump was broken on UFS2.  Is there any indication as to when this
 would be suitable for a production environment?



 Some of the tools build in to ZFS are very useful...



 Regards

 --

 David Peall :: IT Manager

 e-Schools' Network :: http://www.esn.org.za/ http://www.esn.org.za/

 Phone +27 (021) 674-9140



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

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


system panic: RAID5 problem or zfs problem

2008-10-22 Thread lhmwzy
First we create a pool name www:
zpool create www da1 da2 da3 da4 da5 da6

Then replace da6 with a new disk.

when reboot the box,panic when booting:
ZFS:vdev failure,zpool=ww type=vdev.bad_label
painc:solaris 
assert:vdev_config_sync(rvd,txg)==0,file:/usr/src/sys/modules/zfs/../../cddl/contrib/oensolaris/utf/common/fs/zfs/spa.c,line:3014
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: system panic: RAID5 problem or zfs problem

2008-10-22 Thread lhmwzy
YES.
zpool create www da1 da2 da3 da4 da5 da6
should be:
zpool create www raidz da1 da2 da3 da4 da5 da6
sorry for my mistake.

I redo it again.
All things go damn WELL.

I can't tell what's wrong now.

2008/10/22 Rink Springer [EMAIL PROTECTED]:
 On Wed, Oct 22, 2008 at 10:33:44PM +0800, lhmwzy wrote:
 First we create a pool name www:
 zpool create www da1 da2 da3 da4 da5 da6

 Um, this isn't a RAID - this is a simple concatination of disks. I think
 what you meant to do was:

 zpool create www raidz da1 da2 da3 da4 da5 da6

 Otherwise, you'll just append all disks, and it makes sense that the
 system doesn't work...

 Regards,

 --
 Rink P.W. Springer- http://rink.nu
 Anyway boys, this is America. Just because you get more votes doesn't
  mean you win. - Fox Mulder

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


Re: system panic: RAID5 problem or zfs problem

2008-10-22 Thread lhmwzy
I think I have found the problem.
I want to do zpool create www raidz da1 da2 da3 da4 da5 da6,but make
a mistake,type  zpool create www da1 da2 da3 da4 da5 da6.
Then I remove one disk.
Then reboot,there is a panic.
I know this is my misktake.But should FreeBSD panic or FreeBSD go well
but  zpool crash only?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: system panic: RAID5 problem or zfs problem

2008-10-22 Thread lhmwzy
I think I have found the problem.
 I want to do zpool create www raidz da1 da2 da3 da4 da5 da6,but make
a mistake,type  zpool create www da1 da2 da3 da4 da5 da6.
Then I remove one disk.Shutdown system and add a new disk.
The two disks have an identical size.
Then reboot,there is a panic.
I know this is my misktake.But should FreeBSD panic or FreeBSD go well
but  zpool crash only

I make too mistakes tonight.:(

2008/10/22 lhmwzy [EMAIL PROTECTED]:
 I think I have found the problem.
 I want to do zpool create www raidz da1 da2 da3 da4 da5 da6,but make
 a mistake,type  zpool create www da1 da2 da3 da4 da5 da6.
 Then I remove one disk.
 Then reboot,there is a panic.
 I know this is my misktake.But should FreeBSD panic or FreeBSD go well
 but  zpool crash only?

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


Re: system panic: RAID5 problem or zfs problem

2008-10-22 Thread lhmwzy
One thing:must copy some data to the pool,remove one disk,shutdown,add
a new disk,start the box,get the panic.

My box uname -a:
FreeBSD freebsd.lpcy.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #0: Tue
Oct 21 12:02:30 CST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/lhmwzy  amd64
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: non-root user can not create zfs filesystem?

2008-10-22 Thread lhmwzy
where is the patch?
I can't find it in freebsd-fs@ and [EMAIL PROTECTED]

2008/10/23 Fabian Keil [EMAIL PROTECTED]:
 Pete French [EMAIL PROTECTED] wrote:

  Yes,that's is what I want to say.
  In other word is the command zfs allow and zfs unallow
  I think it is not Support chflags(2) which is described in at the
  bottom of http://wiki.freebsd.org/ZFS

 Sorry, my unclear use of english! I didn't mean the last item, I meant
 that it was near the bottom of the page. Look at the line above the
 'chflags' one - Delegated Administration is what you are after. Not
 here yet, but hopefully soon...

 You can already test it on CURRENT if you apply the
 patch Pawel posted on freebsd-fs@ and freebsd-current@
 a while ago.

 Fabian

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


Re: zfs quota question

2008-10-08 Thread lhmwzy
OK.It's my mistake.
Improve it again:

#!/bin/sh
find $1 -type f -ls  | awk '{j += $7} END {printf(%.2fM\n,j/1024/1024)}'

2008/10/8 Ian Smith [EMAIL PROTECTED]:
 On Wed, 8 Oct 2008, lhmwzy wrote:
   The fllow is better?
   #!/bin/sh
   find $1 -type f -exec ls -lh {} \; | awk '{j += $5} END {print jM}'

 Review your 'ls -lh' output; what's 100Bananas + 10Kiwifruit + 1Melon?

 $ find . -type f -exec ls -lh {} \; | awk '{j += $5} END {print jM}'
 1.15975e+06M

 Took several minutes to come up with the wrong answer :)

 $ /root/bin/dirsize .
 6906276646

 Took 2.75 seconds, giving actual total of the file sizes.

 $ du -d0 .
 6781976 .

 Took 1.5 seconds, and comes to 69447434424, ie bytes allocated for those
 files.  All on a 300MHz Celeron.

   2008/10/7 Andrew Snow [EMAIL PROTECTED]:
I love ZFS, but I suddenly found out last night that I
have lost the ability tto do a 'du' on a directory to work out if it 
 will
fit onto a CD or not :-)
   
I have created a shell script, /usr/local/bin/dirsize :
   
#!/bin/sh
find $1 -type f -ls | awk '{j += $7} END {print j}'
   
Usage: dirsize path

 And very handy it is too, even without compressed ZFS, thanks Andrew.

 cheers, Ian

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


What's the Scheduler SCHED_core development now?

2008-10-08 Thread lhmwzy
Is it still alive?
Is it replaced by SCHED_ULE?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
You're right.
I turn off the compression,everything go well.
So this is my problem,not a ZFS of FreeBSD problme.
Tks for reply.

2008/10/7 Pawel Jakub Dawidek [EMAIL PROTECTED]:
.00M  -
  pool/lhm  compressratio  7.25x  -

 Turn compression off and retry.

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


Re: zfs quota question

2008-10-07 Thread lhmwzy
sorry,I make a mistake.
It is a filesystem,not a volume.

2008/10/7 Holger Kipp [EMAIL PROTECTED]:
 according to zfs manpage:

   Quotas cannot be set on volumes, as the volsize property acts  as
   an implicit quota.

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


Re: zfs quota question

2008-10-07 Thread lhmwzy
My system
#uname -a
FreeBSD bxzxfreebsd.slof.com 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #4:
Mon Oct  6 15:02:42 CST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/lhmwzy  amd64

zfs version:
ZFS filesystem version 6
ZFS storage pool version 6
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


zfs quota question

2008-10-07 Thread lhmwzy
I create a zfs volume pool/lhm and give it quota 1M use zfs set
quota=1m pool/lhm

#zfs get all pool/lhm
zfs get all pool/lhm
[ttyp0][5:22:12pm]
NAME  PROPERTY   VALUE  SOURCE
pool/lhm  type   filesystem -
pool/lhm  creation   Tue Oct  7 17:14 2008  -
pool/lhm  used   1.00M  -
pool/lhm  available  0  -
pool/lhm  referenced 1.00M  -
pool/lhm  compressratio  7.25x  -
pool/lhm  mountedyes-
pool/lhm  quota  1M local
pool/lhm  reservationnone   default
pool/lhm  recordsize 128K   default

But I cp 10 files,per file size is 2.4M to pool/lhm
#ll -h /pool/lhm
total 1013
-rw---  1 root  wheel   2.4M Oct  7 17:18 d
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd
-rw---  1 root  wheel   2.4M Oct  7 17:19 ddd
-rw---  1 root  wheel   2.4M Oct  7 17:19 
-rw---  1 root  wheel   2.4M Oct  7 17:19 d
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd2
-rw---  1 root  wheel   2.4M Oct  7 17:19 dd24
-rw---  1 root  wheel   2.1M Oct  7 17:19 dd247
-rw---  1 root  wheel   2.4M Oct  7 17:18 kldstat.core

#du -hs /pool/lhm
1.0M.

I am puzzled,the what's zfs quota mean?
I understand is file quota,that can't put files which total size larger than 1M.
But it seems my understanding is wrong.
Anybody give a idea?
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: zfs quota question

2008-10-07 Thread lhmwzy
Yes,this is a problem.
In my case,du -h displays 1M,but the actual size is about 24M.


2008/10/7 Pete French [EMAIL PROTECTED]:
 Yeah, ZFS offers a lot, which can create confusion, unfortunately. Do we
 limit physical space with quota or only logical (before compression)?
 Should we take space consumed by snapshots into account or not? etc.

 On a related note, is there any way to make du tell me how big files
 are in actual bytes on a compressed ZFS filesystem, aas opposed to space
 on the disc ? I love ZFS, but I suddenly found out last night that I
 have lost the ability tto do a 'du' on a directory to work out if it will
 fit onto a CD or not :-)

 -pete.

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


Re: zfs quota question

2008-10-07 Thread lhmwzy
The fllow is better?
#!/bin/sh
find $1 -type f -exec ls -lh {} \; | awk '{j += $5} END {print jM}'

2008/10/7 Andrew Snow [EMAIL PROTECTED]:
 I love ZFS, but I suddenly found out last night that I
 have lost the ability tto do a 'du' on a directory to work out if it will
 fit onto a CD or not :-)

 I have created a shell script, /usr/local/bin/dirsize :


 #!/bin/sh
 find $1 -type f -ls | awk '{j += $7} END {print j}'



 Usage: dirsize path

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

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


Re: Would anybody port DragonFlyBSD's HAMMER fs to FreeBSD?

2008-10-01 Thread lhmwzy
Yes.
It seems that nobody is interested in this.
-Matt would not port is to FreeBSD,which is a big regretful.

2008/10/1 Derek Kuli��ski [EMAIL PROTECTED]:
 Hello Carlos,

 Tuesday, September 30, 2008, 5:57:06 PM, you wrote:

 Do you subscribe freebsd-stable? This has bee discussed recently in this 
 list:
 http://lists.freebsd.org/pipermail/freebsd-stable/2008-September/045506.html

 I wouldn't call it discussion. It was mentioned and then quickly it
 was forgotten.

 BTW: Matt Dillon, is the founder of DragonflyBSD, which apparently
 already supports HAMMER.

 As far as I know, no actual FreeBSD developer commented in that
 thread yet.

 --
 Best regards,
  Derekmailto:[EMAIL PROTECTED]

 How many of you believe in telekinesis? Raise MY hand!



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

Re: Would anybody port DragonFlyBSD's HAMMER fs to FreeBSD?

2008-10-01 Thread lhmwzy
   Guys, please don't start a flamewar.  And lhmwzy we discussed this
   on the DFly lists.  It's really up to them... that is, a programmer
   who has an interest, inclination, and time.  It isn't really fair to
   try to push it.

You're right.


   I personally believe that the FreeBSD community as a whole should
   focus on ZFS for now.  It has the momentum and the most interest
   on their lists.

  -Matt

That's OK.

 The olny thing we can do is waiting.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Would anybody port DragonFlyBSD's HAMMER fs to FreeBSD?

2008-10-01 Thread lhmwzy
That's it.
Since we don't have the skill,what we can do is wait.

Waiting is such a bad thing...

2008/10/1 Derek Kuli��ski [EMAIL PROTECTED]:
 Hello lhmwzy,

 Tuesday, September 30, 2008, 11:10:24 PM, you wrote:

 Yes.
 It seems that nobody is interested in this.
 -Matt would not port is to FreeBSD,which is a big regretful.

 I'm pretty sure there are people who are interested, it looks more
 like there are no people who're capable of doing this and have time.

 --
 Best regards,
  Derekmailto:[EMAIL PROTECTED]

 An unemployed court jester is no one's fool.



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

Re: Would anybody port DragonFlyBSD's HAMMER fs to FreeBSD?

2008-10-01 Thread lhmwzy
Yes,this is a way.
I would do as you said if I need to do so.

2008/10/1 Jeremy Chadwick [EMAIL PROTECTED]:
 On Wed, Oct 01, 2008 at 02:29:12PM +0800, lhmwzy wrote:
 That's it.
 Since we don't have the skill,what we can do is wait.

 Waiting is such a bad thing...

 If this functionality is really something you want/need, you should
 consider finding a kernel programmer who would be willing to port it,
 for financial exchange (in English: you will be paying them $XX/hour
 to port it to FreeBSD).

 This has happened in the past for some key features.  Like I said, it
 all depends on how much it matters to you.

 --
 | Jeremy Chadwickjdc at parodius.com |
 | Parodius Networking   http://www.parodius.com/ |
 | UNIX Systems Administrator  Mountain View, CA, USA |
 | Making life hard for others since 1977.  PGP: 4BD6C0CB |


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


Would anybody port DragonFlyBSD's HAMMER fs to FreeBSD?

2008-09-30 Thread lhmwzy
I think port HAMMER fs to FreeBSD is easier than any other fs like ZFS.
Would anybody do this?
I do not have the skill or I will do this.:)
links: http://www.dragonflybsd.org/hammer/index.shtml
 http://www.dragonflybsd.org/hammer/hammer.pdf
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can FreeBSD 5.3R support the RAID card MegaRAID SCSI 320-2E card?

2005-03-04 Thread lhmwzy
I have search amr on
http://www.freebsd.org/cgi/man.cgi?query=amrsektion=4manpath=FreeBSD+5.3-RELEASE

It said support the following:
 ·   AMI MegaRAID 320-1
 ·   AMI MegaRAID 320-2
 ·   AMI MegaRAID 320-4X
 ·   AMI MegaRAID Series 418

Anyone knows amr supports MegaRAID SCSI 320-2E card?
TKS.
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]


Can FreeBSD be installed on DellPowerEdge2800 ?

2005-03-01 Thread lhmwzy
Anybody did this?
Any help is appreciateed
___
freebsd-stable@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to [EMAIL PROTECTED]