博客首页
注册
建议与交流
排行榜
加入友情链接
推荐
投诉
搜索:
帮助
Become System Admin
Growing Pains..............................................
bsa.cublog.cn
管理博客
发表文章
留言
收藏夹
博客圈
音乐
相册
文章
· AIX
· EBS
· HP-UX
· IT心情
· Linux
· Oracle
· P5
· Peoplesoft
· Siebel
· Xen
首页
关于作者
姓名:Dylan 职业:System Admin 年龄:27 爱好:摄影,台球
||
<<
>>
||
我的分类
文章列表 - AIX
Xwindow的重定向功能
先结合VNC,说说X-windows的基本原理和命令。<br>使用vncserver命令可以启动一个X-windows, 启动者即为此X窗口的owner. 使用同一用户可以在同一主机其他的窗口上把图形显示到该X窗口上。当然需要设置DISPLAY环境变量。<br>AIX默认安装是没有vnc的,有的很少用到图形,也懒得装vnc了。所以可以考虑把输出定向到pc的linux上去<br>linux 主机<br>vncserver :5 --启动一个X窗口<br>export DISPLAY=:5.0 --设置当前默认X窗口为5 <br>xhost + --设置该X窗口的权限, +为允许任何用户从任何主机把图形显示输出过来<br><br>aix主机<br>export DISPLAY=IPofLinuxHost:5.0 --设置当前默认X窗口为linux主机的5<br>xclock<br><br>这时可以用vnc连接到linux主机的5口,会看到aix的输出了 <br> <br><br><br> <br>
查看全文
发表于:2007-11-25 ┆
阅读(379)
┆
评论(0)
AIX 5.3中设置大文件支持
AIX系统安装之后,默认不允许单个文件大小超过2G,对于企业应用系统来说,这个限制一般是需要去除的。<br><br>首先,取消安全方面的限制,需要修改配置文件/etc/security/limits,可以针对所有用户在default段修改,或者在指定user段来修改具体user的限制。下面是一个示例。设置成-1,表示取消大小限制。<br>cat /etc/security/limits<br><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">*</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* Sizes are in multiples of 512 byte blocks, CPU time is in seconds</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">*</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* fsize - soft file size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* core - soft core file size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* cpu - soft per process CPU time limit in seconds</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* data - soft data segment size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* stack - soft stack segment size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* rss - soft real memory usage in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* nofiles - soft file descriptor limit</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* fsize_hard - hard file size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* core_hard - hard core file size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* cpu_hard - hard per process CPU time limit in seconds</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* data_hard - hard data segment size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* stack_hard - hard stack segment size in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* rss_hard - hard real memory usage in blocks</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* nofiles_hard - hard file descriptor limit</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">*</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* The following table contains the default hard values if the</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* hard values are not explicitly defined:</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">*</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* Attribute Value</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* ========== ============</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* fsize_hard set to fsize</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* cpu_hard set to cpu</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* core_hard -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* data_hard -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* stack_hard 8388608 </span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* rss_hard -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* nofiles_hard -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">*</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">* NOTE: A value of -1 implies "unlimited"</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">*</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">default:</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> fsize = -1 </span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> core = 2097151</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> cpu = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> data = -1 </span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> rss = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> stack = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> nofiles = 65536</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> maxuprc =1024</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">root:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">daemon:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">bin:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">sys:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">adm:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">uucp:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">guest:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">nobody:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">lpd:</span><br style="color: rgb(0, 153, 204);"><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);">oracle:</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> fsize = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> core = 2097151</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> cpu = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> data = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> rss = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> stack = -1</span><br style="color: rgb(0, 153, 204);"><span style="color: rgb(0, 153, 204);"> nofiles = 65536</span><br><br>除了安全方面的限制,单个文件大小还受文件系统类型的限制,AIX下主要使用JFS和JFS2文件系统,下面是一个对比表格。可见,JFS最大只能支持64G的单个文件,有时候做大文件的归档备份时,有可能会超过这个限制的,所以建议使用JFS2文件系统。<br><br><table id="wq64" border="1" frame="border" rules="all" width="100%"><thead valign="bottom"><tr><th id="wq65" align="left" valign="top">Functions</th><th id="wq66" align="left" valign="top">JFS2</th><th id="wq67" align="left" valign="top">JFS</th></tr></thead><tbody valign="top"><tr><td headers="wq65">Fragments/Block Size</td><td headers="wq66">512-4096 Block sizes</td><td headers="wq67">512-4096 Frags</td></tr><tr><td headers="wq65">Maximum file system size</td><td headers="wq66">16 Terabytes</td><td headers="wq67">1 Terabyte</td></tr><tr><td headers="wq65">Maximum file size</td><td headers="wq66">16 Terabytes</td><td headers="wq67">64 GB</td></tr><tr><td headers="wq65">Number of i-nodes</td><td headers="wq66">Dynamic, limited by disk space</td><td headers="wq67">Fixed, set at file-system creation</td></tr><tr><td headers="wq65">Directory organization</td><td headers="wq66">B-tree</td><td headers="wq67">Linear</td></tr><tr><td headers="wq65">Compression</td><td headers="wq66">No</td><td headers="wq67">Yes</td></tr><tr><td headers="wq65">Quotas</td><td headers="wq66">No</td><td headers="wq67">Yes</td></tr><tr><td headers="wq65">Error logging</td><td headers="wq66">Yes</td><td headers="wq67">Yes</td></tr></tbody></table><br>
查看全文
发表于:2007-10-22 ┆
阅读(981)
┆
评论(0)