免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 44988 | 回复: 4

[SCO UNIX] UnixWAre and Open unix8下如何配置大文件系统支持shutdown –i6 –g0 –y。 [复制链接]

论坛徽章:
0
发表于 2011-11-27 09:48 |显示全部楼层
How to enable large file support?   
  
  
  Keywords  
  ou8 800 8.0.0 7.1.0 710 711 7.1.1 unixware7 uw7 large file maximum file length support 2gb 1tb one terabyte gigabyte two enable how to vxfs fsadm ulimit filesize filelength larger uw uware greater than
>;
largefile largefiles mkfs openunix openunix8 713 7.1.3  
  
  Release  
  Caldera Open UNIX 8 Release 8.0.0
UnixWare 7 Release 7.0.0, 7.0.1, 7.1.0, 7.1.1, 7.1.3  
  
  Problem  
  By default, the maximum file length on a UnixWare 7 system is
2 gigabytes, but the maximum possible file length supported by
VXFS filesystems on UnixWare 7 systems is 1 terabyte. How do
I enable this large file support on a VXFS filesystem?

NOTE: The maximum supported filesystem size (as opposed to file
size) is 2 terabytes (real filesystem sizes larger than 128
gigabytes have been tested). This support is enabled by default.  
  
  Solution  
  To enable large files support on the root filesystem:

1. Run fsadm to enable the large file support:

# fsadm -Fvxfs -o largefiles /

2. Run fsadm to confirm that the support has been enabled:

# fsadm /

This should report "largefiles".

3. Increase ULIMIT to unlimited:

# ulimit unlimited

4. Ensure SFSZLIM and HFSZLIM are set to "infinity" (which is
represented by 0x7FFFFFFF) and relink the kernel:

# cd /etc/conf/bin
# ./idtune SFSZLIM 0x7FFFFFFF
# ./idtune HFSZLIM 0x7FFFFFFF
# ./idbuild -B

5. Reboot the system using shutdown(1M).

My Opinion:  

1 使用shutdown命令重新启动系统
#shutdown –i6 –g0 –y

  2 为了使非root用户的参数ULIMIT=unlimited,要把/etc/default/login中的ULIMIT参数改为unlimited.


You should now be able to create files larger than 2GB on root.

To test for a successful creation of a file greater than 2GB:

# dd if=/dev/zero of=big bs=1024k count=2100
# ls -l big
-rw-r--r-- 1 root sys 2202009600 Oct 4 14:34 big

NOTE: Not all utilities are largefiles aware (and shell redirection does
not support greater than 2GB files). For example, you can't create
a file greater than 2GB by using:

# cat file1 file2 >;>; file3

if file3 exceeds 2GB.

For a list of commands, utilities and APIs that support largefiles,
see the Intro(2) man page on your UnixWare 7 system.

To ensure that non-root users have ULIMIT=unlimited, change the
ULIMIT parameter in /etc/default/login to unlimited.

NOTE: Running "ulimit" after running the changes above should return the
value:

4194303

NOTE: You can also increase the following kernel parameters for large
database use, such as Oracle, as in step 4 above:

SDATLIM 0x7FFFFFFF
HDATLIM 0x7FFFFFFF
SSTKLIM 0x7FFFFFFF
HSTKLIM 0x7FFFFFFF
SVMMLIM 0x7FFFFFFF
HVMMLIM 0x7FFFFFFF

NOTE: Increasing SFNOLIM to above 1024 may also cause "netcfg" to take
several minutes to load each component. It is recommended to put
the server into Single User Mode (init 1 or at the boot logo press
space and enter "INITSTATE=S" then press ENTER followed by "go").

NOTE: You can also increase SCORLIM and HCORLIM but you should be aware that
if you application core dumps then the size of the core file will
equal that of memory.

NOTE: It is not recommended to set the file size to unlimited on the root
filesystem in order to ensure that the root file system does not run
of disk space unnecessarily.

NOTE: If you system has large processes that require more memory than the
standard kernel configuration will allow, and therefore you find that
they are slow then increasing SSTKLIM/HSTKLIM and SVMMLIM/HVMMLIM will
adddress this.

SVMMLIM: (max 0x7FFFFFFF) is the soft limit specifying the maximum
address space that can be mapped to a process (HVMMLIM is the hard
limit).

STKLIM: (max 0x7FFFFFFF) is the the maximum stack size for a process
and the process stack resides within the [SH]VMMLIM address space) -
HSTKLIM is the hard limit.

ie. This is 4GB - 1 byte; 32bit architecture.

Therefore, the maximum amount of RAM that one process can consume is
no more than 4GB.

By default, the entries in /etc/conf/cf.d/mtune are set to:

Value Default Min Max
----- ------- --- ---
SVMMLIM 0x9000000 0x1000000 0x7FFFFFFF
HVMMLIM 0x9000000 0x1000000 0x7FFFFFFF
SSTKLIM 0x1000000 0x2000 0x7FFFFFFF
HSTKLIM 0x1000000 0x2000 0x7FFFFFFF

SEE ALSO: fsadm_vxfs(1M) and Intro(2)

Page 29 of the UnixWare 7 Getting Started Guide.

Technical Article 105805, "How can I set up extra filesystems or slices on my boot
disk?"

Technical Article 105408, "UnixWare 2.0.*, How can I tune my system to allow a process to use more memory?"

论坛徽章:
0
发表于 2011-11-28 21:46 |显示全部楼层
楼主转载自sco的知识库吧,呵呵

论坛徽章:
0
发表于 2011-12-02 16:05 |显示全部楼层
很久以前做过

论坛徽章:
0
发表于 2012-02-07 10:08 |显示全部楼层
能用中文不?

论坛徽章:
0
发表于 2015-04-16 11:17 |显示全部楼层
里面的知识,很值得我们去学习了,谢谢lz了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP