Monday, October 26, 2020

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny percentage of 3D modelers in the world probably already have a sensible way to store their files.  This is up there with the "Briefcase" in Windows 95.

Even worse, there's nothing exposed in the UI to hide this and other annoying folders.  If you're like me (you probably are if you found this page) then you want to know how to clean up these items.  There are a few articles out there already, but most want you to manually navigate the regedit UI which takes a little while.

Instead, you can just copy/pasta these lines into an administrator command prompt or powershell and be done!

Simply copy the whole script, or do each individual line.  If you get an access denied error, please make sure you are running the shell as administrator.

Wednesday, February 12, 2020

OneDrive won't start on Windows 10

Recently I was helping a colleague set up OneDrive on a new Windows 10 laptop.  He installed it correctly, but it didn't open.  He restarted, uninstalled, reinstalled...still it did not open.

There were a number of items preventing it from starting:

  1. Blocked by Group Policy
  2. Blocked by Registry Key

Please see each heading below for tips to fix your OneDrive installation.  There's one more tip at the end.

Blocked by Group Policy





Steps to resolve:
  1. Right-click on the Start button, Choose Run (or Windows + R)
  2. Type "gpedit.msc", click OK
  3. Click the following items in the tree
    1. Computer Configuration
      1. Administrative Templates
        1. Windows Components
          1. OneDrive
  4. Inspect the settings in the pane to the right.  If the "Prevent usage of OneDrive for file storage" is "Enabled"  (like the screenshot above) then this is preventing you using OneDrive.
  5. Change this setting to either "Not Configured" or "Disabled"
  6. Verify that the setting applied correctly
  7. Close the "Local Group Policy Editor"
  8. Right-click on the Start button, Choose Run (or Windows + R)
  9. Type "gpupdate", click OK
  10. Wait for the command to complete

Blocked by Registry Key

  1. Right-click on the Start button, Choose Run (or Windows + R)
  2. Type "regedit", click OK
  3. Navigate to HKEY_LOCAL_MACHINE\Software\Policies\Microsoft\Windows\OneDrive
  4. Make sure "DisableFileSyncNGSC" is set to "0".
    1. If the registry key doesn't exist, that is okay.  You can just skip this step.
Once you have completed both items, try to launch OneDrive.  If you're still having issues there's one final trick you can try - resetting OneDrive.

Resetting OneDrive

  1. Right-click on the Start button, Choose Run (or Windows + R)
  2. Copy this and paste it into the dialog window then press OK. "%localappdata%\Microsoft\OneDrive\onedrive.exe /reset"
  3. Manually start OneDrive from the Start Menu

Friday, February 6, 2015

Lync: Appear Offline Status

Back in the LCS and OCS days, you could have a status called "Appear Offline" which allowed you to function if you were online, but people wouldn't know it.  Now this option is hidden, but you can re-enable it manually if you edit the registry.

Manually Create

  • Run regedit
  • Go to "HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft"
  • Create a new key "Communicator"
  • Create a dword "EnableAppearOffline"
  • Set the vecimal value of "EnableAppearOffline" to 1

Create via .reg file


  • Open Notepad
  • Copy and paste the text below into notepad
  • Save as a .reg
  • Open the .reg file and import


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Communicator]
"EnableAppearOffline"=dword:00000001



Before

After

Tuesday, January 20, 2015

Windows 7 Brightness Not working - Dell Precision - M4600/6600 nVidia Optimus


If you have Windows 7, a Dell Precision Laptop with nVidia Quadro 1000M or 2000M with Optimus enabled and your brightness is not working...add this registry key and restart.


Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"FeatureTestControl"=dword:0000ffff
"KMD_EnableBrightnessInterface2"=dword:00000000
"KMD_EnableBrightnesslf2"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0001]
"FeatureTestControl"=dword:0000ffff

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\intelkmd]
"FeatureTestControl"=dword:0000ffff

Tuesday, November 4, 2014

Adobe Reader - Hide Tools Pane

One of the most annoying things about the latest version(s) of Adobe Reader is the stupid tools pane.  Sure, it's helpful when you need it.

Unfortunately, Adobe makes it show up every time you open Reader.

Sure, you can click "Tools" to turn it off - but there is nowhere in the application to actually keep it off permanently.

Fortunately, there is a registry key to fix this issue.  Set the following registry key to 1:

[HKEY_CURRENT_USER\Software\Adobe\Acrobat Reader\11.0\AVGeneral\cTaskPanes]
"irightPaneState"=dword:00000001

Now, open your document, click "Tools" to hide the pane, and close Reader.

Now, open the document again.  The Tools pane should no longer appear.


Thursday, October 23, 2014

Windows 8.1 Brightness Fix - Intel HD Graphics 3000

So I updated to Windows 8.1 because I figured it's been out long enough and the vendors got the driver issues fixed...apparently not!  A day later, I realized I was no longer able to adjust my screen brightness.  My laptop has two video cards, but the internal screen is driven by the Intel HD Graphics 3000 / 3000M.

So, I downloaded the latest driver from Intel's website - no dice.  I uninstalled the driver entirely, and found that the built-in Windows standard/generic graphic driver works for brightness.  However, the external VGA port doesn't work using that driver, and since it's a generic driver it obviously doesn't perform well.

Luckily, I found a fix for the issue - a simple reg hack.  Make a text file in notepad and paste the following into it:

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0000]
"FeatureTestControl"=dword:0000ffff
"KMD_EnableBrightnessInterface2"=dword:00000000
"KMD_EnableBrightnesslf2"=dword:00000000

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\Class\{4d36e968-e325-11ce-bfc1-08002be10318}\0001]
"FeatureTestControl"=dword:0000ffff

[HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\intelkmd]
"FeatureTestControl"=dword:0000ffff

Save the file as HD3000MFix.reg or something, double-click to import it and reboot.

Brightness control works now!

Monday, October 13, 2014

How to tell if VAAI is working

So - you have a new array and want to make sure VAAI is working?



  1. Open up a SSH session to your ESX host upon which the VM you want to test is running
  2. Run "esxtop"
  3. Press "u"
  4. Press "f"
  5. Press "b,f,g,i,o"
  6. Drag your session window wider so you can see all the columns
  7. Start a storage VMotion in a supported fashion from your array vendor
  8. Look for the CLONE_RD, CLONE_WR statistics on the datastore(s) in question.  If VAAI is working correctly, these numbers should increment

Wednesday, October 8, 2014

NetApp Sysstat CP Type

The CP type will give you important information about the health of the ability of the system to write.
Basically, you want to avoid Bs and bs.  B means bad.  B means back to back CP, which means the disks can't keep up with the write workload.
B = Bad
b = even more bad

If you have a B or a b, you need more disks in the aggregate to be able to keep up with the writes.
CP Ty : Consistency Point (CP) type is the reason that a CP started in that interval. The CP types are as follows:
  • - No CP started during sampling interval (no writes happened to disk at this point of time)
  • number Number of CPs started during sampling interval
  • B Back to back CPs (CP generated CP) (The filer is having a tough time keeping up with writes)
  • b Deferred back to back CPs (CP generated CP) (the back to back condition is getting worse)
  • F CP caused by full NVLog (one half of the nvram log was full, and so was flushed)
  • H CP caused by high water mark (rare to see this. The filer was at half way full on one side of the nvram logs, so decides to write on disk).
  • L CP caused by low water mark
  • S CP caused by snapshot operation
  • T CP caused by timer (every 10 seconds filer data is flushed to disk)
  • U CP caused by flush
  • : continuation of CP from previous interval (means, A cp is still going on, during 1 second intervals)
The type character is followed by a second character which indicates the phase of the CP at the end of the sampling interval. If the CP completed during the sampling interval, this second character will be blank. The phases are as follows:
  • 0 Initializing
  • n Processing normal files
  • s Processing special files
  • f Flushing modified data to disk
  • v Flushing modified superblock to disk
CP util : The Consistency Point (CP) utilization, the % of time spent in a CP.  100% time in CP is a good thing. It means, the amount of time, used out of the cpu, that was dedicated to writing data, 100% of it was used. 75% means, that only 75% of the time allocated to writing data was utilized, which means we wasted 25% of that time. A good CP percentage has to be at or near 100%.

NetApp Create a junction path on a CDOT vserver / SVM

Create a junction path manually on a NetApp Cluster-Mode/C-Mode/CDOT System

If you use the GUI to set up the SVM, it does not prompt you to create a data volume the same way as the CLI.  Therefore, the "/vol" directory is missing and you are unable to mount volumes on a junction path /vol.

This is as simple as creating a directory, unfortunately it's not not easy.

The only way I've found to do this is to re-run the vserver setup wizard on the command line, use the same vserver name (don't worry it won't affect the running vceter) and then accept all the defaults, and create a data volume as /vol/volname.

Once it has created the volume, CTRL-C out of the wizard, delete the temporary volume, and mount your volumes on the "/vol/" junction path!

cluster::> vserver setup
Welcome to the Vserver Setup Wizard, which will lead you through 
the steps to create a virtual storage server that serves data to clients.

You can enter the following commands at any time:
"help" or "?" if you want to have a question clarified,
"back" if you want to change your answers to previous questions, and 
"exit" if you want to quit the Vserver Setup Wizard. Any changes 
you made before typing "exit" will be applied.

You can restart the Vserver Setup Wizard by typing "vserver setup". To accept a default 
or omit a question, do not enter a value.

Vserver Setup wizard creates and configures only data Vservers.
If you want to create a Vserver with Infinite Volume use the vserver create command.


Step 1. Create a Vserver.
You can type "back", "exit", or "help" at any question.

Enter the Vserver name: [CURRENT-VSERVER-NAME]
Choose the Vserver data protocols to be configured {nfs, cifs, fcp, iscsi, ndmp} [nfs,cifs,fcp,iscsi]: [HIT ENTER]
Choose the Vserver client services to be configured {ldap, nis, dns}: [HIT ENTER]
Vserver SVMNAME's allowed protocol list has been modified to nfs,cifs,fcp,iscsi


Step 2: Create a data volume 
You can type "back", "exit", or "help" at any question.

Do you want to create a data volume? {yes, no} [yes]: [HIT ENTER]
Enter the volume name [vol9]: [HIT ENTER]
Enter the name of the aggregate to contain this volume {AGGR1, AGG2} [AGGR2]: [HIT ENTER]
Enter the volume size: [SOME SMALL SIZE LIKE 2G]
Enter the volume junction path [/vol/vol9]: [HIT ENTER]
It can take up to a minute to create a volume...


Volume vol9 of size 2GB created on aggregate AGGR2 successfully.
Do you want to create an additional data volume? {yes, no} [no]:[HIT CTRL-C] 

Exiting the vserver setup wizard. Any changes you have made so far have been saved.

Warning: You have exited the vserver setup wizard before completing all
of the tasks. The vserver is not configured completely. You can complete setup
by typing "vserver setup" in the command line interface.

cluster::> vol mount -volume VOLNAME -junction-path /vol/volname
  (volume mount)

Tuesday, October 7, 2014

NetApp DataFabric / OnCommand Unified Manager 5.x - DFM Sybase ASA Database service won't start

NetApp DataFabric / OnCommand Unified Manager 5.x - DFM Sybase ASA Database service won't start

Symptoms:

You won't be able to log into DFM...but the web server is running.  When attempting to log in you get the following error:

Could not connect to host "SERVERNAME" on port 8488.

=== CLIENT ===
Version=3.3.0.8036
Build=3.3P2
OS Name=Windows Server 2008 R2
OS Arch=x86
OS Version=6.1

=== ERROR ===
com.netapp.nmf.main.ConnectionRefusedException

=== MESSAGE ===
Could not connect to host "SERVERNAME" on port 8488.

=== DETAILS ===
The server refused a connection on the indicated port.  This means that there is no network service listening on that port.

The default server ports for DataFabric Manager server are 8088 for HTTP and 8488 for HTTPS.

=== CORRECTIVE ACTION ===
Check that the port number you entered is correct.  If it is correct, make sure the service is started on the server for the port you specified.

=== STACK TRACE ===
com.netapp.nmf.main.ConnectionRefusedException: Could not connect to host "accs001mgt01.accs.int" on port 8488.
at com.netapp.nmf.main.ConnectionException.createException(ConnectionException.java:60)
at com.netapp.nmf.main.DialogApiManager.displayErrorDialog(DialogApiManager.java:720)
at com.netapp.nmf.main.DialogApiManager.showLoginDialog(DialogApiManager.java:221)
at com.netapp.nmf.main.SumoMainFrame.doInitialLogin(SumoMainFrame.java:179)
at com.netapp.nmf.main.SumoMainFrame.<init>(SumoMainFrame.java:149)
at com.netapp.nmf.main.SumoMainComponent.initFrame(SumoMainComponent.java:21)
at com.netapp.nmf.main.MainPlugin.initFrame(MainPlugin.java:637)
at com.netapp.nmf.main.MainPlugin.createAndShowGUI(MainPlugin.java:237)
at com.netapp.nmf.main.MainPlugin$2.run(MainPlugin.java:715)
at java.awt.event.InvocationEvent.dispatch(Unknown Source)
at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
at java.awt.EventQueue.access$000(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.awt.EventQueue$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Caused by: netapp.sumo.toolkit.zephyr.NaIOException: java.net.ConnectException: Connection refused: connect
at netapp.sumo.toolkit.zephyr.ZephyrServer.invoke(ZephyrServer.java:277)
at netapp.sumo.toolkit.zephyr.SimpleApiManager.getResult(SimpleApiManager.java:25)
at netapp.sumo.toolkit.zephyr.LoggingApiManager.getResult(LoggingApiManager.java:116)
at netapp.sumo.toolkit.zephyr.SharedCredentialApiManager.getResult(SharedCredentialApiManager.java:79)
at com.netapp.nmf.main.DialogApiManager.access$401(DialogApiManager.java:48)
at com.netapp.nmf.main.DialogApiManager$RequestContext.callApiSuper(DialogApiManager.java:881)
at com.netapp.nmf.main.DialogApiManager.getServerInfo(DialogApiManager.java:469)
at com.netapp.nmf.main.DialogApiManager.access$000(DialogApiManager.java:48)
at com.netapp.nmf.main.DialogApiManager$1.sendRequest(DialogApiManager.java:434)
at com.netapp.nmf.main.DialogApiManager$1.sendRequest(DialogApiManager.java:431)
at com.netapp.nmf.userinterface.util.task.ServerTask$1.run(ServerTask.java:47)
at foxtrot.AbstractWorkerThread$1.run(AbstractWorkerThread.java:39)
at java.security.AccessController.doPrivileged(Native Method)
at foxtrot.AbstractWorkerThread.runTask(AbstractWorkerThread.java:35)
at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:196)
at foxtrot.workers.SingleWorkerThread.run(SingleWorkerThread.java:179)
at java.lang.Thread.run(Unknown Source)
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketImpl.<init>(Unknown Source)
at com.sun.net.ssl.internal.ssl.SSLSocketFactoryImpl.createSocket(Unknown Source)
at netapp.manage.http.HTTPClient.<init>(HTTPClient.java:556)
at netapp.manage.NaServer.getSession(NaServer.java:335)
at netapp.manage.NaServer.invokeHTTP(NaServer.java:868)
at netapp.manage.NaServer.invokeElemForXML(NaServer.java:716)
at netapp.manage.NaServer.invokeElem(NaServer.java:635)
at netapp.sumo.toolkit.zephyr.ZephyrServer.invoke(ZephyrServer.java:265)
... 16 more

You also will have these Event IDs on the DFM server:

EventID:   1
Source:     SQLANY64 16.0

The description for Event ID 1 from source SQLANY64 16.0 cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.

If the event originated on another computer, the display information had to be saved with the event.

The following information was included with the event: 

DFMSybase
Could not start server

Event ID:  124
Source:      OnCommandHostSvc

Communication failure between HostAgent and DFM server: Could not connect to https://servername:8488/apis/soap/v1. TCP error code 10061: No connection could be made because the target machine actively refused it IPADDRESS:8488.   Please make sure DFM server is up running.

Cause

After discovering that it was the database service that wouldn't start (since the Event IDs are useless) I found the database log here:

C:\Program Files\NetApp\DataFabric Manager\DFM\log\sybase.log

After scrolling around a bit, I found the following error:


I. 10/07 14:46:42. Starting database "monitordb" (C:\Program Files\NetApp\DataFabric Manager\DFM\data\monitordb.db) at Tue Oct 07 2014 14:46
I. 10/07 14:46:42. Performance warning: Database file "C:\Program Files\NetApp\DataFabric Manager\DFM\data\monitordb.db" consists of 70 disk fragments
I. 10/07 14:46:43. Transaction log: monitordb.log
E. 10/07 14:46:43. Error: Database cannot be started -- monitordb.log is an invalid transaction log

E. 10/07 14:46:43. Database cannot be started -- monitordb.log is an invalid transaction log
I. 10/07 14:46:43. Database server shutdown due to startup error
I. 10/07 14:46:43. Database server stopped at Tue Oct 07 2014 14:46


Resolution

The bad transaction log file was located here:

C:\Program Files\NetApp\DataFabric Manager\DFM\data\monitordb.log

I renamed monitordb.log to monitordb.old

And then I attempted to start the Sybase database service again - and it worked!

net start DFMSybase

So I started the rest of the DFM services:

net start DFMServer
net start DFMWatchDog
net start DFMWebUI
net start DFMScheduler
net start DFMMonitor
net start DFMApache
net start DFMEvent

You may have a lot a little data in the database file, but you've lost more with teh services being stopped, so don't fret.  Delete the bad transaction log file and move on.


NetApp: LUN Migration - 7-Mode to C-Mode/C-DOT

CDOT/C-Mode LUN/block FC/FCoE/iSCSI storage migration

NetApp made a huge improvement in their software moving to C-Mode, however they did not make the process to move block storage LUNs easy.  Of course, they would like you to buy their DTA2800 appliance, which is licensed per TB migrated, and/or use their professional services.

Like most of us, we more than a couple TB to move, and I don't feel I should have to pay for the migration since I bought both systems in the first place.  The good news is you don't have to....if you can deal with a little downtime.

The solution is to use the NetApp Workflow Automation tool or "WFA".  You can do offline and online block LUN replication, and with the online mode - the cutover period can be very short.

Unfortunately, the pieces needed to easily complete this task are not readily compiled and comprehensively documented.

So far, the best document is NetApp TR 4314 which is not publicly accessible - except from this scribd post.  I will not post the actual PDF - but if you have access to the NetApp field portal - you can get EVERYTHING you need to complete the migrations.

Resources:

Instructions:
  1. Install OnCommand Workflow Automater
  2. Acquire all the items listed above
  3. Follow the instructions in TR 4314 to set up WFA
  4. Build a test LUN on your 7-Mode System
  5. Wait a minute for OCUM to update, and...
Recommendations/Notes:
  • Make sure the administrative interfaces, intercluster interfaces, and replication IPs are all on 10-gigabit networks so the network is not your bottleneck in the migration process.
  • If you have a spare NetApp, use this system as a staging system between the source and destination systems.  I happened to have a spare system with a couple hundred 15k drives and multiple 10GbE interfaces which worked great as an intermediary.
  • There are a bunch of workflows, but don't be overwhelmed.  You really only need one for the initial setup, and three for most migrations.
Steps to Migrate:

Set up the igroups.  You should only need to run this once per source controller/HA pair if your igroups were set up correctly to begin with.
  1. Run the "7toC LUN Migrate igroups" workflow
  2. Select the source array
  3. Select the target cluster
  4. Select the target SVM
  5. Click Execute
  6. Wait for the workflow to execute, make sure it completes successfully
  7. Check the CDOT system
Pre-Migration - "Baseline"
  1. Run the "7toC LUN Migrate Job Baseline" workflow
  2. Select the source system (your 7-Mode controller)
  3. Select the volume, when selecting you can see how many LUNs are on that volume.
  4. Select the replication IP - this IP needs to be on the same VLAN or routeable to the staging and target systems.  Hopefully it's a 10GbE interface as well.
  5. If there is more than one LUN per volume, you can use a regex to describe the LUN(s) you wish to migrate.  If you want to do one LUN at a time (I recommend this) just put the LUN name in the "LUN Pattern" field.
  6. Select the staging system, replication IP, vfiler and NFS access IP.
  7. Select the target cluster, SVM, aggregate
  8. Enter the volume name...I like to name my block volumes LUNNAME_vol but your mileage may vary
  9. Click Execute
  10. Wait a while - if you can, keep the workflow execution status window up so you can familiarize yourself with the process
  11. Hopefully it completes successfully.  If not look at what step of the workflow failed and troubleshoot it
Migration - "Cutover"

IMPORTANT: Leave all the checkboxes at default unless you are going to read the documentation and see what they all do.
  1. Run the "7toC LUN Migrate Job Update + Cutover - Rapid" workflow
  2. Leave the offline source LUNs box checked
  3. Select the target cluster
  4. Select the target SVM
  5. Select the volume - in the dropbox, it will show you the status of the volume - it should be in the state"baselined"
  6. Leave the remap LUNs box checked
  7. Shut down the source system (if this is a boot LUN) or stop all applications using the LUN(s)
  8. Unmount the disks in the source OS
  9. Click the "Execute" button
  10. The workflow will typically take about five minutes to execute on a fast system - unless there is a substantial amount of change since the initial baseline.
  11. If the LUN migrated was a boot LUN, make sure to update the boot targets in the BIOS (or boot policy in UCS)
  12. If the LUN migrated was a data/application LUN, mount the LUN in the OS and test the application
Post-Migration - "Cleanup"

IMPORTANT: Leave all the checkboxes at default unless you are going to read the documentation and see what they all do.
  1. Run the "7toC LUN Migrate Job Cleanup" workflow
  2. Select the target cluster
  3. Select the target SVM
  4. Select the target volume - the state should be "cutover"
  5. Click Execute
Manual Post-Migration Steps

The original 7-mode LUN should be offline, and the LUN and volume will be intact.  Once you are satisfied with the migration, you may remove the source data.
  1. Delete the source LUN
  2. Offline the source LUN volume/container (make sure it's the only LUN in the volume)
  3. Delete the source LUN container

Monday, October 6, 2014

How to upgrade VMware tools on Linux

If you are looking for how to INSTALL VMware Tools, please see my other blog post: How to install VMware Tools on Linux


How to upgrade VMware tools on Linux: Steps

1. Open the console of your Linux virtual machine

2. Log in as root

3. Go to the VM Menu, Guest, Install/Upgrade VMware Tools

4. Make a cdrom mount directory (if there isn't one already)

mkdir /mnt/cdrom

5. Mount the cdrom/iso

mount /dev/cdrom /mnt/cdrom

6.  Change directory to the mounted cdrom path

cd /mnt/cdrom

7. List the directory contents, you are looking for VMwareTools-version#-build#.tar.gz.  Take note of the build number.

ls

7. Clear out the old files from the root directory, if you used my previous instructions you will need to do this:

rm -rf ~/vmware-tools-distrib
rm -rf ~/VMwareTools*.tar.gz

8. Copy the new VMware Tools file to the root home directory

cp VMwareTools*.tar.gz ~

9. Change directory to the root home directory

cd

10. Expand the VMware Tools archive

tar -zxf VMwareTools*.tar.gz

11. List the contents of the root directory, look for the vmware-tools-distrib directory- change to that directory

cd vmware-tools-distrib

12. List the contents of that directory, look for the vmware install perl script and run it

./vmware-install.pl

13. Follow the installation/upgrade script - usually the defaults work fine.

14. Once the installation finishes, it will ask you if you want to run the configuration script, say yes.  Again, the defaults usually work for most everyone, most of the time.

14. Once the install has finished, unmount the ISO

umount /dev/cdrom

15. Go to the VM menu, Guest, if "End Vmware Tools Install" is an option, select that.  Otherwise, you are done!

Reconfigure VMware Tools

As a side note, if you every want to reconfigure VMware tools (for example, if you upgrade your Linux OS to a new kernel rev) you can always do the following:

1. Log in as root

2. Run the config script manually

vmware-config-tools.pl


How to install VMware tools on Linux

It has come to my attention that many people don't know how to install VMware tools on Linux, so they don't bother.  Linux isn't hard people!  I've decided to make it easy for you, so you no longer have any excuses.

If you are looking for how to UPGRADE VMware Tools, please see my other blog post: How to upgrade VMware Tools on Linux

How to install VMware tools on Linux: Steps

1. Open the console of your Linux virtual machine

2. Log in as root

3. Go to the VM Menu, Guest, Install VMware Tools

4. Make a cdrom mount directory (if there isn't one already)

mkdir /mnt/cdrom

5. Mount the cdrom/iso

mount /dev/cdrom /mnt/cdrom

6.  Change directory to the mounted cdrom path

cd /mnt/cdrom

7. List the directory contents, you are looking for VMwareTools-version#-build#.tar.gz

ls

7. Copy the VMware Tools file to the root home directory

cp VMwareTools*.tar.gz ~

8. Change directory to the root home directory

cd

9. Expand the VMware Tools archive

tar -zxf VMwareTools*.tar.gz

10. List the contents of the root directory, look for the vmware-tools-distrib directory- change to that directory

cd vmware-tools-distrib

11. List the contents of that directory, look for the vmware install perl script and run it

./vmware-install.pl

12. Follow the installation script - usually the defaults work fine.  If you get errors, you may need to install perl or gcc to be able to correctly install VMware tools.  Follow the correct instructions for your OS to install this.

13. Once the installation finishes, it will ask you if you want to run the configuration script, say yes.  Again, the defaults usually work for most everyone, most of the time.

14. Once the install has finished, unmount the ISO

umount /dev/cdrom

15. Go to the VM menu, Guest, if "End Vmware Tools Install" is an option, select that.  Otherwise, you are done!

Reconfigure VMware Tools

As a side note, if you every want to reconfigure VMware tools (for example, if you upgrade your Linux OS to a new kernel rev) you can always do the following:

1. Log in as root

2. Run the config script manually

vmware-config-tools.pl



Sunday, October 5, 2014

pbm.fault.PBMFault.summary on vMotion

After upgrading to ESX 5.5 U2 and vCenter 5.5 U2 - I was receiving the following error during a system-initated or manual vMotionrequest:

pbm.fault.PBMFault.summary



After restarting the "VMware vSphere Profile-Driven Storage Service" on the vCenter server, I was able to successfully vMotion.

c:\> net stop vimPBSM
c:\> net start vimPBSM



Thursday, October 2, 2014

NetApp: Unable to resize volume - error: Volume has the fixed filesystem size option set

Sometimes you are unable to resize a NetApp volume.  Usually this is because the volume used to be a snapmirror destination, and it was broken off - but it also could have been some cursed sysadmin that preceded you.  At any rate, when you attempt to resize the volume, you're given this error:

"Volume has the fixed filesystem size option set."

Well, NetApp doesn't have a checkbox for that in the GUI.  But, you should be using the command line anyway :)

Here is the command to fix it:

Cluster Mode:

cluster::> volume modify -filesys-size-fixed false -volume <volumename>

7-Mode:

vol options <volumename> fs_size_fixed off


Thursday, September 25, 2014

NetApp Error: hw_assist: bind failed to port 4444 on IP address - How to fix

I've run across many filers - set up by NetApp "authorized" systems integrators throw this error.  I've actually have four NetApp HA pairs installed by the professional services group - and the installers always miss this step.

cf.hwassist.socBindFailed:error]: hw_assist: bind failed to port 4444 on IP address X.X.X.X. Error 49

I've actually opened tickets with NetApp support - they told me to reboot the SP and then closed the ticket.  The problem is, the error kept coming back.

The Cause
After some research, this is the high-availability portion of the NetApp attempting to communicate from the SP to the partner controller.  By checking the partner's hardware (rather than waiting for a heartbeat) - the system can do a takeover more quickly in the event of a true failure.

How hardware-assisted takeover speeds up takeover

The IP address it is complaining about in the error should be the IP address of the partner's management interface (not the SP/RLM IP)

Resolution
On each node of the HA pair - set the IP address of the partner's management IP in the correct option.

First, verify that the setting is in fact incorrect.  The IP address in the configuration should NOT be the IP address of the partner's SP/RLM.

Check both nodes.

NETAPP-A> options cf.hw_assist
cf.hw_assist.enable          on         
cf.hw_assist.partner.address 192.163.1.2 
cf.hw_assist.partner.port    4444       

NETAPP-B> options cf.hw_assist
cf.hw_assist.enable          on         
cf.hw_assist.partner.address 192.163.1.3
cf.hw_assist.partner.port    4444       

Yeah - somehow those IP address were on my NetApp.  What noob uses 192.163...what? That's not even RFC1918...wtf?

Next, adjust the settings on each node of the HA pair to the correct IP address for the partner node.   You should use the IP address on the e0m or another management port you may have designated.  Note - do not point this to the SP/RLM IP address - it won't work.

NETAPP-A> options cf.hw_assist.partner.address <CONTROLLER-B-IP>
Validating the new hw-assist configuration. Please wait... 
NETAPP-A> 

NETAPP-B> options cf.hw_assist.partner.address <CONTROLLER-A-IP>
Validating the new hw-assist configuration. Please wait... 
NETAPP-B> 

If you get an error, go back and double check your network - make sure that the correct ports are being used, and that you are putting in the correct IP.  Remember, it needs to be the management address of the partner controller.

Once it's configured correctly, you should see this message on each controller:

[NETAPP-A:cf.hwassist.hwasstActive:info]: hw_assist: hw_assist functionality is active on IP address: <CONTROLLER-A-IP> port: 4444

[NETAPP-B:cf.hwassist.hwasstActive:info]: hw_assist: hw_assist functionality is active on IP address: <CONTROLLER-B-IP> port: 4444 

You can validate the configuration this way:

NETAPP-A> cf hw_assist status 

The output will look like:
                          
Local Node(NETAPP-A) Status:
        Active: NETAPP-Amonitoring alerts from partner(NETAPP-B)
        port 4444 IP address 10.160.99.40
Partner Node(NETAPP-B) Status:
        Active: NETAPP-Bmonitoring alerts from partner(NETAPP-A)
        port 4444 IP address 10.160.99.41

After a few minutes of it being configured correctly, you should see this message in the system log of each controller:

[NETAPP-A:cf.hwassist.recvKeepAlive:info]: hw_assist: Received hw_assist KeepAlive alert from partner(NETAPP-B).  

[NETAPP-B:cf.hwassist.recvKeepAlive:info]: hw_assist: Received hw_assist KeepAlive alert from partner(NETAPP-A).  


Mass storage vMotion: Migrate VMs serially/sequentially/one at a time between datastores using powercli

So you got a new SAN, or you bought some more disk and attached it.  Storage VMotion is great - but who wants to sit around and click and migrate tens or hundreds of VMs?

I did a little googling, because I'm lazy.  I didn't find anything (but I didn't look that hard) that did what I wanted it to do.  I did find the following one-liner here.

Get-VM -Datastore SOURCEDATASTORE| Move-VM -Datastore DESTINATIONDATASTORE -DiskStorageFormat thin

This one liner is great, but the problem is that it will slam your storage system by executing all the svmotions at once.  That's okay if you have two or three VMs, but presumably you bought more storage because of a controller or disk constraint, and this will further deteriorate your storage performance.

Well, how do we solve that?  Let's just move one VM at a time.

If you want to move all the VMs from a datastore sequentially and one at a time, take this script block, modify the variables for your environment, save it as a .ps1, and you'll be all set:


connect-viserver vcenter.domain.tld
$sourcedatastore = "SOURCEDATASTORE"
$destinationdatastore = "DESTINATIONDATASTORE"

$vms = Get-VM -Datastore $sourcedatastore
foreach($vm in $vms){
Move-VM -VM (Get-VM -Name $vm) -Datastore $destinationdatastore -DiskStorageFormat thin
}

This will move all the VMs, but one at a time...further delaying the onset of your carpal tunnel syndrome. You can thank me another day :)


Tuesday, September 16, 2014

GoDaddy Renewal Promo Codes

GoDaddy recently made it significatly more difficult to find WORKING codes for renewals.  Instead, they want you to join their "domain discount club."  For me, the domain discount club isn't worth it - and I'd rather still pay under $10 per domain to renew.

This code just worked for me....I was able to renew a .COM domain for $9.17 including the ICANN tax.

20% off .COM Renewal - Works September 16, 2014

35REN314



Didn't work:
gd4923a

Unsure if any of these work...please post feedback if it works or not:


Hosting Renewal %32: go32off5
All domain renewal %33: BB50PD5
$0.99  Godaddy .Com Domain sas1com (12.9.2014)
$1.99 Godaddy .Com Domain coder199 (12.9.2014)
$4  Godaddy .Com Domain with Private Registration Free4
Transfer and New Domain Registration Code: cjcbh199c
Transfer and Reg: 199bite
2$ new register coupon: gofhltk01
.Com domain 3$+ Private registration +1 =4$ 
cjcrmn3cp
New .com register: IAP249A
.Com domain register: cjcrmn3cp
Godady $ 0.99 promotional code: cjc1comuk
Godady $ 1.50 Hosting code: HOSTCHH
Godady $ 1.95 Promotional Code: 199octfbb
Godady $ 0.99 Promotional Code: DB99CENTS
Godady $ 0.99 Promotional Code: GOFD711A
Godady $ 0.99 WordPress hosting promo code: press5 – nuts12
Godady $ 1.99 transfer promotion code: mma199 (only valid for .com)
Godady $ 1.99 Promotional Code: 199MOXI to (accept Paypal)
Godady $ 0.99 Promotional Code: GOFD4004HE
Domain renewal Godady a 40% discount code: wowcjc295d
2$ com domain: gofhltk01

FEATURED GoDaddy Coupons & Promo Codes

COUPON/PROMO CODESAVINGS/DISCOUNT
BB50PD533% OFF Domain Renewals – .COM/.NET/.INFO
HOSTREN20Save 20% On All Web Hosting Plans
CJC30WSB1Website For Only $1.00/Month
ACOSKS65Save $10 on Any Purchase – Minimum $50

Godaddy DISCOUNT DOMAIN CLUB Price List
– .COM domain: $8.29/year – 44% Off
– .CO renewal: $24.99/year – 16% Off
– .NET domain: $7.99/year – 52% Off
– .ORG renewal: $8.99/year – 50% Off
– .INFO domain: $8.99/year – 50% Off
– .ME renewal: $16.99/year – 15% Off
– .BIZ domain: $8.29/year – 47% Off
Godaddy Coupon Renewal ACOSKS65 – Save $ 10 discount on your order of $ 50 or more CJC35NEWC – Join “Discount Domain Club” only $ 58.49/year GoDaddy canceled all renewal certificates, you can use the “Discount Domain Club”, the price for the join . COM renewal only $ 8.29/year, . NET renewal only $ 7.99/year, . ORG renewal only $ 8.99/year, . Renewal only CO 24.99/year.
Join Discount Club GoDaddy save money tips $ 8.49/year. COM /. NET Namecheap About Coupon +Free Whois Guard. $ 8.25/year. COM /. NET About Name.com Coupon + Free Whois Guard. GoDaddy Hosting Coupon renewal There is no hosting renewal coupon for you, I recommend you use below coupon to buy a new one.
CJCH501 – Save 50% * OFF hosting plans, expiration date July 10, 2014 Note: You can use these to buy godaddy coupon 50% off hosting a number of years.
GoDaddy SSL renewal coupon: ACOSKS65
Save $ 10 discount on your order of $ 50 or more Note: You can create new SSL certificates for several years a time to buy, coupons running soon .
CJCNEW2 – Save 35% discount on all new SSL Certificates, Expires Soon CJCOFF32A – Save 32% discount on new orders Expires Soon Best Godaddy Coupon July 2014 CJCNEW2 – Save 35% discount on all new orders in July 2014 CJCH501 – Godaddy 50% Off Everything * New WebHosting plans in 2014. If you buy more than 12 + months of hosting, you can get a free domain CJC1HOS1 – Just $ 1/mo for 12 months Economy Web Hosting .If they want to, to sign for their services, they offer to entice ridiculously low prices: 99-cent domain names, or $ 1.99/month hosting. But when it comes time to renew your domain name comes suddenly these coupons and promo codes are hard to find. If you have your domain name (s) or hosting with Godaddy, we have a few promo codes to help you, your renewal will save at least 30% will be compiled. Whether you renew for one year or for several years, these coupon codes should work .Best replacement vouchers Right Now:
Godaddy COUPON Code: sas28off1 Best Deal! Use the code above to save from new products and innovations 28%. While this is the best promo code, it is also a bit picky: It works for some products but not others. If it does not work, try one of the many coupons below. SHOW COUPON sas10order .This voucher will be (no minimum order value!) Save 10% on all items. This code works for domains, hosting sahred, SSL certificates, VPS hosting, you name it. There is no expiration date for the offer.
Go Daddy Coupon Code
cjc3003 This code will save you from all GoDaddy products 30%.

Featured Post

Remove 3D Objects and other annoying folders on Windows 10

 Microsoft just keeps adding more crap to clutter up the navigation in Windows 10.  Seriously, who needs a 3D Objects folder?  The tiny perc...