Max file size can't exceed 2 GB


 
Thread Tools Search this Thread
Top Forums Programming Max file size can't exceed 2 GB
# 1  
Old 02-25-2004
Question 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, x_duration
, x_act_duration,x_third_party_no, x_call_type,x_tariffclass,x_party_flag,x_chargetype,x_vol_group,x_billcode,x_no_packets,v_SUBSCR_TYP E.arr,v_AREA.arr,v_TARIFF_GROUP.arr,file_id0,d_GROSS_AMOUNT,v_UPDATED,d_RATE_POS
,v_DISC_TYPE.arr,d_OTHER_AMOUNT,v_OTHER_GROUP.arr,v_TARIFF_PROFILE.arr,0x0D,0x0A);

and fp is declared such that

FILE *fp (fp is pointer to file)

MY problem is that I can't exceed 2GB as file size ......

What are the options availabe to increase the file size to be unlimited............?

and I need to know if this file size depends on the filesystem itself...
# 2  
Old 02-25-2004
What kind of filesystem is it? If it is VxFS (Veritas file system) you can set the largefiles flag in /etc/vfstab and reboot. If you want to increase it on the fly there is a command, I believe it is called fsadm, which can do that. Check your Veritas man pages for details, but I know you can do it.

If it is UFS I'm not sure if you can change it once the filesystem has been created.
# 3  
Old 02-25-2004
UFS

I have UFS file system...
!!!!!
Please if anybody help I would appreciate that......
# 4  
Old 02-25-2004
largefiles

Mounting

/homes on /dev/dsk/c1t0d0s6 read/write/setuid/intr/largefiles/xattr/onerror=pani
c/dev=1d8000e on Wed Feb 11 20:59:31 2004

means the file system supported large files ....

relating the C program......
# 5  
Old 02-25-2004
Post the output from:
isainfo -b
isainfo -v
isainfo -kv
All of these need to say "64". Read the man page for your compiler. Are you putting it 64-bit mode? If not then you must be using the stuff mentioned in "man lfcompile".

To see if the filesystem supports largefiles --- try it. Use some program that you did not write to attempt to create a largefile. "man largefile" will list the os commands that are large file aware.
# 6  
Old 02-26-2004
Information

[Billtest]tabs:/homes/tabs>isainfo -b
64
[Billtest]tabs:/homes/tabs>isainfo -v
64-bit sparcv9 applications
32-bit sparc applications
[Billtest]tabs:/homes/tabs>isainfo -kv
64-bit sparcv9 kernel modules
[Billtest]tabs:/homes/tabs>
# 7  
Old 02-26-2004
CC 32bit

Please if you help me in an axample (small C program write to file more than 2GB) using fprintf or fwrite ?

as it is an important issue here to backup local calls details table.....
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. 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

2. Solaris

ZFS : Can arc size value exceed Physical RAM ?

Hi, kstat -p -m zfs -n arcstats -s size returns zfs:0:arcstats:size 8177310584 this values is approx (7.61 GB) but my Physical Memory size is only 6144 Megabytes. Can this happen ? if yes, then how can I find free memory on the system. BTW, I ran the kstat commands from a Non... (2 Replies)
Discussion started by: sapre_amit
2 Replies

3. Solaris

Exceed XDMCP Query: Menu displayed is tiny size when logged in with language other than English

Hi All, I'm new for Solaris and exceed both. I tried searching in forum but couldn't locate any similar issue posted so posting the issue. I'm remotely connecting a solaris machine using Exceed XDMCP Query and while login I select Chinese language / locale for login. After login when I... (0 Replies)
Discussion started by: kshukla08
0 Replies

4. UNIX for Dummies Questions & Answers

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... (6 Replies)
Discussion started by: puru2121
6 Replies

5. 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

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. 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

8. 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

9. 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

10. 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
Login or Register to Ask a Question