如何在solaris中创build超过2tb的ufs文件系统?
您只能在64位Solaris系统上执行此操作。 Solaris 10的newfs手册页中有下面的例子来创build一个多TB的UFS文件系统。 看起来在Solaris 9 8/03或更高版本中应该可以工作。 您应该在这里查看有关多TB UFS文件系统的支持和限制的信息。 在Oracle网站上有一个例子,表明他们可以直接创build。
# 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)...
要解决大于2TB的分区问题,您必须使用EFI磁盘标签(而不是SMI)。 记住Solaris不能从EFI磁盘启动,所以你的启动磁盘必须使用SMI,因此不能超过2TB。 连接到服务器的其他磁盘可以使用EFI。
Solaris 10(newfs,ufsdump等)已更新为处理> 2TB文件系统。 Solaris 9自8/03更新以来也有支持。