cancel
Showing results for 
Search instead for 
Did you mean: 

newfs not creating the filesystem more than 1 tb

Jay008
Level 3
Certified

HI All,

I created the volume with the size  of 3tb in vxvxm5.0 mp3 . When i run newfs (also tryed -T option) command it create only 1tb filesystem. Is that problem in solaris or vxvm. using solaris 10 update 8.How to fix it ?
1 ACCEPTED SOLUTION

Accepted Solutions

Gaurav_S
Moderator
Moderator
   VIP    Certified
Hello Jay,

I found an Article on sun site as per which OBP version can cause limitations to Filesystem size on UFS, see this below from sun site

Description
This document will describe the limitations of the filesystem for the Solaris [TM] Operating Environment.

The effect of OpenBoot[TM] PROM (OBP) revisions on filesystem size limitations is also discussed.



Steps to Follow
Filesystem Size Limitations in Solaris[TM]


Definitions:

  1. 1 Mbyte (megabyte) 2^20 bytes (1,048,576 bytes)

  2. 1 Gbyte (gigabyte) 2^30 bytes (1,073,741,824 bytes)

  3. 1 Tbyte (terabyte) 2^40 bytes (1,099,511,627,776 bytes)

In general if this document refers to a limitation of (for instance) 2 Gbyte,  2 Gbyte   1 byte  (1,073,741,823 bytes) is meant.

To improve readability, this has been abbreviated to  2 Gbyte .

The symbol  ~  is used to denote  approximately 

Maximum size of a single file and a filesystem.

This also applies to Solaris[TM] x86, but there may be some issues with disk drives larger than 30 Gbyte. This is due to hardware limitations with some PC motherboard/disk configurations.

OS Release

Single file

File system

Solaris[TM] 2.5.1

2 Gbyte

1 Tbyte

Solaris[TM] 2.6 - 9 12/02 (U3)

~1012 Gbyte

1 Tbyte

Solaris[TM] 9 08/03 (U4)  - Solaris 10 FCS

~1023 Gbyte

16 Tbyte

  1. A single file in Solaris 2.6 through Solaris 9 (U3) is limited to approximately 1012 Gbyte because the file must fit inside the 1 Tbyte filesystem. The filesystem is nominally 1 Tbyte, but in fact, due to the overhead in such a large filesystem, the largest single file ends up being about 1012 Gbyte. (part of this is a bug, but even if bug-free, a single file can't be 1 Tbyte due to the filesystem overhead). The overhead in the filesystem includes amongst other things, items such as superblock backups and inode tables. The example given here is using 1024 Kbyte (1 Mbyte) for the number of bytes per inode (nbpi) within the UFS filesystem. If nbpi is set to a lower value, more filesystem space will be allocated to inode tables and less will be available to store data. With nbpi=8 Kbyte, the maximum single file size would be smaller than 1012 Gbyte. The file in this example cannot use any of the minfree area set up on the filesystem (which is setup for  root only  use). On a 1 Tbyte filesystem minfree is set to 1% which translates to about 10 Gbyte.

  1. A safe assumption here would be that the limit on the size of a single file is the size of the filesystem,minus 1% to 2% overhead. In Solaris 2.6, the swap and tmpfs filesystems are still limited to 2 Gbyte. This is not the total amount of swap, it is a limit per swap slice or per swap file. A swap slice or file may be defined as larger than 2 Gbyte, but any space above 2 Gbyte in that slice or file will not be accessible and the size of the slice or file will be reported by the swap command as 2 Gbyte. There can be multiple swap slices or files totaling more than 2 Gbyte. Any later release of Solaris running 32 bit kernel has the same limitation. Later releases of Solaris running a 64 bit kernel do not have this limitation. See the  USAGE  paragraph in the Solaris 8 swap(1M) manual page for the new limits.

  2. Solaris 9 Update 4 introduced multiterabyte UFS.  The maximum individual file size is still the same as before (~1 Tbyte ), as increasing it would require radical on-disk format changes. The total filesystem size can now be up to 16 Tbyte. The -T option is specified to the newfs command to create such a filesystem. See the newfs(1M) manpage for additional information. There is also a limit of 1 million files per Tbyte, for instance. A 4 Tbyte UFS filesystem would have a 4 million files limit). This is done to keep fsck times reasonable (even when logging is enabled).

  1. Multiterabyte UFS functionality can also be added to earlier releases of Solaris 9 by installing the UFS patch 113454-09 or later. See the Special Install Instructions in the patch README for a list of additional patches required to get the full Multiterabyte functionality.

  1. The maximum single file size in a multiterabyte filesystem, which is greater than 1 Tbyte is 1 Tbyte minus 500 Mbyte or 1023.5 Gbyte As a rule of thumb this should be taken as 1023 Gbyte.

  1. A multiterabyte UFS filesystem is not bootable (This means the root filesystem cannot be a multiterabyte filesystem).

  1. A multiterabyte UFS filesystem is not mountable in any version of 32bit Solaris kernel.

