08-25-2006
problem with dd command or maybe AFS problem
Hi, folks.
Sorry for bothering, but maybe someone could help me please.
The problem is the following:
there is some script that copies files from local file system to AFS. The copying is performed with dd command.
The script copies data into some AFS volumes.
The problem appeared with one volume.
Before I thought (and I could see it is so) that if we copy some file into AFS, and quota can be exceeded, dd fails (dd: write error: Disk quota exceeded), but this copied data (any part of it) will not be kept in AFS.
That is if "fs q" showed 80% used before dd, it shows 80% used after failure of dd.
In my case:
before dd we had 95%used, one file (about 40MB) is copied, dd failed, I receive only "afs: failed to store file (over quota)", and "fs q" shows 100% used.
And I see that part of the copied file data is kept on AFS.
The problem is this script is called in other script, and that wrapper script cannot complete in such case.
I'm sorry, maybe I explained it too mazy.
Thanks in advance.
Anta
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Sorry for my poor english.
Unix is SCO ODT ver 3.0
Mine problem is :
when I login via some terminal emulator and type :
who am i
I see information like this :
username ttyp02 Feb 28 09:53
after logoff and type who command (from some other terminal)
I see that ttyp02 is still... (2 Replies)
Discussion started by: bane_yu
2 Replies
2. Filesystems, Disks and Memory
I have an old amiga IDE drive that I wish to read. Its formated in FFS and I understand I can mount this under linux as an AFS filesystem.
The drive is already installed in the PC. Can anyone explain in newbie terms the steps t mounting and reading this drive?
Thanks (1 Reply)
Discussion started by: SocketSlave
1 Replies
3. Shell Programming and Scripting
Hi,
can someone please help me with one problem?
I have a script on local file system. This script is called by cron and calls other script which is on AFS file system.
Everything works as it was expected with one exception.
In /usr/spool/name/my-userid I can see the messages:
3004-614... (0 Replies)
Discussion started by: Anta
0 Replies
4. Solaris
I'm sort of a newbie to Unix. Still learning new things everyday. My security personnel use a script to do various checks on my Solaris 9 servers. In this script they use the ls -l command for a long listing. Well my problem is I don't see a group name for the files. I've done some looking... (2 Replies)
Discussion started by: buckhtr77
2 Replies
5. UNIX for Advanced & Expert Users
hello guys,,
here is my problemia have written a code as below
var="vi"
if ; then
cd <some path>
echo $PWD
fi
my problem is after exicution of this code the cintrol will return to the path from where its exicuted
but how can i modify so this so that after exicution of this script the... (2 Replies)
Discussion started by: vidyadhar85
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I am triying to make sure that there exists only one file with the pattern abc* in path /path/. This directory is having many huge files. If there is only one file then I have to take its complete name only to use furter in my script.
I am planning to do like this:
if ; then... (2 Replies)
Discussion started by: new_learner
2 Replies
7. AIX
1) when user login to the server the session got colosed. How will resolve?
2) While firing the command ls -l we are not able to see the any files in the director. but over all view the file system using the command df -g it is showing 91% used. what will be the problem?
Thanks in advance. (1 Reply)
Discussion started by: pernasivam
1 Replies
8. UNIX for Dummies Questions & Answers
im using this code below
clear
ps -e -o pcpu,pid | grep \^"0.00" but this outputs nothing at all!only if i delete grep command its running properly, ps -e -f pcpu,pid !!! :@@@
why is this happening?????? (7 Replies)
Discussion started by: strawhatluffy
7 Replies
9. Emergency UNIX and Linux Support
I was trying to move a file to a particular directory. In a hurry i forgot to give the dest directory, as below
mv prod.log
The file disappeared. :confused:
Any idea where it might have moved???
And I have tried moving files based on date from one directory to another as... (8 Replies)
Discussion started by: siteregsam
8 Replies
10. AIX
exec(): 0509-036 Cannot load program /usr/opt/freeware/bin/rpm because of the following errors:
0509-022 Cannot load module /opt/freeware/lib/libintl.a(libintl.so.1).
0509-150 Dependent module /opt/freeware/lib/libiconv.a(shr4.o) could not be loaded.
0509-152 Member... (4 Replies)
Discussion started by: Ohmkar
4 Replies
LEARN ABOUT OSF1
fs_setquota
FS_SETQUOTA(1) AFS Command Reference FS_SETQUOTA(1)
NAME
fs_setquota - Sets the quota for the volume containing a file or directory
SYNOPSIS
fs setquota [-path <dir/file path>]
-max <max quota in kbytes> [-help]
fs setq [-p <dir/file path>] -m <max quota> [-h]
fs sq [-p <dir/file path>] -m <max quota> [-h]
DESCRIPTION
The fs setquota command sets the quota (maximum possible size) of the read/write volume that contains the directory or file named by the
-path argument.
To set the quota on multiple volumes at the same time, use the fs setvol command.
To display a volume's quota, use the fs examine, fs listquota, or fs quota command.
CAUTIONS
Currently, the maximum size of a volume is 2 terabytes (2^31 bytes).
OPTIONS
-path <dir/file path>
Names the directory or file for which to set the host volume's quota. Partial pathnames are interpreted relative to the current working
directory, which is also the default value if this argument is omitted.
Specify the read/write path to the file or directory, to avoid the failure that results from attempting to change a read-only volume.
By convention, the read/write path is indicated by placing a period before the cell name at the pathname's second level (for example,
/afs/.abc.com). For further discussion of the concept of read/write and read-only paths through the filespace, see the fs mkmount
reference page.
-max <max quota>
Sets the maximum amount of file server disk space the volume can occupy. The quota value should be a positive integer followed by an
optional suffix: "K" for kibibytes (1024 bytes, the default), "M" for mebibytes (1024 kibibytes), "G" for gibibytes (1024 mebibytes),
and "T" for tebibytes (1024 gibibytes). A value of 0 sets an unlimited quota, but the size of the disk partition that houses the
volume places an absolute limit on the volume's size.
If the -path argument is omitted (to set the quota of the volume housing the current working directory), the -max switch must be
included with this argument.
-help
Prints the online help for this command. All other valid options are ignored.
EXAMPLES
The following command imposes a maximum quota of 3000 kilobytes on the volume that houses the /afs/abc.com/usr/smith directory:
% fs setquota -path /afs/abc.com/usr/smith -max 3000
PRIVILEGE REQUIRED
The issuer must belong to the system:administrators group.
SEE ALSO
fs_examine(1), fs_listquota(1), fs_quota(1), fs_mkmount(1), fs_setvol(1)
COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved.
This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas
Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell.
OpenAFS 2012-03-26 FS_SETQUOTA(1)