I was trying to mount a CIFS (Samba) share from an Openindiana host,
-bash-4.0# mount -F smbfs //user:password@networkserver.my.domain/share /mnt/samba
I got this error
mount: //networkserver.my.domain/share: tree connect failed: syserr = No such file or directory
To solve this, I had to restart the samba client service.
svcadm restart svc:/network/smb/client:default
Wednesday, March 19, 2014
Wednesday, February 26, 2014
Fifo: vm reported as "provisioning", but it is false
Fifo: https://project-fifo.net
Why a VM status is reported as "Provisioning (Running)" even if it is already provisioned, and it is (only) running?
<killfill> that's because fifo knows if a vm is provisioning if the file 'provisioning' exists.
<killfill> Probably when creating the VM, the tools didn't wipe that file
<killfill> or maybe because you created it manually.. :P
<killfill> it's in /zones/:uuid/root/svc/ something like that.
<killfill> /zones/<uuid>/root/var/svc/provisioning
So, rm /zones/<uuid>/root/var/svc/provisioning
Et voilĂ .
Why a VM status is reported as "Provisioning (Running)" even if it is already provisioned, and it is (only) running?
<killfill> that's because fifo knows if a vm is provisioning if the file 'provisioning' exists.
<killfill> Probably when creating the VM, the tools didn't wipe that file
<killfill> or maybe because you created it manually.. :P
<killfill> it's in /zones/:uuid/root/svc/ something like that.
<killfill> /zones/<uuid>/root/var/svc/provisioning
So, rm /zones/<uuid>/root/var/svc/provisioning
Et voilĂ .
Friday, February 21, 2014
SmartOS: add (modify) the gateway to a zone
I often forget to add the gateway to a new created zone.
So, get the nic MAC address.
vmadm get zone-uuid | json -a nics.0.mac
52:d9:d7:ab:c7:56
Create a file, like /var/tmp/updategw.json
{
"update_nics": [
{
"mac": "52:d9:d7:ab:c7:56",
"gateway": "192.168.0.1"
}
]
}
Stop the zone, then issue an update.
vmadm update zone-uuid < /var/tmp/updategw.json
Verify.
vmadm get <zone-uuid> | json -a nics.0
Start the zone.
So, get the nic MAC address.
vmadm get zone-uuid | json -a nics.0.mac
52:d9:d7:ab:c7:56
Create a file, like /var/tmp/updategw.json
{
"update_nics": [
{
"mac": "52:d9:d7:ab:c7:56",
"gateway": "192.168.0.1"
}
]
}
Stop the zone, then issue an update.
vmadm update zone-uuid < /var/tmp/updategw.json
Verify.
vmadm get <zone-uuid> | json -a nics.0
Start the zone.
Monday, February 3, 2014
cisco vpn client and windows 8
So, the Cisco VPN client is not compatible with Windows 8. At least you must change various registry keys (I don't know).
A valid alternative is Shrew Soft VPNCLIENT
https://www.shrew.net/download/vpn
The Standard installation is free to use even for commercial use.
A valid alternative is Shrew Soft VPNCLIENT
https://www.shrew.net/download/vpn
The Standard installation is free to use even for commercial use.
Map sd names to Solaris disk names
Map sd names to Solaris (SmartOS, Openindiana) disk names
paste -d= <(iostat -x | awk 'NR>2{print $1}') <(iostat -nx | awk 'NR>2{print "/dev/dsk/"$11}')
https://stackoverflow.com/questions/555427/map-sd-sdd-names-to-solaris-disk-names
watchman under SmartOS
"A file watching service.
Purpose
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change."
https://github.com/facebook/watchman
You can find pkgsrc definitions, useful to build the package under SmartOS (pkgsrc on SmartOS - zone creation and basic builds) and a binary package to be installed using pkg_add
pkg_add watchman-2.9.1nb2.tgz
This is the link: https://github.com/alcir/watchman-pkgsrc
Purpose
Watchman exists to watch files and record when they actually change. It can also trigger actions (such as rebuilding assets) when matching files change."
https://github.com/facebook/watchman
You can find pkgsrc definitions, useful to build the package under SmartOS (pkgsrc on SmartOS - zone creation and basic builds) and a binary package to be installed using pkg_add
pkg_add watchman-2.9.1nb2.tgz
This is the link: https://github.com/alcir/watchman-pkgsrc
Tuesday, December 10, 2013
xtrabackup_55: Error writing file 'UNOPENED' (Errcode: 32)
SmartOS and percona-cluster-5.5.31nb3
Error in /var/log/mysql/error.log
WSREP_SST: [INFO] Streaming the backup to joiner at 192.168.0.5 4444 (20131210 11:16:26.461)
WSREP_SST: [ERROR] innobackupex finished with error: 3. Check /var/mysql//innobackup.backup.log (20131210 11:16:27.891)
WSREP_SST: [ERROR] Cleanup after exit with status:22 (20131210 11:16:27.912)
131210 11:16:27 [ERROR] WSREP: Failed to read from: wsrep_sst_xtrabackup --role 'donor' --address '192.168.0.5:4444/xtrabackup_sst' --auth 'sst:secret' --socket '/tmp/mysql.sock' --datadir '/var/mysql/' --defaults-file '/opt/local/etc/my.cnf' --gtid '6ceed930-6185-11e3-ae0d-8e7504b63f54:2'
131210 11:16:27 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role 'donor' --address '192.168.0.5:4444/xtrabackup_sst' --auth 'sst:secret' --socket '/tmp/mysql.sock' --datadir '/var/mysql/' --defaults-file '/opt/local/etc/my.cnf' --gtid '6ceed930-6185-11e3-ae0d-8e7504b63f54:2': 22 (Invalid argument)
131210 11:16:27 [Warning] WSREP: 0 (node1): State transfer to 1 (node2) failed: -1 (Not owner)
And in /var/mysql//innobackup.backup.log you see
xtrabackup_55: Error writing file 'UNOPENED' (Errcode: 32)
I've removed
[sst]
streamfmt = xbstream
from /opt/local/etc/my.cnf
Error in /var/log/mysql/error.log
WSREP_SST: [INFO] Streaming the backup to joiner at 192.168.0.5 4444 (20131210 11:16:26.461)
WSREP_SST: [ERROR] innobackupex finished with error: 3. Check /var/mysql//innobackup.backup.log (20131210 11:16:27.891)
WSREP_SST: [ERROR] Cleanup after exit with status:22 (20131210 11:16:27.912)
131210 11:16:27 [ERROR] WSREP: Failed to read from: wsrep_sst_xtrabackup --role 'donor' --address '192.168.0.5:4444/xtrabackup_sst' --auth 'sst:secret' --socket '/tmp/mysql.sock' --datadir '/var/mysql/' --defaults-file '/opt/local/etc/my.cnf' --gtid '6ceed930-6185-11e3-ae0d-8e7504b63f54:2'
131210 11:16:27 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup --role 'donor' --address '192.168.0.5:4444/xtrabackup_sst' --auth 'sst:secret' --socket '/tmp/mysql.sock' --datadir '/var/mysql/' --defaults-file '/opt/local/etc/my.cnf' --gtid '6ceed930-6185-11e3-ae0d-8e7504b63f54:2': 22 (Invalid argument)
131210 11:16:27 [Warning] WSREP: 0 (node1): State transfer to 1 (node2) failed: -1 (Not owner)
And in /var/mysql//innobackup.backup.log you see
xtrabackup_55: Error writing file 'UNOPENED' (Errcode: 32)
I've removed
[sst]
streamfmt = xbstream
from /opt/local/etc/my.cnf
Subscribe to:
Posts (Atom)
