afsctool -c /some/directory
this compresses the directory online!
some Unix notes
afsctool -c /some/directory
this compresses the directory online!
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
If when you want to remove a XSB from a domain you get the message that the OS disks are being used by VxVM, and you know they’re not:
XSCF> deleteboard -c disconnect 09-0 XSB#09-0 will be unconfigured from domain immediately. Continue?[y|n] :y Start unconfiguring XSB from domain. Resource Information ------------------ ------------------------- /dev/dsk/c1t0d0s2 Device being used by VxVM /dev/dsk/c1t1d0s2 Device being used by VxVM XSB#09-0 could not be unconfigured from DomainID 2 due to operating system error.
The message “Device being used by VxVM” can be a bit misleading. They are not in use by VxVM, they’re in use by VxDMP!!!!
To remove this dependency you need to remove them from dmp by doing something like:
vxdisk -o alldgs list | egrep '^c0|^c1' | awk '{ print $1 }' | while read d;do vxdmpadm -f disable path=$d; done
After this you can remove the XSB using “deleteboard -c disconnect” without the “device being used by vxvm” error message ![]()