[SunHELP] Re: 2GB Restriction on files

Robert Novak rnovak at indyramp.com
Wed Mar 13 20:00:58 CST 2002


On Wed, 13 Mar 2002, Bret Adams - MIS wrote:

> Hey Everybody:
> 
> Anybody know how to get around the 2GB restriction on file size,
> particularly on Solaris 2.8.

Mount the filesystem with the 'largefiles' option.

>From mount_ufs(1M):
Maintenance Commands                                mount_ufs(1M)

                largefiles | nolargefiles
                      If nolargefiles is specified and  supported
                      by  the  file system, then for the duration
                      of the mount it is guaranteed that all reg-
                      ular  files  in the file system have a size
                      that will fit in  the  smallest  object  of
                      type off_t supported by the system perform-
                      ing the mount. The mount will fail if there
                      are  any  files  in  the  file  system  not
                      meeting this criterion.  If  largefiles  is
                      specified,  there is no such guarantee. The
                      default behavior is largefiles.

                      If nolargefiles is  specified,  mount  will
                      fail  for  ufs  if  the  file  system to be
                      mounted has contained a large file (a  file
                      whose  size  is  greater than or equal to 2
                      Gbyte) since the last invocation of fsck on
                      the file system. The large file need not be
                      present in the file system at the  time  of
                      the  mount  for the mount to fail; it could
                      have been created previously and destroyed.
                      Invoking  fsck  (see  fsck_ufs(1M))  on the
                      file system  will  reset  the  file  system
                      state  if no large files are present. After
                      invoking  fsck, a successful mount  of  the
                      file  system  with  nolargefiles  specified
                      indicates the absence of large files in the
                      file  system; an unsuccessful mount attempt
                      indicates the  presence  of  at  least  one
                      large file.


Robert Novak, Indyramp Consulting * rnovak at indyramp.com * indyramp.com/~rnovak
	"I don't want to doubt you, Know everything about you
      I don't want to sit Across the table from you Wishing I could run."



More information about the SunHELP mailing list