How to create ufs filesystem more than 2tb in solaris

solarisufs

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

Best Answer

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)...
Related Topic