Sponsored Content
Full Discussion: Restrict Max file size
Top Forums UNIX for Dummies Questions & Answers Restrict Max file size Post 302551051 by puru2121 on Monday 29th of August 2011 08:11:33 AM
Old 08-29-2011
Restrict Max file size

Hello All,

I am working on an issue, where I need to check the max file size of a file. If the file size exceeds 2 GB, then I need to generate an error message. Since the file system does not allow a file to be created larger than 2 GB, I am planning to use named pipes & AWK file to acheive my purpose.

It would be great if someone helps me on this.

Thanks in advance,
Puru
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

setting max log file size...

Hello all! I have found a new home, this place is great! I have been searching for days to find a way to set a max size for a log.txt file using a cron job exicuting a shell script. Is it possible for a script to remove older entries in a log file to maintain a limited file size? If so,... (5 Replies)
Discussion started by: v-rod
5 Replies

2. UNIX for Dummies Questions & Answers

Max I/O Size

My HP-UX 11.0 system is supporting an Oracle database. I have found a number of references on the Net to the "Max I/O size" in relation to setting Oracle parameters. How can I tell what my max i/o size is? I originally made the assumption that it was referring to my stripe size but now I think... (1 Reply)
Discussion started by: keelba
1 Replies

3. Programming

Max file size can't exceed 2 GB

We have Sun OS 5.9 we are doing a backup process (ProC program) that uses the function... fprintf(fp,"%s;%s;%s;%s;%s;%ld;%ld;%ld;%ld;%s;%s;%s;%d;%s;%s;%s;%ld;%s;%s;%s;%ld;%ld;%s;%ld;%s;%ld;%s;%s;%c%c",x_contrno, x_subno, x_b_subno,x_transdate,x_last_traffic_date,BillAmt_s, x_billamount_int,... (10 Replies)
Discussion started by: atiato
10 Replies

4. UNIX for Advanced & Expert Users

How to determine the max file size

Does anyone know a way to determine the maximum filesize on a file system on Solaris, HP-UX, AIX, Linux, and OSF1 using the command line? TIA (2 Replies)
Discussion started by: dknight
2 Replies

5. Solaris

max. size of file

I wants to ask that what is the max size of file that we can create in the unix file system. (2 Replies)
Discussion started by: sameerghogre
2 Replies

6. UNIX for Advanced & Expert Users

Max. file size

i want to know what is the maximum file size supported by linux with ext3 file system. (1 Reply)
Discussion started by: nagalenoj
1 Replies

7. UNIX for Dummies Questions & Answers

MAX file size limited to 2GB

Hi All, We are running HP rp7400 box with hpux 11iv1. Recently, we changed 3 kernel parameters a) msgseg from 32560 to 32767 b) msgmnb from 65536 to 65535 c) msgssz from 128 to 256 Then we noticed that all application debug file size increase upto 2GB then it stops. So far we did not... (1 Reply)
Discussion started by: mhbd
1 Replies

8. Shell Programming and Scripting

finding max size

Hi I have a list of 2000 records with multiple entries and I want to get the max size for each entry ABC 1 ABC 2 ABC 3 ABC 4 DEF 1 DEF 2 DEF 2 DEF 2 DEF 2 ... (9 Replies)
Discussion started by: Diya123
9 Replies

9. Shell Programming and Scripting

Max size directory

Hi I know that a perticular direxctory is cosuming max space . Filesystem 1K-blocks Used Available Use% Mounted on nfsfi02:/vol/fivol2/Dir2/dir 104857600 92671400 12186200 89% /fs/dir I want to know which sub directory is consuming max... (4 Replies)
Discussion started by: ptappeta
4 Replies

10. Solaris

Clamd max file size Solaris 10

Hi, I've compiled a 64-bit version of ClamAV 0.98.7 on my Solaris 10 SPARC server. I have a selection of files all containing the eicar signature but clamd is only picking up the signature in the files <2GB. I have the following set in clamd.conf, to remove file size checking: MaxScanSize 0... (4 Replies)
Discussion started by: Troutfest
4 Replies
lvmadm(1M)																lvmadm(1M)

NAME
lvmadm - display limits associated with a volume group version SYNOPSIS
vg_vers] DESCRIPTION
The command is used to perform the actions below: o Display the limits associated with a volume group version. o Display the LVM configuration that is contained in and files for the indicated volume group version. o Update the entries of the bootable volume group and the boot information present in the boot disk either during or after boot. With the boot disk's physical location changing prior to reboot or when the system is booted with a cloned disk, the entries of the bootable volume group and the boot information present in the boot disk may be out of sync with the kernel. In such a situation, follow- ing root volume group activation (either during boot or post boot) use the command in migrate mode option) to update the information present in the file and the boot information present in the boot disk with the kernel. See lvm(7) for more details. Options and Arguments recognizes the following options: Display a table of limits for the indicated volume group version. Display limits or configuration for volume group version vg_vers. The default is to display limits for all supported volume group versions. Display the LVM configuration that is contained in the and files. Produce a compact listing of fields described in The output is a list of colon separated fields formatted as: Update the information present in the file for the bootable volume group and the boot information present in the boot disk, with the information present in the kernel, if there is any mismatch. Display With -t Option For each volume group version to be displayed (one if is specified, all if is omitted) displays the following. VG Version The volume group version. Max VG Size (Tbytes) The maximum size of a volume group in terabytes. Max LV Size (Tbytes) The maximum size of a logical volume in terabytes. Max PV Size (Tbytes) The maximum size of a physical volume in terabytes. Max VGs The maximum number of volume groups this volume group version supports on a system. Max LVs The maximum number of logical volumes in a volume group. Max PVs The maximum number of physical volumes in a volume group. Max Mirrors The maximum number of mirrors for a logical volume. Max Stripes The maximum number of stripes for a logical volume. Max Stripe Size (Kbytes) The maximum stripe size for a logical volume in kilobytes. Max LXs per LV The maximum number of extents in a logical volume. Max PXs per PV The maximum number of extents in a physical volume. Max Ext Size (Mbytes) The maximum size of an extent in megabytes. Display with -l Option For each volume group version to be displayed (one if is specified, all if is omitted) displays the following: o The list of volume groups that exist on the system, and o The list of physical volumes belonging to each of the volume groups. The LVM configuration displayed by this option is from data contained in the and files. The command fails if these files are missing or corrupt. Compact Listing (-F Option) The option generates a compact and parsable listing of the command output in colon separated fields formatted as The option is designed to be used by scripts. The resulting command output may be split across multiple lines. The output may include new keys and/or values in the future. If a key is deprecated, its associated value is set to Compact Listing for -t option Below is a sample output: Compact Listing for -l option Below is a sample output: EXTERNAL INFLUENCES
Environment Variables determines the language in which messages are displayed. If is not specified or is null, it defaults to "C" (see lang(5)). If any internationalization variable contains an invalid setting, all internationalization variables default to "C" (see environ(5)). EXAMPLES
Display a table of limits for volume group version 2.0. Display the LVM configuration file contents for volume group version 1.0. AUTHOR
was developed by HP. SEE ALSO
vgcreate(1M), lvm(7). lvmadm(1M)
All times are GMT -4. The time now is 05:30 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy