If you ever get a linux on continuous reboot for some kind of 'virtual hardware' issue, it could be a real nag!!
# VBoxManage setextradata <VMNAME> "VBoxInternal/PDM/HaltOnReset" 1
This will do the trick!!
[ trackback ]
Configs or settings that were hard to find, or messy in getting to... for future personal reference.
Tuesday, November 12, 2013
Tuesday, October 29, 2013
Re-attach NFS share on ESX after connection loss
ESXi 5.x
To remove a datastore:
1. To list the mounted datastores on the host:
# esxcli storage nfs list
# esxcli storage nfs list
2. Make a note of the NFS datastore from step 1. Run this command to delete the NFS mount:
# esxcli storage nfs remove -v NFS_Datastore_Name
Note: This operation does not delete the information on the share, it unmounts the share from the host. If the NFS datastore is being used by either a virtual machine or a third party script, you may see this error:
Error performing operation: NFS Error: Unable to Unmount filesystem: Busy.
# esxcli storage nfs remove -v NFS_Datastore_Name
Note: This operation does not delete the information on the share, it unmounts the share from the host. If the NFS datastore is being used by either a virtual machine or a third party script, you may see this error:
Error performing operation: NFS Error: Unable to Unmount filesystem: Busy.
3. To add the datastore, run this command to mount the NFS datastore:
# esxcli storage nfs add -H NFS_IP|NFS_HOSTNAME -s Share_mount_point_on_the_NFS -v DatastoreName
On a working cluster, you only need to do this on one node, the others will pickup.
[ trackback ]
Monday, July 22, 2013
BASH redirection
1>filename
# Redirect stdout to file "filename."
1>>filename
# Redirect and append stdout to file "filename."
2>filename
# Redirect stderr to file "filename."
2>>filename
# Redirect and append stderr to file "filename."
&>filename
# Redirect both stdout and stderr to file "filename."
# This operator is now functional, as of Bash 4,
# final release.
M>N
# "M" is a file descriptor, which defaults to 1,
# if not explicitly set.
# "N" is a filename.
# File descriptor "M" is redirect to file "N."
M>&N
# "M" is a file descriptor, which defaults to 1,
# if not set.
# "N" is another file descriptor.
And there you go :-)
[ trackback ]
Wednesday, April 10, 2013
Thursday, October 25, 2012
External NTP sync for Domain Controllers
Long time, no see.
One more for the road :-)
This is to be done on the PDC emulator, usually your 1st DC.
1. Set registry values
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer [STRING] = "1st.fqdn.or.ip,0x1 2nd.fqdn.or.ip,0x1"
(space separated string, with ',0x1' after each entry)
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\ReliableTimeSource [DWORD] = 1
(if this doesn't exist, don't create it)
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\LocalNTP [DWORD] = 0
(if this doesn't exist, don't create it)
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags [DWORD] = 5
2. Restart w32time
net stop w32time && net start w32time
3. Resync the time service
w32tm /resync /rediscover
4. Verify sync
w32tm /query /status
[ trackback ]
One more for the road :-)
This is to be done on the PDC emulator, usually your 1st DC.
1. Set registry values
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\NtpServer [STRING] = "1st.fqdn.or.ip,0x1 2nd.fqdn.or.ip,0x1"
(space separated string, with ',0x1' after each entry)
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\ReliableTimeSource [DWORD] = 1
(if this doesn't exist, don't create it)
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Parameters\LocalNTP [DWORD] = 0
(if this doesn't exist, don't create it)
HKLM\SYSTEM\CurrentControlSet\Services\W32Time\Config\AnnounceFlags [DWORD] = 5
2. Restart w32time
net stop w32time && net start w32time
3. Resync the time service
w32tm /resync /rediscover
4. Verify sync
w32tm /query /status
[ trackback ]
Monday, May 2, 2011
Move Gnome panel between monitors
- Right-click the panel you wish to move and select “Properties”.
- Uncheck the “Expand” option under the “General” tab.
- Grab one of the edges of the panel by clicking on the left or right end (top or bottom end for vertical panels).
- Drag the bar to the desired screen and position.
- Check the “Expand” option in the “Panel Properties” window and click “Close”.
[ trackback ]
Thursday, February 3, 2011
SNMPCONFPATH
Using snmp utils for win32... where to put snmp*.conf?
Anywhere you want, just as long as you set env variable SNMPCONFPATH to wherever you place them.
Simple, hum??
Anywhere you want, just as long as you set env variable SNMPCONFPATH to wherever you place them.
Simple, hum??
Subscribe to:
Posts (Atom)