Limitations in combination with the OBP.

Excluding the multiterabyte root filesystem limitation detailed above, the root filesystem has limits in Solaris[TM] 2.x that are not imposed on any other filesystems.  This limiting factor is a combination of two things, the OS release and the OBP (Open Boot Prom) level.

To establish the OS release, examine the /etc/release file To establish the OBP level, use the command prtconf -V (capital  V ).

Here is a list of the various possible configurations.

OBP level

OS Release

Max root filesystem size

OBP 3.1beta1 or newer

Solaris 2.5.1

Kernel Patch 103640-08 or newer

No limit

OBP 3.1beta1 or newer

Solaris 2.6

No limit

OBP 3.0 or earlier

Solaris 2.5.1

Kernel Patch 103640-07   or older.

2Gbyte

OBP 3.0 or earlier

Solaris 2.6 on an Ultra (sun4u)

4Gbyte

Solaris 10 and ZFS

ZFS is now fully integrated in Solaris 10 U2 and above.

Limitations of Solaris 7 Operating System
Solaris 8 Operating System
Solaris 10 Operating System

Hope this helps

Gaurav


View solution in original post

5 REPLIES 5

Gaurav_S
Moderator
Moderator
   VIP    Certified
Hi,

Do you get any error or prompt just returns back ?

can u paste a df -h output of the filesystem & vxprint -qhtg <diskgroup> output ?

Thanks

Gaurav

Marianne
Level 6
Partner    VIP    Accredited Certified
Are you trying to create a UFS or VxFS filesystem?

The problem is not vxvm or vxfs.

Extract from VxFS Admin Guide (default layout for SF 5.0 is version 7):
*************************
Version 5 enables the creation of file system sizes up to 32 terabytes. Files can be a maximum of one terabyte.
File systems larger than 1TB must be created on a Veritas Volume Manager volume.

Version 6 disk layout enables features such as multi-volume support, cross-platform data sharing, named data streams, and File Change Log.

Version 7 disk layout enables support for variable and large size history log records.
*************************

Please post the steps that you've taken, vxprint output (as per Gaurav's post), as well as the error message received.


ScottK
Level 5
Employee
newfs is not a vxfs command, except on HP-UX.
to create a vxfs file system on Solaris,
#mkfs -F vxfs /device_name

see also
http://sfdoccentral.symantec.com/sf/5.0MP3/solaris/manpages/vxfs/man1m/mkfs_vxfs.html

Gaurav_S
Moderator
Moderator
   VIP    Certified
Hello Jay,

I found an Article on sun site as per which OBP version can cause limitations to Filesystem size on UFS, see this below from sun site

Description
This document will describe the limitations of the filesystem for the Solaris [TM] Operating Environment.

The effect of OpenBoot[TM] PROM (OBP) revisions on filesystem size limitations is also discussed.



Steps to Follow
Filesystem Size Limitations in Solaris[TM]


Definitions:

  1. 1 Mbyte (megabyte) 2^20 bytes (1,048,576 bytes)

  2. 1 Gbyte (gigabyte) 2^30 bytes (1,073,741,824 bytes)

  3. 1 Tbyte (terabyte) 2^40 bytes (1,099,511,627,776 bytes)

In general if this document refers to a limitation of (for instance) 2 Gbyte,  2 Gbyte   1 byte  (1,073,741,823 bytes) is meant.

To improve readability, this has been abbreviated to  2 Gbyte .

The symbol  ~  is used to denote  approximately 

Maximum size of a single file and a filesystem.

This also applies to Solaris[TM] x86, but there may be some issues with disk drives larger than 30 Gbyte. This is due to hardware limitations with some PC motherboard/disk configurations.

OS Release

Single file

File system

Solaris[TM] 2.5.1

2 Gbyte

1 Tbyte

Solaris[TM] 2.6 - 9 12/02 (U3)

~1012 Gbyte

1 Tbyte

Solaris[TM] 9 08/03 (U4)  - Solaris 10 FCS

~1023 Gbyte

16 Tbyte

  1. A single file in Solaris 2.6 through Solaris 9 (U3) is limited to approximately 1012 Gbyte because the file must fit inside the 1 Tbyte filesystem. The filesystem is nominally 1 Tbyte, but in fact, due to the overhead in such a large filesystem, the largest single file ends up being about 1012 Gbyte. (part of this is a bug, but even if bug-free, a single file can't be 1 Tbyte due to the filesystem overhead). The overhead in the filesystem includes amongst other things, items such as superblock backups and inode tables. The example given here is using 1024 Kbyte (1 Mbyte) for the number of bytes per inode (nbpi) within the UFS filesystem. If nbpi is set to a lower value, more filesystem space will be allocated to inode tables and less will be available to store data. With nbpi=8 Kbyte, the maximum single file size would be smaller than 1012 Gbyte. The file in this example cannot use any of the minfree area set up on the filesystem (which is setup for  root only  use). On a 1 Tbyte filesystem minfree is set to 1% which translates to about 10 Gbyte.

  1. A safe assumption here would be that the limit on the size of a single file is the size of the filesystem,minus 1% to 2% overhead. In Solaris 2.6, the swap and tmpfs filesystems are still limited to 2 Gbyte. This is not the total amount of swap, it is a limit per swap slice or per swap file. A swap slice or file may be defined as larger than 2 Gbyte, but any space above 2 Gbyte in that slice or file will not be accessible and the size of the slice or file will be reported by the swap command as 2 Gbyte. There can be multiple swap slices or files totaling more than 2 Gbyte. Any later release of Solaris running 32 bit kernel has the same limitation. Later releases of Solaris running a 64 bit kernel do not have this limitation. See the  USAGE  paragraph in the Solaris 8 swap(1M) manual page for the new limits.

  2. Solaris 9 Update 4 introduced multiterabyte UFS.  The maximum individual file size is still the same as before (~1 Tbyte ), as increasing it would require radical on-disk format changes. The total filesystem size can now be up to 16 Tbyte. The -T option is specified to the newfs command to create such a filesystem. See the newfs(1M) manpage for additional information. There is also a limit of 1 million files per Tbyte, for instance. A 4 Tbyte UFS filesystem would have a 4 million files limit). This is done to keep fsck times reasonable (even when logging is enabled).

  1. Multiterabyte UFS functionality can also be added to earlier releases of Solaris 9 by installing the UFS patch 113454-09 or later. See the Special Install Instructions in the patch README for a list of additional patches required to get the full Multiterabyte functionality.

  1. The maximum single file size in a multiterabyte filesystem, which is greater than 1 Tbyte is 1 Tbyte minus 500 Mbyte or 1023.5 Gbyte As a rule of thumb this should be taken as 1023 Gbyte.

  1. A multiterabyte UFS filesystem is not bootable (This means the root filesystem cannot be a multiterabyte filesystem).

  1. A multiterabyte UFS filesystem is not mountable in any version of 32bit Solaris kernel.

Limitations in combination with the OBP.

Excluding the multiterabyte root filesystem limitation detailed above, the root filesystem has limits in Solaris[TM] 2.x that are not imposed on any other filesystems.  This limiting factor is a combination of two things, the OS release and the OBP (Open Boot Prom) level.

To establish the OS release, examine the /etc/release file To establish the OBP level, use the command prtconf -V (capital  V ).

Here is a list of the various possible configurations.

OBP level

OS Release

Max root filesystem size

OBP 3.1beta1 or newer

Solaris 2.5.1

Kernel Patch 103640-08 or newer

No limit

OBP 3.1beta1 or newer

Solaris 2.6

No limit

OBP 3.0 or earlier

Solaris 2.5.1

Kernel Patch 103640-07   or older.

2Gbyte

OBP 3.0 or earlier

Solaris 2.6 on an Ultra (sun4u)

4Gbyte

Solaris 10 and ZFS

ZFS is now fully integrated in Solaris 10 U2 and above.

Limitations of Solaris 7 Operating System
Solaris 8 Operating System
Solaris 10 Operating System

Hope this helps

Gaurav


Marianne
Level 6
Partner    VIP    Accredited Certified

Jay008 - please confirm if you're trying to create UFS or VxFS filesystem?

Can we assume that it's UFS (newfs command and -T option)?

Seems multi-terabyte UFS filesystems are only supported on 64-bit O/S:

http://docs.sun.com/app/docs/doc/817-5093/fsoverview-18?l=en&a=view

64-bit: Support of Multiterabyte UFS File Systems


This Solaris release provides support for multiterabyte UFS file systems on systems that run a 64-bit Solaris kernel.

Previously, UFS file systems were limited to approximately 1 terabyte on both 64-bit and 32-bit systems. All UFS file system commands and utilities have been updated to support multiterabyte UFS file systems.

You can use the fstyp -v command to identify whether a UFS file system has multiterabyte support by checking the following value in the magic column:


# /usr/sbin/fstyp -v /dev/md/rdsk/d3 | head -5 ufs magic decade format dynamic time Thu Jul 17 11:15:36 2008
A UFS file system with no multiterabyte support has the following fstyp output:

# /usr/sbin/fstyp -v /dev/md/rdsk/d0 | head -5 ufs magic 11954 format dynamic time Thu Jul 17 12:43:29 MDT 2008