3

how to create ufs filesystem more than 2tb in solaris?

3
  • Which version of solaris ?
    – user9517
    Nov 2, 2010 at 11:33
  • i want in both 9 and 10..
    – suresh
    Nov 2, 2010 at 12:13
  • you souhld be able to do that with newfs and mkfs commands? are you getting errors? if so, what are they? Nov 2, 2010 at 13:07

2 Answers 2

3

You can only do this on 64bit Solaris systems. The Solaris 10 newfs manpage has the example below for creating a multi-terabyte UFS filesystem. It looks like the same should work on Solaris 9 8/03 or later. You should look here for information on support and limitations of mutli-terabyte UFS filesystems. There is an example here on the Oracle site that suggests that suggests they can be created directly.

 # newfs -T /dev/md/rdsk/d99
 newfs: construct a new file system /dev/md/rdsk/d99: (y/n)? y
    /dev/md/rdsk/d99: 1677754368 sectors in 45512 cylinders of
    144 tracks, 256 sectors
    819216.0MB in 1821 cyl groups (25 c/g, 450.00MB/g, 448 i/g) ...

 Then, if you increase the volume size for this file  system,
 you  can  use  the growfs command to expand the file system.
 The file system is grown to 1.2 terabytes in this example:

 # growfs -v /dev/md/rdsk/d99
 /usr/lib/fs/ufs/mkfs -G /dev/md/rdsk/d99 2516631552 /dev/md/rdsk/d99:
    2516631552 sectors in 68268 cylinders of 144 tracks, 256  sectors
    1228824.0MB in 2731 cyl groups (25 c/g, 450.00MB/g, 448 i/g)...
3

To address a partition that is bigger than 2TB, you'll have to use EFI disk labels (instead of SMI). Remember Solaris doesn't boot from EFI disks yet, so your boot disk must use SMI and it can't be bigger than 2TB for that reason. Additional disks attached to your server can use EFI just fine.

Solaris 10 (newfs, ufsdump, etc) has been updated to handle >2TB file systems. Solaris 9 since update 8/03 also has support.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .