afsctool -c /some/directory
this compresses the directory online!
some Unix notes
afsctool -c /some/directory
this compresses the directory online!
*WARNING* *WARNING* *WARNING*
*USE WITH EXTREME CARE!!!!!!!!!!!!*
This will delete slices 0,1,3,4,5,6 of many disks (all your “emcpower*” disks) in your solaris system:
echo | format | grep -i emcpower | awk '{ print $2 }'| while read d;do printf "p\np\n0\n\n\n0\n0\nlabel\ny\nquit\n" |format -d $d printf "p\np\n1\n\n\n0\n0\nlabel\ny\nquit\n" |format -d $d printf "p\np\n3\n\n\n0\n0\nlabel\ny\nquit\n" |format -d $d printf "p\np\n4\n\n\n0\n0\nlabel\ny\nquit\n" |format -d $d printf "p\np\n5\n\n\n0\n0\nlabel\ny\nquit\n" |format -d $d printf "p\np\n6\n\n\n0\n0\nlabel\ny\nquit\n" |format -d $d done
cp /etc/vx/disk.info /etc/vx/disk.info.old
echo > /etc/vx/disk.info
vxconfigd -k
vxdisk -o alldgs list
powermt check force
perl -MFile::Find=find -MFile::Spec::Functions -Tlwe 'find { wanted => sub { print canonpath $_ if /\.pm\z/ }, no_chdir => 1 }, @INC'
if you want a quick web proxy for your browsers or for anything, you can define a virtualhost in apache2 as follows:
Listen *:8080 <VirtualHost *:8080> ProxyRequests On ProxyVia On <Proxy *> Order deny,allow Allow from all </Proxy> CacheRoot "/tmp" CacheMaxExpire 24 CacheLastModifiedFactor 0.1 CacheDefaultExpire 1 ServerName my-proxy ErrorLog "/opt/csw/apache2/var/log/proxy-error.log" CustomLog "/opt/csw/apache2/var/log/proxy-access.log" common </VirtualHost>
To have the rawdevices in /dev/raw/* have permissions set at reboot, you can add a line to /etc/udev/rules.d/60-raw.rules
added ACTION="add", KERNEL=="raw*", OWNER="informix", GROUP="informix", MODE="0600"
Thx to Justin Lim
Make sure you have the dscp addresses configured in the xscf
XSCF> showdscp
DSCP Configuration:
Network: 192.168.224.0
Netmask: 255.255.255.0
Location Address
———- ———
XSCF 192.168.224.1
Domain #00 192.168.224.2
Domain #01 192.168.224.3
Domain #02 192.168.224.4
Domain #03 192.168.224.5
Domain #04 192.168.224.6
Domain #05 192.168.224.7
Domain #06 192.168.224.8
Domain #07 192.168.224.9
Domain #08 192.168.224.10
Domain #09 192.168.224.11
Domain #10 192.168.224.12
Domain #11 192.168.224.13
Domain #12 192.168.224.14
Domain #13 192.168.224.15
Domain #14 192.168.224.16
Domain #15 192.168.224.17
Domain #16 192.168.224.18
Domain #17 192.168.224.19
Domain #18 192.168.224.20
Domain #19 192.168.224.21
Domain #20 192.168.224.22
Domain #21 192.168.224.23
Domain #22 192.168.224.24
Domain #23 192.168.224.25
To enable the internal network nic sppp0 in a domain:
svcadm enable svc:/platform/sun4u/dscp:default
To enable the dynamic reconfiguration in a domain:
svcadm enable svc:/platform/sun4u/dcs:default
See the sppp0 nic with the address
sppp0: flags=10010008d1 mtu 1500 index 8
inet 192.168.224.6 –> 192.168.224.1 netmask ffffff00
ether 0:0:0:0:0:0
a test to see if communication is ok, from the XSCF run:
XSCF> showdevices -d 0
you can run a non interactive ssh session and pull it to the local host, leave the tunnel running in the background
nohup ssh -g -L 8080:localhost:8080 root@jump -N &
to let the tsm client save its password you can add this option to /opt/tivoli/tsm/client/ba/bin/dsm.sys:
PASSWORDACCESS generate