VMWare and iSCSI 
Solaris iSCSI Target with ESX 3.02 Server

[ add comment ] ( 5 views )   |  [ 0 trackbacks ]   |  permalink
OpenSolaris Project: COMSTAR: Common Multiprotocol SCSI Target 
Quote: COMSTAR is a software framework that enables you to turn any OpenSolaris host into a SCSI target that can be accessed over the network by initiator hosts. COMSTAR breaks down the huge task of handling a SCSI target subsystem into independent functional modules. These modules are then glued together by the SCSI Target Mode Framework (STMF).

Quote: OpenSolaris Project: COMSTAR: Common Multiprotocol SCSI Target

COMSTAR Admin Guide

[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink
Solaris: disable automount for home directory 
Solaris uses the automounter daemon for mouning /home via /export/home by default install. To allow more friendly Linux behaviour (no need of automounter when users are local only):

# vi /etc/auto_home

comment out home tag

then restart the autofs service.

# svcadm restart autofs

You will be able to create and use the local /home/username directories now.


[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
Solaris installer can't see disks on ProLiant DL380 G5  
The installation of Free Solaris 10 5/08 will fail on HP Proliand DL 380 server because the installer wont find any disks. You have to apply additional kernel driver to Solaris. Then the installation will be able to access the disk.

Boot the Solaris Installation to the following (or similar) menu:
1. Solaris Interactive (default)
2. Custom JumpStart
3. Solaris Interactive Text (Desktop session)
4. Solaris Interactive Text (Console session)
5. Apply driver updates
6. Single user shell
Enter the number of your choice.


Connect the driver iso image (download link below) via Lights-Out or insert driver CD and select ( 5 ) “Apply driver updates” from the menu above. I had problems with the LAN adapters bnx0/1 as well, so just to correct it, after the installation type sys-unconfig or install the system without networking and then configure it later.

Download:

The Solaris on HP ProLiant deployment guide, HP Smart Array Controller Driver for Solaris 10

[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
Samba configuration II 
Samba configuration with Windows server acting as domain controller.

[global]
comment = samba.somedomain.com
interfaces = 192.xx.xx.xx
bind interfaces only = yes
workgroup = MYDOMAIN
security = domain
password server = winserver1.domain.com
wins server = 192.xx.xx.xx
encrypt passwords = yes
netbios name = SAMBA
name resolve order = host wins
username map = /etc/samba/username.map (map unix user names to win user domain names if differs)
domain master = no
obey pam restrictions = no
invalid users = root
deadtime = 15
debug timestamp = yes
hide dot files = yes
load printers = no
local master = no
log file = /var/samba/smb.log.%m
log level = 2
max log size = 50
preserve case = yes
short preserve case = yes
socket options = TCP_NODELAY
oplocks = no
level2 oplocks = no
kernel oplocks = no
inherit permissions = yes
;create mask = 0664
;force create mode = 0664
;directory mask = 0755
;force directory mode = 0755

[homes]
comment = Home Directories
writeable = yes
wide links = no
[share-one]
comment = Share one
path = /samba/share-one
writable = yes


Allow samba from local networks when firewalled:

iptables -A INPUT -i $LAN1_IFACE -p tcp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT
iptables -A INPUT -i $LAN2_IFACE -p tcp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT
iptables -A INPUT -i $LAN3_IFACE -p tcp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT
iptables -A INPUT -i tun0 -p tcp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT

iptables -A INPUT -i $LAN1_IFACE -p udp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT
iptables -A INPUT -i $LAN2_IFACE -p udp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT
iptables -A INPUT -i $LAN3_IFACE -p udp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT
iptables -A INPUT -i tun0 -p udp -m multiport --destination-ports 445,135,136,137,138,139,80 -j ACCEPT


[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink
Samba configuration 
Instalace Samby (zdroj: http://felipeferreira.net/?p=704)

Login in the server as root and do:

# yum install samba
# adduser share
# smbpasswd -a share
# smbpasswd -a root
# chkconfig –list |grep smb
# chkconfig –level 345 smb on

Otestovani funkce:
# smbclient -L //LOCALHOST

Simple Samba share only config. The unix group one is used to allow users to access the share-one.

[global]
force create mode = 760
force directory mode = 775
log level = 2
workgroup = MYGROUP
server string = Samba Server %v
interfaces = 127.0.0.1 192.xx.xx.xx
bind interfaces only = yes
hosts allow = 127.0.0.1 192.xx.xx.xx
# logs split per machine
log file = /var/log/samba/%m.log
max log size = 250
security = user
passdb backend = tdbsam

[homes]
comment = Home Directories
browseable = no
writable = yes

[verejna_slozka]
comment = verejna sdilena slozka
path = /samba/share-public
public = yes
writable = yes
printable = no
create mode = 775
create mask = 775

[share-one]
comment = sdilena slozka
path = /samba/share-one
valid users = @one (pro uzivate v unix skupine one)
public = no
writable = yes
printable = no
create mode = 775
create mask = 775

SElinux is turned off while running Samba.

[root@gw samba]# cat /etc/selinux/config

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing - SELinux security policy is enforced.
# permissive - SELinux prints warnings instead of enforcing.
# disabled - SELinux is fully disabled.
#SELINUX=enforcing
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted - Only targeted network daemons are protected.
# strict - Full SELinux protection.
#SELINUXTYPE=targeted

# SETLOCALDEFS= Check local definition changes
SETLOCALDEFS=0


Pro pridani uzivatele do samby jako root provest nasledujici:

# useradd -d /samba/home/uzivatel -l uzivatel
(vytvori UNIX zamceny ucet)
     
# smbpasswd –a uzivatel 
(vytvori samba ucet a prida heslo)

Pro zmenu hesla:

# smbpasswd uzivatel

-A INPUT -m state --state NEW -m tcp -p tcp --dport 137:139 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 137:139 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 445 -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 445 -j ACCEPT

Otestovani funkce:
# smbclient -L //LOCALHOST

From Windows test:
c:\net use p: \\<server>\<share> /user:<samba_user> <heslo>



[ add comment ] ( 5 views )   |  [ 0 trackbacks ]   |  permalink
ATLAS/LHC Sensors 


[ add comment ] ( 6 views )   |  [ 0 trackbacks ]   |  permalink
Dark Matter 






[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink
Solaris: Veritas and IO disk performance via iostat 
Solaris Performance Monitoring & Tuning - iostat , vmstat & netstat

Rules-of-thumb for monitoring Sun Solaris statistics


#!/usr/bin/bash
IO_LOG="/var/tmp/io_log.txt"
while true
do

date >> ${IO_LOG}
iostat -xdn 10 6 >> ${IO_LOG}
done


#!/usr/bin/bash

# this script parses the output and translates the disk path to VERITAS volume

# vc_t = average service time in milliseconds
# b% = percentage of time the disk is busy per interval

# I found some recommendation for Solaris the percentage
# busy should be less than 5% and the average service time
# less than 30 ms. If the numbers are below the treshold
# mentioned then a machine should perform io smoothly.
#

MAX_P_BUSY=4

cat io_log.txt | \
grep -v "extended" | \
grep -v "asvc_t" | \
grep -v "<<" | \
grep -v "0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0 0" | \
while read line
do
# grep for "MEST 2008" to get date timestamp
echo $line | grep "MEST 2008" > /dev/null
if [ $? -eq 1 ]; then

ASVC_T=`echo $line | awk -F" " '{ print $8 }'`;
P_BUSY=`echo $line | awk -F" " '{ print $10 }'`;
DEVICE_PATH=`echo $line | awk -F" " '{ print $11 }'`;

#echo $line
if [ $P_BUSY -gt $MAX_P_BUSY ]; then

VERITAS_PARTITION=`vxdisk path | grep ${DEVICE_PATH} | grep "dg" | awk -F" " '{ print $4 }' | gawk '{ sub(/dg/, ""); print }'`

echo -n "${TIME_ST}"
echo -n " VXDISK: ${VERITAS_PARTITION}"
echo -n " Service time: ${ASVC_T}"
echo -n " Percentage busy: ${P_BUSY}"
echo " Device path: ${DEVICE_PATH}"
fi

else
TIME_ST=`echo $line`
fi
done


[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink
Vista: powershell 1.0 





CommandType     Name                                                Definition
----------- ---- ----------
Cmdlet Add-Content Add-Content [-Path] <String[]> [-Value] <Object[...
Cmdlet Add-History Add-History [[-InputObject] <PSObject[]>] [-Pass...
Cmdlet Add-Member Add-Member [-MemberType] <PSMemberTypes> [-Name]...
Cmdlet Add-PSSnapin Add-PSSnapin [-Name] <String[]> [-PassThru] [-Ve...
Cmdlet Clear-Content Clear-Content [-Path] <String[]> [-Filter <Strin...
Cmdlet Clear-Item Clear-Item [-Path] <String[]> [-Force] [-Filter ...
Cmdlet Clear-ItemProperty Clear-ItemProperty [-Path] <String[]> [-Name] <S...
Cmdlet Clear-Variable Clear-Variable [-Name] <String[]> [-Include <Str...
Cmdlet Compare-Object Compare-Object [-ReferenceObject] <PSObject[]> [...
Cmdlet ConvertFrom-SecureString ConvertFrom-SecureString [-SecureString] <Secure...
Cmdlet Convert-Path Convert-Path [-Path] <String[]> [-Verbose] [-Deb...
Cmdlet ConvertTo-Html ConvertTo-Html [[-Property] <Object[]>] [-InputO...
Cmdlet ConvertTo-SecureString ConvertTo-SecureString [-String] <String> [[-Sec...
Cmdlet Copy-Item Copy-Item [-Path] <String[]> [[-Destination] <St...
Cmdlet Copy-ItemProperty Copy-ItemProperty [-Path] <String[]> [-Destinati...
Cmdlet Export-Alias Export-Alias [-Path] <String> [[-Name] <String[]...
Cmdlet Export-Clixml Export-Clixml [-Path] <String> [-Depth <Int32>] ...
Cmdlet Export-Console Export-Console [[-Path] <String>] [-Force] [-NoC...
Cmdlet Export-Csv Export-Csv [-Path] <String> -InputObject <PSObje...
Cmdlet ForEach-Object ForEach-Object [-Process] <ScriptBlock[]> [-Inpu...
Cmdlet Format-Custom Format-Custom [[-Property] <Object[]>] [-Depth <...
Cmdlet Format-List Format-List [[-Property] <Object[]>] [-GroupBy <...
Cmdlet Format-Table Format-Table [[-Property] <Object[]>] [-AutoSize...
Cmdlet Format-Wide Format-Wide [[-Property] <Object>] [-AutoSize] [...
Cmdlet Get-Acl Get-Acl [[-Path] <String[]>] [-Audit] [-Filter <...
Cmdlet Get-Alias Get-Alias [[-Name] <String[]>] [-Exclude <String...
Cmdlet Get-AuthenticodeSignature Get-AuthenticodeSignature [-FilePath] <String[]>...
Cmdlet Get-Command Get-Command [[-ArgumentList] <Object[]>] [-Verb ...
Cmdlet Get-Content Get-Content [-Path] <String[]> [-ReadCount <Int6...
Cmdlet Get-Credential Get-Credential [-Credential] <PSCredential> [-Ve...
Cmdlet Get-Culture Get-Culture [-Verbose] [-Debug] [-ErrorAction <A...
Cmdlet Get-Date Get-Date [[-Date] <DateTime>] [-Year <Int32>] [-...
Cmdlet Get-EventLog Get-EventLog [-LogName] <String> [-Newest <Int32...
Cmdlet Get-ExecutionPolicy Get-ExecutionPolicy [-Verbose] [-Debug] [-ErrorA...
Cmdlet Get-Help Get-Help [[-Name] <String>] [-Category <String[]...
Cmdlet Get-History Get-History [[-Id] <Int64[]>] [[-Count] <Int32>]...
Cmdlet Get-Host Get-Host [-Verbose] [-Debug] [-ErrorAction <Acti...
Cmdlet Get-ChildItem Get-ChildItem [[-Path] <String[]>] [[-Filter] <S...
Cmdlet Get-Item Get-Item [-Path] <String[]> [-Filter <String>] [...
Cmdlet Get-ItemProperty Get-ItemProperty [-Path] <String[]> [[-Name] <St...
Cmdlet Get-Location Get-Location [-PSProvider <String[]>] [-PSDrive ...
Cmdlet Get-Member Get-Member [[-Name] <String[]>] [-InputObject <P...
Cmdlet Get-PfxCertificate Get-PfxCertificate [-FilePath] <String[]> [-Verb...
Cmdlet Get-Process Get-Process [[-Name] <String[]>] [-Verbose] [-De...
Cmdlet Get-PSDrive Get-PSDrive [[-Name] <String[]>] [-Scope <String...
Cmdlet Get-PSProvider Get-PSProvider [[-PSProvider] <String[]>] [-Verb...
Cmdlet Get-PSSnapin Get-PSSnapin [[-Name] <String[]>] [-Registered] ...
Cmdlet Get-Service Get-Service [[-Name] <String[]>] [-Include <Stri...
Cmdlet Get-TraceSource Get-TraceSource [[-Name] <String[]>] [-Verbose] ...
Cmdlet Get-UICulture Get-UICulture [-Verbose] [-Debug] [-ErrorAction ...
Cmdlet Get-Unique Get-Unique [-InputObject <PSObject>] [-AsString]...
Cmdlet Get-Variable Get-Variable [[-Name] <String[]>] [-ValueOnly] [...
Cmdlet Get-WmiObject Get-WmiObject [-Class] <String> [[-Property] <St...
Cmdlet Group-Object Group-Object [[-Property] <Object[]>] [-NoElemen...
Cmdlet Import-Alias Import-Alias [-Path] <String> [-Scope <String>] ...
Cmdlet Import-Clixml Import-Clixml [-Path] <String[]> [-Verbose] [-De...
Cmdlet Import-Csv Import-Csv [-Path] <String[]> [-Verbose] [-Debug...
Cmdlet Invoke-Expression Invoke-Expression [-Command] <String> [-Verbose]...
Cmdlet Invoke-History Invoke-History [[-Id] <String>] [-Verbose] [-Deb...
Cmdlet Invoke-Item Invoke-Item [-Path] <String[]> [-Filter <String>...
Cmdlet Join-Path Join-Path [-Path] <String[]> [-ChildPath] <Strin...
Cmdlet Measure-Command Measure-Command [-Expression] <ScriptBlock> [-In...
Cmdlet Measure-Object Measure-Object [[-Property] <String[]>] [-InputO...
Cmdlet Move-Item Move-Item [-Path] <String[]> [[-Destination] <St...
Cmdlet Move-ItemProperty Move-ItemProperty [-Path] <String[]> [-Destinati...
Cmdlet New-Alias New-Alias [-Name] <String> [-Value] <String> [-D...
Cmdlet New-Item New-Item [-Path] <String[]> [-ItemType <String>]...
Cmdlet New-ItemProperty New-ItemProperty [-Path] <String[]> [-Name] <Str...
Cmdlet New-Object New-Object [-TypeName] <String> [[-ArgumentList]...
Cmdlet New-PSDrive New-PSDrive [-Name] <String> [-PSProvider] <Stri...
Cmdlet New-Service New-Service [-Name] <String> [-BinaryPathName] <...
Cmdlet New-TimeSpan New-TimeSpan [[-Start] <DateTime>] [[-End] <Date...
Cmdlet New-Variable New-Variable [-Name] <String> [[-Value] <Object>...
Cmdlet Out-Default Out-Default [-InputObject <PSObject>] [-Verbose]...
Cmdlet Out-File Out-File [-FilePath] <String> [[-Encoding] <Stri...
Cmdlet Out-Host Out-Host [-Paging] [-InputObject <PSObject>] [-V...
Cmdlet Out-Null Out-Null [-InputObject <PSObject>] [-Verbose] [-...
Cmdlet Out-Printer Out-Printer [[-Name] <String>] [-InputObject <PS...
Cmdlet Out-String Out-String [-Stream] [-Width <Int32>] [-InputObj...
Cmdlet Pop-Location Pop-Location [-PassThru] [-StackName <String>] [...
Cmdlet Push-Location Push-Location [[-Path] <String>] [-PassThru] [-S...
Cmdlet Read-Host Read-Host [[-Prompt] <Object>] [-AsSecureString]...
Cmdlet Remove-Item Remove-Item [-Path] <String[]> [-Filter <String>...
Cmdlet Remove-ItemProperty Remove-ItemProperty [-Path] <String[]> [-Name] <...
Cmdlet Remove-PSDrive Remove-PSDrive [-Name] <String[]> [-PSProvider <...
Cmdlet Remove-PSSnapin Remove-PSSnapin [-Name] <String[]> [-PassThru] [...
Cmdlet Remove-Variable Remove-Variable [-Name] <String[]> [-Include <St...
Cmdlet Rename-Item Rename-Item [-Path] <String> [-NewName] <String>...
Cmdlet Rename-ItemProperty Rename-ItemProperty [-Path] <String> [-Name] <St...
Cmdlet Resolve-Path Resolve-Path [-Path] <String[]> [-Credential <PS...
Cmdlet Restart-Service Restart-Service [-Name] <String[]> [-Force] [-Pa...
Cmdlet Resume-Service Resume-Service [-Name] <String[]> [-PassThru] [-...
Cmdlet Select-Object Select-Object [[-Property] <Object[]>] [-InputOb...
Cmdlet Select-String Select-String [-Pattern] <String[]> -InputObject...
Cmdlet Set-Acl Set-Acl [-Path] <String[]> [-AclObject] <ObjectS...
Cmdlet Set-Alias Set-Alias [-Name] <String> [-Value] <String> [-D...
Cmdlet Set-AuthenticodeSignature Set-AuthenticodeSignature [-FilePath] <String[]>...
Cmdlet Set-Content Set-Content [-Path] <String[]> [-Value] <Object[...
Cmdlet Set-Date Set-Date [-Date] <DateTime> [-DisplayHint <Displ...
Cmdlet Set-ExecutionPolicy Set-ExecutionPolicy [-ExecutionPolicy] <Executio...
Cmdlet Set-Item Set-Item [-Path] <String[]> [[-Value] <Object>] ...
Cmdlet Set-ItemProperty Set-ItemProperty [-Path] <String[]> [-Name] <Str...
Cmdlet Set-Location Set-Location [[-Path] <String>] [-PassThru] [-Ve...
Cmdlet Set-PSDebug Set-PSDebug [-Trace <Int32>] [-Step] [-Strict] [...
Cmdlet Set-Service Set-Service [-Name] <String> [-DisplayName <Stri...
Cmdlet Set-TraceSource Set-TraceSource [-Name] <String[]> [[-Option] <P...
Cmdlet Set-Variable Set-Variable [-Name] <String[]> [[-Value] <Objec...
Cmdlet Sort-Object Sort-Object [[-Property] <Object[]>] [-Descendin...
Cmdlet Split-Path Split-Path [-Path] <String[]> [-LiteralPath <Str...
Cmdlet Start-Service Start-Service [-Name] <String[]> [-PassThru] [-I...
Cmdlet Start-Sleep Start-Sleep [-Seconds] <Int32> [-Verbose] [-Debu...
Cmdlet Start-Transcript Start-Transcript [[-Path] <String>] [-Append] [-...
Cmdlet Stop-Process Stop-Process [-Id] <Int32[]> [-PassThru] [-Verbo...
Cmdlet Stop-Service Stop-Service [-Name] <String[]> [-Force] [-PassT...
Cmdlet Stop-Transcript Stop-Transcript [-Verbose] [-Debug] [-ErrorActio...
Cmdlet Suspend-Service Suspend-Service [-Name] <String[]> [-PassThru] [...
Cmdlet Tee-Object Tee-Object [-FilePath] <String> [-InputObject <P...
Cmdlet Test-Path Test-Path [-Path] <String[]> [-Filter <String>] ...
Cmdlet Trace-Command Trace-Command [-Name] <String[]> [-Expression] <...
Cmdlet Update-FormatData Update-FormatData [[-AppendPath] <String[]>] [-P...
Cmdlet Update-TypeData Update-TypeData [[-AppendPath] <String[]>] [-Pre...
Cmdlet Where-Object Where-Object [-FilterScript] <ScriptBlock> [-Inp...
Cmdlet Write-Debug Write-Debug [-Message] <String> [-Verbose] [-Deb...
Cmdlet Write-Error Write-Error [-Message] <String> [-Category <Erro...
Cmdlet Write-Host Write-Host [[-Object] <Object>] [-NoNewline] [-S...
Cmdlet Write-Output Write-Output [-InputObject] <PSObject[]> [-Verbo...
Cmdlet Write-Progress Write-Progress [-Activity] <String> [-Status] <S...
Cmdlet Write-Verbose Write-Verbose [-Message] <String> [-Verbose] [-D...
Cmdlet Write-Warning Write-Warning [-Message] <String> [-Verbose] [-D...


[ add comment ] ( 4 views )   |  [ 0 trackbacks ]   |  permalink

<<First <Back | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 62 | 63 | 64 | Next> Last>>