Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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

share|improve this question
    
Which version of solaris ? –  Iain Nov 2 '10 at 11:33
    
i want in both 9 and 10.. –  suresh Nov 2 '10 at 12:13
    
you souhld be able to do that with newfs and mkfs commands? are you getting errors? if so, what are they? –  The Unix Janitor Nov 2 '10 at 13:07
add comment

2 Answers

up vote 2 down vote accepted

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)...
share|improve this answer
add comment

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.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.