Technical article 117654

What binaries of UnixWare7 and OpenServer6 are "Large File" aware?

OpenServer 6.0.0UnixWare 7.1.0UnixWare 7.1.1UnixWare 7.1.2UnixWare 7.1.3UnixWare 7.1.4

Written · Last revised

Problem

I have files greater than 2GB.  What operating system binaries can
support files greater than 2GB?

Solution

Only a limited number of utilities and commands support large files. For a detailed list consult the online documentation:

http://<your_server>:457
or:
http://docsrv.sco.com:80/
The exact URL is:
http://docsrv.sco.com/SM_basics/saT.lfs.html
and Search for "large-file".  You should see a section, "Managing
Large Files".  A list is provided below:
For UnixWare 7.1.x:
cat(1)    du(1M)     ncheck(1M)
chgrp(1)  ff(1M)     pathchk(1)
chmod(1)  find(1)    pax(1)
chown(1)  fsck(1M)   pwd(1)
cksum(1)  fsdb(1M)   rcp(1tcp)
cmp(1)    ln(1)      rm(1)
cp(1)     ls(1)      rmdir(1)
cpio(1)   mkdir(1)   sum(1)
dd(1M)    mkfs(1M)   touch(1)
df(1M)    mv(1)      ulimit(1)
From the UnixWare 7.1.1 Documentation:

Prior to this release, the size of a file in SCO UnixWare was limited to only as much information as could be addressed using a signed long integer. On most implementations that is 2 gigabytes ([2 to the 31] -1). Although LFS is designed to allow the kernel to handle files containing up to ([2 to the 63] -1) bytes, the current implementation of SCO UnixWare can handle only files that contain up to ([2 to the 40] -1) bytes, or one terabyte of disk store. A sparse file can exhibit length up to 2^63 bytes.

For Open UNIX 8.0.0/UnixWare 7.1.3/7.1.4/OSR6:
cat(1)       du(1M)     pathchk(1)
chgrp(1)     ff(1M)     pax(1)
chmod(1)     find(1)    pwd(1)
chown(1)     fsck(1M)   rcp(1tcp)
cksum(1)     fsdb(1M)   rm(1)
cmp(1)       ln(1)      rmdir(1)
compress(1)  ls(1)      sum(1)
cp(1)        mkdir(1)   touch(1)
cpio(1)      mkfs(1M)   ulimit(1)
dd(1M)       mv(1)      uncompress(1)
df(1M)       ncheck(1M) zcat(1)

Make sure you have enabled large file support using TA110169.

NOTE:     UnixWare 7.1.3 includes NFSv3 which supports files greater than 2GB.
NOTE:     Whilst the binaries may be large file aware, the shell may not be.
          For example, to use "cpio" to back up more than 2GB of data use:
# find . -depth -print | cpio -ovc -O<file.cpio>
as opposed to:
# find . -depth -print | cpio -ovc > file.cpio
NOTE:     Other shell functions, such as "test" will also not see large files.
ie. [ if -f largefile ]

A workaround would be to use "ls" as this simple script demonstrates:

#!/bin/sh
ls $1 > /tmp/output_file 2>/tmp/error_file
if [ -s /tmp/error_file ]; then
     echo "$1 does not exist ... "
     cat /tmp/error_file
else
     echo "$1 exists ..."
     cat /tmp/output_file
fi

See also

TA110169, "How to enable large file support?"

TA111383, "The 'at' command and other cron utilities do not support large file creation."

TA111505, "Under UnixWare 7, I cannot transfer files larger that 2GB using rcp."

TA112205, "What is the largest file that can be backed up in 7.1.1?"

TA112962, "I can't compress a file greater than 2GB on UnixWare 7."

TA113081, "VisionFS takes a long time to transfer files with UnixWare 7."

TA116686, "Using the '-r' (rename) option of cpio fails to recover files larger than 2Gb."

http://docsrv.sco.com/cgi-bin/man/man?Intro+2#LargeFileSupport

From the Xinuos technical article database, record 117654. Reproduced with permission. The original is at www.sco.com/ta/117654, which is reachable but blocked from search engines.

Next step

Need this fixed rather than explained?

Tell us the release, what the system runs and what it is doing. We will reply by email with what we would do next.

  • You deal with the people who do the work
  • No obligation, and no upgrade required before we will help
  • We tell you plainly if something is not worth doing

Send an enquiry

We reply by email. If a server is down, say so in the first line. You can also write to help@scoexpert.com.