Articles of solaris

如何在Solaris上非交互式地更新非root用户的crontab?

我想为安装为OpenPKG RPM软件包的应用程序更新非root用户的crontab条目。 目前我在.spec文件的%post部分有这个: # # Set up the 'app' user's crontab. # Marker lines are used to separate content from different packages: # #Begin of App package # # … # #End of App package # Replace any possibly existing content between these lines and insert the # content of the installed new file CRONTAB=/var/spool/cron/crontabs/%{V_user} […]

如果设备没有被重新分配,我可以在导出之后恢复zpool吗?

我有一个zpool,我们将称之为“testpool”。 testpool包含3个设备,一个zfs被称为'test'。 我需要将“testing”移动到一个新的小型游泳池。 我想命名新的池相同的名称“testpool”。 基本上做了以下。 zfs send testpool@backup > /tmp/test-dump zpool export -f testpool zpool create -f testpool newdevice zfs receive -F testpool < /tmp/test-dump 不幸的是我发现testpool @ backup快照是错误的快照。 太老。 我还没有重新分配旧testing池中的三个设备。 (这三种设备都不是“新设备”,它们是单独的3.) 有什么方法可以恢复这些设备中的数据? 我在想,因为我命名新的,更小的池像旧的zpool一样,我几乎是SOL。 但是,如果没有,那将是很好的知道。 编辑:更多信息 我做了一个“zpool导入”,并得到了这个。 bash-3.00# zpool import pool: testpool id: 14781458723915654709 state: ONLINE action: The pool can be imported using its name or […]

Solaris“killall”

这个问题是由“linux / solaris用一个命令杀死许多进程”的问题所启发的。 Solaris的killall在这里被描述为杀死每一个没有任何名字匹配的进程,就像在Linux上一样。 这种破坏性行为的用例是什么呢? 我不认为我需要在我的Linux上安装这样的操作…

CPIO是否生成依赖平台的档案?

我在Solaris 11(SPARC)上使用以下命令创build了一个CPIO存档: find . | cpio -ov >/tmp/myarchive.cpio 我将其复制到基于Intel的Solaris 11计算机上,并尝试使用以下命令进行提取 cpio -icvdu < myarchive.cpio 它给我以下错误: cpio: Not a cpio file, bad header. 1 errors MD5SUM哈希匹配,我可以在另一台SPARC机器上提取它。 我的问题,CPIO产生平台相关的输出? 有什么办法来转换它? 我现在不能使用TAR,因为我正在归档的目录有很长的符号链接被TAR命令跳过

如何查看详细的过程状态

我使用5个长参数运行脚本 – my_script.ksh作为进程 在我的solaris / linux机器上(例子1), 后来我通过validation过程 ps -ef | grep my_script.ksh 我不明白的方式,我没有得到ps -ef的所有参数? ,(见例2) 或者也许ps命令有限制显示一个长行? ,或者可能需要写一些ps命令来显示所有参数? 为了查看ps -ef命令的所有参数,需要做什么? 示例1 (使用相关参数运行my_script.ksh ) # ( /tmp/my_script.ksh PATH1=/usr/lib/efcode/sparcv9/efdaemon PATH2=/etc/opt/VO/share/conf/nnmet/mib/Fore-pre802dot1Q-VLAN-MIB.mib -scan-files -ignore-simbolic-links -give-full-file-details ) & [1] 18942 例2 (validation脚本进程,但不能看到所有参数?) # ps -ef | grep my_script.ksh root 18942 11889 0 13:22:20 pts/1 0:00 /bin/ksh /tmp/my_script.ksh PATH1=/usr/lib/efcode/sparcv9/efdaemon PATH2=/etc/o

NFS v2与v3

我在使用NFS v3挂载主目录的两个系统(Solaris客户端和Linux服务器)出现问题。 (NFS v4完全不起作用,因为另一个系统pipe理员告诉我这是一个“已知问题”)。NFS v2似乎正常工作。 我的问题是:使用NFS v2和NFS v3之间的折衷是什么? 我需要决定是否继续尝试debugging这个问题,或者决定为这个客户端使用NFS v2。 我知道有v2的文件大小限制,虽然我看到了冲突的信息 – 这是一个2 GB或4GB的限制? 对v2也有性能损失; 是否有可能以一般的方式量化v2的速度限制,还是这太依赖于特定的系统和networking? (对于它的价值,我已经在系统之间获得了千兆以太网。)两者之间还有什么其他的折衷? 我应该知道有什么安全问题吗?

多端口光纤通道目标与qlogic qle2462增加速度

我有一台服务器在目标模式下运行带有QLogic QLE2460的Nexenta。 这很好。 我的问题是,我只有1端口的速度(4Gbps)到我的交换机。 我怎样才能提高速度 现在我要指出的是,我不是光纤通道的专家,但是在networking中我可以拥有自己的。 如果这是networking,我可以团队合作,并从两个速度。 我可以将光纤通道卡作为目标吗? 我find了一些关于使用QLDirectfilter来为启动器执行此操作的文档,但是目标呢? 我最好把LUN放在不同的端口上,并试图通过隔离来获得更好的速度?

在Solaris 11上的Gnupg库问题

我从官方的Solaris 11存储库安装了gnupg,但遇到了库问题。 这是我得到的错误: ld.so.1: gpg2: fatal: relocation error: file /usr/lib/libreadline.so.5: symbol tgetent: referenced symbol not found 在这里查看更多信息: bash-4.1$ gpg2 –list-secret-keys Warning: using insecure memory! /www/shared/.gnupg/secring.gpg —————————— sec 1024D/E6A51C54 2010-11-25 uid John Doe (jdoe) <[email protected]> ssb 2048g/2BE06126 2010-11-25 bash-4.1$ gpg2 –edit-key [email protected] gpg (GnuPG) 2.0.17; Copyright (C) 2011 Free Software Foundation, Inc. This is free software: […]

Solaris更新托pipe文件,无需重新启动

我正在运行Solaris 10,并且遇到了特定networking的问题,需要replace主机文件中的主机条目。 我已经更新了hosts文件。 有没有重新启动主机条目刷新?

truss -D和truss -E的区别是什么?

我目前正在分析一个从文件读取并且性能非常低的Solaris命令。 truss -D命令显示我read系统调用需要0.03秒,但是当我使用truss -E ,它们总是为0.0000或0.0001(比-D选项低两个数量级)。 在man页上,它说: -D Includes a time delta on each line of trace output. The value appears as a field containing seconds.fraction and represents the elapsed time for the LWP that incurred the event since the last reported event incurred by that LWP. Specifically, for system calls, this is not the time […]