LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 09-27-2008, 04:36 AM   #16
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30

when i run the command "bonnie -d /home/disk1 -s 100" it tells me "You must use the "-u" switch when running as root." but if i do it does nothing :\

Quote:
# bonnie -d /home/disk1 -s 100
You must use the "-u" switch when running as root.
usage: bonnie++ [-d scratch-dir] [-s size(Mb)[:chunk-size(b)]]
[-n number-to-stat[:max-size[:min-size][:num-directories]]]
[-m machine-name]
[-r ram-size-in-Mb]
[-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use]
[-q] [-f] [-b] [-p processes | -y]

Version: 1.03
Quote:
# bonnie -u -d /home/disk1 -s 100
usage: bonnie++ [-d scratch-dir] [-s size(Mb)[:chunk-size(b)]]
[-n number-to-stat[:max-size[:min-size][:num-directories]]]
[-m machine-name]
[-r ram-size-in-Mb]
[-x number-of-tests] [-u uid-to-use:gid-to-use] [-g gid-to-use]
[-q] [-f] [-b] [-p processes | -y]

Version: 1.03

Last edited by steve51184; 09-27-2008 at 04:37 AM.
 
Old 09-27-2008, 11:07 AM   #17
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Look carefully at what the usage message is telling you, especially for the -u option. It requires an argument, and your command line has none. Supply the argument, or don't run it as root.
 
Old 09-27-2008, 11:24 AM   #18
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
but again i don't know what "uid-to-use:gid-to-use" means :\
 
Old 09-27-2008, 11:25 AM   #19
i92guboj
Gentoo support team
 
Registered: May 2008
Location: Lucena, Córdoba (Spain)
Distribution: Gentoo
Posts: 4,083

Rep: Reputation: 405Reputation: 405Reputation: 405Reputation: 405Reputation: 405
Have you considered using tar.gz files instead?

You will save quite a lot of cpu power. rar, in terms of cpu, is like bz2: an authentic hog. The compression ratio is better than this of gzip, though.
 
Old 09-27-2008, 11:38 AM   #20
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
user id (UID) and group id (GID) or a non-root user. Why are you running as root?

Time for a Unix/Linux intro course:

http://cis68a.mikecappella.com/
 
Old 09-27-2008, 12:14 PM   #21
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
Quote:
Originally Posted by Mr. C. View Post
user id (UID) and group id (GID) or a non-root user. Why are you running as root?

Time for a Unix/Linux intro course:

http://cis68a.mikecappella.com/
fine i'll run it as a not root user:

Quote:
$ bonnie -d /home/disk1 -s 3920
Can't open file ./Bonnie.625.000
*** glibc detected *** bonnie: free(): invalid next size (fast): 0x08056040 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d54d65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d58800]
/usr/lib/libstdc++.so.6(_ZdlPv+0x21)[0xb7f1dd81]
bonnie[0x804b317]
bonnie[0x8049b38]
bonnie[0x804ab6b]
/lib/tls/i686/cmov/libc.so.6(__libc_start_main+0xe0)[0xb7d01050]
bonnie(__gxx_personality_v0+0x99)[0x80494d1]
======= Memory map: ========
08048000-08051000 r-xp 00000000 08:02 27475975 /usr/sbin/bonnie++
08051000-08052000 rwxp 00008000 08:02 27475975 /usr/sbin/bonnie++
08052000-08075000 rwxp 08052000 00:00 0 [heap]
b7b00000-b7b21000 rwxp b7b00000 00:00 0
b7b21000-b7c00000 ---p b7b21000 00:00 0
b7cea000-b7ceb000 rwxp b7cea000 00:00 0
b7ceb000-b7e2f000 r-xp 00000000 08:02 17858581 /lib/tls/i686/cmov/libc-2.6.1.so
b7e2f000-b7e30000 r-xp 00143000 08:02 17858581 /lib/tls/i686/cmov/libc-2.6.1.so
b7e30000-b7e32000 rwxp 00144000 08:02 17858581 /lib/tls/i686/cmov/libc-2.6.1.so
b7e32000-b7e35000 rwxp b7e32000 00:00 0
b7e35000-b7e3f000 r-xp 00000000 08:02 17858574 /lib/libgcc_s.so.1
b7e3f000-b7e40000 rwxp 0000a000 08:02 17858574 /lib/libgcc_s.so.1
b7e40000-b7e41000 rwxp b7e40000 00:00 0
b7e41000-b7e64000 r-xp 00000000 08:02 17858585 /lib/tls/i686/cmov/libm-2.6.1.so
b7e64000-b7e66000 rwxp 00023000 08:02 17858585 /lib/tls/i686/cmov/libm-2.6.1.so
b7e66000-b7f4e000 r-xp 00000000 08:02 9129511 /usr/lib/libstdc++.so.6.0.9
b7f4e000-b7f51000 r-xp 000e8000 08:02 9129511 /usr/lib/libstdc++.so.6.0.9
b7f51000-b7f53000 rwxp 000eb000 08:02 9129511 /usr/lib/libstdc++.so.6.0.9
b7f53000-b7f59000 rwxp b7f53000 00:00 0
b7f5f000-b7f61000 rwxp b7f5f000 00:00 0
b7f61000-b7f7b000 r-xp 00000000 08:02 17860053 /lib/ld-2.6.1.so
b7f7b000-b7f7d000 rwxp 00019000 08:02 17860053 /lib/ld-2.6.1.so
bfad5000-bfaeb000 rw-p bfad5000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
 
Old 09-28-2008, 01:16 PM   #22
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
help please?
 
Old 09-28-2008, 02:21 PM   #23
Mr. C.
Senior Member
 
Registered: Jun 2008
Posts: 2,529

Rep: Reputation: 63
Steve,

Bonnie++ crashed. The first error we see is:

Can't open file ./Bonnie.625.000

which indicates that it cannot open the file in the current directory. The current directory permissions are probably not writable to the non-root user you are logged in as. Change the directory permissions or ownership so that you can write to the directory.

Once fixed, if this doesn't resolve the crash, did you install via some pre-packaged binary, or compile from source? I can't tell from the crash if this is a bonnie++ coding error in dealing with an non-writable directory situation, or if this is a problem with an incompatible binary version of bonnie++ being used on your system.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rar/unrar for Slackware? JockVSJock Slackware 17 02-08-2014 06:39 PM
I need to unrar a .rar file. mail522569 Fedora 13 01-19-2007 12:02 AM
How to open unrar? file.part1.rar - file.part2.rar Maje Linux - Software 4 05-29-2006 01:05 AM
RAR and UNRAR HELP linubex Mandriva 4 04-29-2005 02:49 PM
unrar/rar problems....please help :) BmxFace Linux - Software 2 05-31-2004 06:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration