Solaris: audit config 
    minfree:20
dir:/var/audit/data/files
dir:/var/audit/overflow/files
flags:lo,ex
naflags:lo,ex


/etc/system
set c2audit:audit_load = 1 # audit is enabled


http://docs.sun.com/app/docs/doc/801-66 ... dule+Guide

[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Solaris SVM: extending mirror on Solaris SVM by 2 disks 
extending mirror on Solaris SVM by 2 disks:

the new disks:

       2. c0t2d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>  rootdisk
/pci@1c,600000/scsi@2/sd@2,0
3. c0t3d0 <SUN36G cyl 24620 alt 2 hd 27 sec 107>
/pci@1c,600000/scsi@2/sd@3,0


first, copy volume table of content from original mirrored disk:

prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t2d0s2
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s - /dev/rdsk/c0t3d0s2


init partitions acting as metadevices:

metainit d30 1 1 c0t2d0s0
metainit d40 1 1 c0t3d0s0

metainit d31 1 1 c0t2d0s1
metainit d41 1 1 c0t3d0s1


metainit d35 1 1 c0t2d0s5
metainit d45 1 1 c0t3d0s5

metainit d36 1 1 c0t2d0s6
metainit d46 1 1 c0t3d0s6

metainit d37 1 1 c0t2d0s7
metainit d47 1 1 c0t3d0s7

attach devices to current mirror:

metattach d0 d30
metattach d1 d31
metattach d5 d35
metattach d6 d36
metattach d7 d37

metattach d0 d40
metattach d1 d41
metattach d5 d45
metattach d6 d46
metattach d7 d47


if metainit says "Metainit : no such file or directory", the limit defined for metainit number ( metainit d_number_ 1 1 c0t5d0s7) was higher than the limit _number_ allowed in the system configuration. The configuration file /kernel/drv/md.conf had to be changed regading the number you are willing to use ("nmd" parameter from 128 to your intended number). Changing kernel driver files requires a reboot.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink
SUN: service card scadm utility 
Path to scadm: /usr/platform/SUNW,Sun-Fire-V240/sbin

# ./scadm help


USAGE: scadm <command> [options]
For a list of commands, type "scadm help"

scadm - COMMANDS SUPPORTED
help, date, set, show, resetrsc, download, send_event, modem_setup,
useradd, userdel, usershow, userpassword, userperm, shownetwork,
loghistory, version

scadm - COMMAND DETAILS
scadm help => this message
scadm date [-s] | [[mmdd]HHMM | mmddHHMM[cc]yy][.SS] => print or set date
scadm set <variable> <value> => set variable to value
scadm show [variable] => show variable(s)
scadm resetrsc [-s] => reset SC (-s soft reset)
scadm download [boot] <file> => program firmware or [boot] monitor
scadm send_event [-c] "message" => send message as event (-c CRITICAL)
scadm modem_setup => connect to modem port
scadm useradd <username> => add SC user account
scadm userdel <username> => delete SC user account
scadm usershow [username] => show user details
scadm userpassword <username> => set user password
scadm userperm <username> [cuar] => set user permissions
scadm shownetwork => show network configuration
scadm loghistory => show SC event log
scadm version [-v] => show SC version (-v verbose)




[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Linux: recover deleted file which is still open by some process 

# rm /var/log/messages
# lsof -n -P -l | grep syslog
syslogd 6442 0 txt REG 3,6 35832 426222 /sbin/syslogd
# cd /proc/6442/fd
[root@vm02 fd]# ls -la
total 0
dr-x------ 2 root root 0 Apr 24 04:31 .
dr-xr-xr-x 5 root root 0 Nov 7 04:41 ..
lrwx------ 1 root root 64 Apr 24 04:31 0 -> socket:[59016]
l-wx------ 1 root root 64 Apr 24 04:31 1 -> /var/log/messages (deleted)
l-wx------ 1 root root 64 Apr 24 04:31 2 -> /var/log/secure
l-wx------ 1 root root 64 Apr 24 04:31 3 -> /var/log/maillog
l-wx------ 1 root root 64 Apr 24 04:31 4 -> /var/log/cron
l-wx------ 1 root root 64 Apr 24 04:31 5 -> /var/log/spooler
l-wx------ 1 root root 64 Apr 24 04:31 6 -> /var/log/boot.log
# cat 1
...
...
Dec 4 23:29:34 vm02 yum-updatesd-helper: error getting update info: rpmdb open failed
Dec 5 00:29:42 vm02 yum-updatesd-helper: error getting update info: rpmdb open failed


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Zdeněk Izer - stráž 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Paroubek na Marsu 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
WINrpe (nrpe) for Windows 
Other nrpe than nrpe_nt is available as Windows service to connect Nagios monitoring with Windows servers. More info is at: http://www.itefix.no/i2/winrpe.

[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Instantly create large file with dd command 
To create 180GB disk for VM issue:
dd if=/dev/zero of=space.img bs=1024 count=0 seek=$[1024*1000*180]

or
dd if=/dev/zero of=space.tmp bs=1G count=180 


[ add comment ]   |  [ 0 trackbacks ]   |  permalink
Linux HA crm_resource 
[root@cl1 ~]# crm_resource -L
resource_system2 (heartbeat::ocf:Xen)
resource_system3 (heartbeat::ocf:Xen)
resource_system4 (heartbeat::ocf:Xen)

[root@cl1 ~]# crm_mon
Defaulting to one-shot mode
You need to have curses available at compile time to enable console mode


============
Last updated: Tue Jul 7 11:33:27 2009
Current DC: cl1 (a9972101-4a50-4cb7-8dd6-91844a5d23e5)
2 Nodes configured.
3 Resources configured.
============

Node: cl2 (9f8ae28f-a1c4-43b3-8b13-374cc82d5be6): online
Node: cl1 (a9972101-4a50-4cb7-8dd6-91844a5d23e5): online

resource_system2 (heartbeat::ocf:Xen): Started cl2
resource_system3 (heartbeat::ocf:Xen): Started cl1
resource_system4 (heartbeat::ocf:Xen): Started cl2

[root@cl1 ~]# crm_resource --verbose --migrate --resource resource_system2

[root@cl1 ~]# crm_mon
Defaulting to one-shot mode
You need to have curses available at compile time to enable console mode


============
Last updated: Tue Jul 7 11:36:14 2009
Current DC: cl1 (a9972101-4a50-4cb7-8dd6-91844a5d23e5)
2 Nodes configured.
3 Resources configured.
============

Node: cl2 (9f8ae28f-a1c4-43b3-8b13-374cc82d5be6): online
Node: cl1 (a9972101-4a50-4cb7-8dd6-91844a5d23e5): online

resource_system2 (heartbeat::ocf:Xen): Started cl1
resource_system3 (heartbeat::ocf:Xen): Started cl2
resource_system4 (heartbeat::ocf:Xen): Started cl2

[root@cl1 ~]# crm_resource --un-migrate --resource resource_system2

[root@cl1 ~]# crm_mon
Defaulting to one-shot mode
You need to have curses available at compile time to enable console mode


============
Last updated: Tue Jul 7 11:39:20 2009
Current DC: cl1 (a9972101-4a50-4cb7-8dd6-91844a5d23e5)
2 Nodes configured.
3 Resources configured.
============

Node: cl2 (9f8ae28f-a1c4-43b3-8b13-374cc82d5be6): online
Node: cl1 (a9972101-4a50-4cb7-8dd6-91844a5d23e5): online

resource_system2 (heartbeat::ocf:Xen): Started cl2
resource_system3 (heartbeat::ocf:Xen): Started cl1
resource_system4 (heartbeat::ocf:Xen): Started cl2

[root@cl1 ~]# crm_resource --query-xml --resource resource_system2
resource_system2 (heartbeat::ocf:Xen): Started cl2
raw xml:
<primitive class="ocf" type="Xen" provider="heartbeat" id="resource_system2">
<meta_attributes id="resource_system2_meta_attrs">
<attributes>
<nvpair name="target_role" id="resource_system2_metaattr_target_role" value="started"/>
</attributes>
</meta_attributes>
<instance_attributes id="resource_system2_instance_attrs">
<attributes>
<nvpair id="2ad5bac8-69f0-4443-8ee3-2e13392f9c1d" name="xmfile" value="/etc/xen/system2"/>
<nvpair id="fddcde50-6717-4f10-8126-ecaf562b2a80" name="allow_migrate" value="1"/>
<nvpair id="1f2202e4-3df7-42e6-8d2f-a455908b2793" name="allow_mem_management" value="0"/>
<nvpair id="aea95d53-ae2b-44b2-85f6-e03239fce97d" name="reserved_Dom0_memory" value="512"/>
</attributes>
</instance_attributes>
</primitive>


[ 334 comments ] ( 78 views )   |  [ 0 trackbacks ]   |  permalink
Addin repository for OpenAFS to Centos 
http://www.nabble.com/adding-a-reposito ... 20485.html

[root@vm01 AFS]# wget http://dl.openafs.org/dl/openafs/1.4.10 ... noarch.rpm


[ add comment ]   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | Next> Last>>