2/12/2016
HP xl170r, NVMe WS2012r2 on M.2 SSD Sata
First its not a typically sized mSATA drive (its 1/2 sized), second its hosted not at the end of a Controller, but directly on the PCI Express (PCIe) bus. That's great for performance but normally means you need a special device driver to be loaded and enumerated in order to access it.
HP has two types of SCSI/SATA host controllers, hardware backed (based) and software backed (based). To HP (all) SCSI/SATA host controllers are [potentially] RAID host controllers by default.
The hardware versions are what most people are familar with called "SmartArray" and generally come with Operating System specific device drivers and add-on drivers to work with installation software, like for the WinPE installer from Microsoft.. or as a kernel module for Linux.
For some time HP (now HPE) has been moving towards a converged UEFI hardware platform that integrates downloading and providing device drivers to the hosted operating system on their server blades [at the time of install] or as needed by manifesting additional mass storage devices on the PC extended buses (mscdex, usb, pci, pcie, iscsi or pxe) as needed.
The NVMe support in the new HP servers definitely takes a strange turn for most people familar with laptops and other servers.
Basically like the old CCISS approach of creating a vendor specific "bus" to support their "vision" of the hardware.
HP has used their [Software (backed)] B170i RAID controller to {host} the NVMe but normally all RAID controllers under HP require the user to configure them at UEFI> BIOS> Host Controller BIOS> setup [before] they are visible or enumerated in the boot loader order. When it is properly setup as a RAID-1 software RAID device "backed by NVMe hardware" it will appear as an additional boot option, but won't even be listed as an option until the LUN is created in UEFI BIOS (note: Not Legacy BIOS!)
Unlike other vendors implementation of the NVMe specification, they are treated as a SCSI device by the HP hardware (Not PCIe devices~!). This both complicates and simplifies things.
It complicates things because the NVMe descriptions for "native" PCIe bus support do not apply to the NVMe on HP servers.
It simplifies them because the operating system can treat them as another SATA/SCSI device.. and the subsequent operating system only needs the device driver for the generic Software based RAID specific to HP products.
While this still requires you to [Inject] [F6] the special HP provided device driver when in the WinPE menus, it does eventually discover the new B170i controller managed "M.2 SSD devices" as if they were merely another SCSI LUN hanging off the Software RAID controller made available by the HP device drivers.
You can use the "normal" HP plethora of extended media options to get the HP boot time device driver for WinPE at the time of install.. namely (iLO) mscdex, usb, pci, pcie, sd media.. or their physical options as provided by your servers physical form factor.. aka.. external "ports" on the surface or backside of the machine.. or a USB/KVM dongle.. custom wim images with the device driver pre-injected into the WDS or SCCM services are also possible.. to each their own.
Windows WinPE will then copy the runtime device driver into the eventual native store after install and setup the device as a bootable device automatically.
The "behavior" is you begin to Install Windows 2012r2 with WinPE bootable media and an install source, it proceeds normally [Up to] where it lists the "available storage devices" and asks where you would like to install Windows 2012r2.
If you have already created a RAID device in the hardware based SmartArray controller, that will be listed. If you have not created a RAID device in the software based B170i controller, then the M.2 SSD RAID device will not be listed -- and you will have no hint that there is a "missing" storage device of 64 GB.
Even if you use the F6 procedure to inject the B170i device driver into the WinPE install, unless the B170i has "already" had a RAID device setup before you began the Windows 2012r2 install procedure.. it will still not be listed as an available 64 GB RAID device made from the M.2 SSD hardware.
The only way to (properly) expose the M.2 SSD hardware is "first" to boot into the UEFI BIOS intelligent provisioning provider menus. They start a Linux derived GUI and present a representation of the available RAID controllers and the hardware hanging off of them.
In this "diagram" will be the (two) 64 GB M.2 SSD devices, which can be selected and combined into a RAID-1 device which will automatically create a SCSI LUN which the subsequent Windows installer "can see" once the F6 procedure is used to "inject" the B170i device driver into the runtime image.
With the LUN pre-setup, and the F6 procedure followed, WinPE will take a few "minutes" to rescan the available RAID storage controllers, and it will "see" the B170i controller, and that it has a RAID-1 LUN and present that as "available" storage media and a valid target for completing the install of Windows 2012r2 server. (Don't expect "Spectacular" drag racing style install speeds.. rather most of the pedantic Windows install process is about thoroughly auditing hardware busses and enabling hardware then testing it.. and contructing a registry from scratch.. all of this is memory intensive.. not disk io bound).
NOTE: Until you manually go into IPP storage provisioning from the BIOS UEFI screen and manually select and [Create] a RAID-1 array the M.2 SSD devices will not be listed or available to boot [from]. In fact they are never made [directly] available to the operating system as a PCIe device, they are treated as (one) B170i RAID device.
If you wanted to use the PCIe SSD as a cache store in a Mac Fusion"y" kind of "hybrid drive" manner to boost the access speed of a partnered hard drive.. that is not what the default is intended. I believe a special License key must be purchased to enable the HP io store accelerator.. or something named like that to provide an enhanced RAID cache to increase disk I/O.. different product for a different purpose.. and I believe its only available with the hardware (based) SmartArray products.
Rather this solution is meant to host the bootable Operating System (only) and in a mirrored RAID fashion, such that one half the M.2 Sata RAID can "fail" and notify you before the situation becomes "critical". A maintenance window can be scheduled, replacement parts can be shipped ect..
As delivered M.2 SSD devices can be many sizes, but at 64 GB the base install for a recent server I helped setup, this was more than enough after the Windows 2012r2 installation rounded out at about 20 GB leaving plenty of room for subsequent updates and feature installs.
Another good reason for this beyond speed, redundancy, and reliability, is these drives are relatively small and unobtrusive close to the motherboard with no moving parts.. so their fault tolerance should be superior to that of the data drives.
The Moonshot/Apollo platforms are a medium sized converged platform which hosts a maximum of (4) servers in a "mini-chassis" with a quorum of drive slots allocated per server on the front of the chassis. LFF only allocates 3 slots per blade server, and if two slots host another RAID-1 configuration and the third is used for hot spare failover.. its best to use these only for bulk storage and data provisioning.
Since the Operating System has effectively now been taken "inside" the blade server it modularizes.. and opens up the possibility of swapping blade servers [whole cloth] when troubleshooting.. and leaving the data drives where they are.. to be picked up after replacing the server and os all at once.
Someday such an arrangement may even lead to "hotswap" of the blade server and os, but I am inclined to think even a partial scenario like that is possible today with Clustered CSV and Clustered Nodes on the current failover system built into windows.. with VMs and Docker Containers it becomes even more likely. Swapping rapidly turns into a "Time Share" problem where jobs are merely "paused" rather than torn down and rebuilt after each reboot.
1/19/2016
EyeTV3 n Plex, Using VLC as a DLNA client
Plex is a flexible media server which automatically downloads program details and artwork, serving it up through a web appplication or DLNA service for viewing. VideoLAN Client (VLC) is a multiformat multimedia viewing application.
EyeTV3 manages the tuner and begins a schedule by waking up any sleeping devices, and records the scheduled programs. A post program script moves the tuner transcoded H.264 file to the Plex media archive where it is automatically cataloged and indexed and made available.
The Plex web application provides a choice of Flash or HTML5 browser client for viewing programs.
Plex also provides a DLNA streaming service to access the recorded program using a DLNA client.
VideoLAN client is a more fully functional alternative to a web based client. Until recently the VLC client was not a good DLNA client, as of version 3.0.0 (and 12/3/15)(currently only available in nightly builds) however it has become a fast and stable DLNA client. Previous versions 2.2 and lower had a consistent habit of taking minutes to complete a recursive audit of the DLNA source, and abruptly crashing. The behavior has greatly improved.
DLNA is a protocol for discovery and streaming that relies upon http protocol to communicate SOAP requests to determine the clients capabilities, and then serves the stream or transcodes it "on the fly" to service the client request. It relies upon an xml file formated Client Profile, which the DLNA server chooses to use based upon the Clients self indentifying information in the Clients http request.
These Client Profiles are unique to the Client application or Network device and must be written custom to make sure the DLNA server properly provides service to the DLNA Client.
They have a specific format, well described here:
Writing profiles for DLNA devices...
The Plex server application on OSX has an Applications/{base install directory}/Resource/Profiles directory which is a cache of Profiles for commonly recognized clients and one 'Generic' profile which makes no attempt to transcode and is reserved for use with unidentified clients.
One of the Plex server "Flagship" features however is that it does make an attempt to specifically "identify" the client requesting service in order to determine the appropriate "real-time" transcode it should perform on a stream for that client. While using the client in "non-transcoding" form is possible, it was not a specific design goal of the Plex media server project, but rather as a final resignation step to provide service to a client. {Sometimes} it is "preferred" to moderate, or selectively "choose" not to transcode, or rather to adjust the transcoding so that the hardware the Plex media server is running on is not over powered or its resources over subscribed. In those cases modifying the client profiles (in the user account directory for the Plex server application) would be the appropriate choice. Creating and modifying "client profile - overrides" is preferred and more appropriate, since the Plex server update process also retrieves "revised" base client profiles from the project upstream sources, which could in-advertently "overwrite" any user specific modifications.
Plex server Profiles are brought along with the install of the Plex server program and updated periodically. Personal Plex server Profiles are added to the personal home Plex server application data directories (specific to the user account that runs the Plex server) and sourced (i.e. included when the Plex server starts up and searches its application data directory for account specific application data files) during the start of the service to amend (revise, alter, change, modify, qualify, adapt, adjust)or collaborate or (even) override and supercede those of the inital base Plex server application install.
One of the key things to take note of is at this time the VLC nightly builds come as .7z, .zip, .exe, .msi installation bundles. Neither the .exe or .msi will install a functional version of the nightly builds as of 1/18/16. However a manual install using the .zip file results in a fully functional VLC client program.
Another advantage of the DLNA service is many of the 10 ft user interface devices like Home Televisions, Mobile phones and personal tablets are all DLNA compatible and can also discover and source content. Plex also has the ability to automatically transcode the content for the client devices as needed rather than permenantly degrading or duplicating content from its original storage format.
A convergence of services is also occuring in this space as AppleTV, Roku, Amazon, Netflix and other media sources and devices already support Channels on their native interfaces and are beginning to offer add-on clients that will similarly source DLNA content.. such as the VLC interface on AppleTV. A Channel is merely a streaming source that makes its output available through a DLNA enabled media server. This can include Live Cable or Over the Air broadcasts, or Personal and Business conferencing applications currently replacing traditional personal communications such as Skype, Facetime and Hangouts. Gaming sources like Twich can also provide a Channel as can real time in persona or via avatar persona games.
Scheduling remains a logistical tangle of cooperative management of limited resources made easier by multiple on demand sources. But it has not been replaced, it has merely been transformed into an artform entrusted to individuals and mobile assistants that can interpolate and make the best decisions among many less desirable outcomes.
1/17/2016
OSX, using RDP to autoscale resolutions
screen mode id:i:1
use multimon:i:0
desktopwidth:i:1280
desktopheight:i:1024
session bpp:i:16
winposstr:s:0,1,60,1,1280,1054
...
smart sizing:i:1
Basically screen mode, winposstr and ["smart sizing"] are the only RDP settings that matter for initiating the osx-server connection window state.
The "smart sizing" value is new and cannot be set by any of the GUI edit fields in the RDP "Edit" mode. To set it you must open the RDP profile for the connection in a text editor like notepad and save the changes.
RDP profiles are "saved" configurations for a connection that can hold destination, username at logon time and even a semi encrypted password from the last session. They are created by running the RDP client [%windir%\system32\mstsc.exe] and choosing ["V" Show Options] instead of pressing the [Connect] button. Then "tabbing" through the options to pick and choose settings, finally returning to the first tab and selecting [Save As..] -- by default the profile will be given a name and placed in your "Documents" or "My Documents" folder depending on the version of windows your running (they are essentially the same location).
All files with the extension .rdp are automatically "opened" with the [%windir%\system32\mstsc.exe] RDP client program. Depending on your selections in the profile it can completely automatically open a connection with a remote osx-server. Short-cuts to these profiles can then be placed in the Start Menus or on the Taskbar to simplify quickly connecting to a remote system.
In the first image below the window is opened normally, when "auto-scale" is turned on it automatically resizes the window to a pixel ratio of [osx-server:windows-client] of [1:1]
But with "auto-scale" enabled, a Microsoft Windows desktop mouse can "GRab" any corner and initiate a "re-scale" of the same number of [osx-server] pixels to "fit inside" the re-defined [windows-client] window.
The effect is that the pixels can be "crushed" or "densified" or "squished & stretched" into non-rectangular blocks. But this can be very useful when multiple client windows to different osx-server instances are being managed simultaneously. They can be instantly resized or "zoomed-down" to maintain a live window without taking up the entire desktop space.
It is possible to resize osx-server windows into randomly small windows "temporarily" and then "double-click" their title bar to instantly [Pop] them back to Full Size.. and double-click again to return them to their former, "smaller" scaled "recessed" state. The autoscale only works one-way however.. you can re-size the windows "smaller" but they can never be "enlarged" beyond their 1:1 value. When the osx-server windows are at 1:1 that is as big as they can get.
One of the really cool things about this is the running [resolution] of the osx-server console can be "really" high and yet the full desktop can still be seen on a lower or smaller screened desktop client.
And with the other profile attributes you can make sure "the volume" is turned down on "first connection" so that it doesn't whallop you with a Massive 1:1 scale in your face at first sight.
RHEL6, How to install Solr 5.4
Solr is a Java based full-text search service which uses the Apache Lucene search engine. Red Hat Network does not have an offical package for it and it is not available through EPEL for RHEL6. Here is one way to install it with a minimum of effort.
First download a recent version of Java 1.8 and use the [Alternatives] command to make sure it is selected as the default for the operating system. Note this example installs it into /opt
sudo su -
---------------
cd /opt
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u40-b25/jdk-8u40-linux-x64.tar.gz"
tar -xzf jdk-8u40-linux-x64.tar.gz
cd /opt/jdk1.8.0_40/
alternatives --install /usr/bin/java java /opt/jdk1.8.0_40/bin/java 3
alternatives --config java
select option #3
java -version
java version "1.8.0_40"
Java(TM) SE Runtime Environment (build 1.8.0_40-b25)
Java HotSpot(TM) 64-Bit Server VM (build 25.40-b25, mixed mode)
---------------Then download a recent version of Solr and install it. Note that this version of Solr comes with a special script which will install a runtime script in the /etc/init.d directory. [Also] Note in this example Solr is being unpacked into /tmp and the installation script is run relative to /tmp.
---------------Depending on how you manage your local firewall rules, put an exception in to allow connecting to port 8983. Solr installs a copy of the java based minimal jetty webserver to provide service, it listens on port 8983.
cd /tmp
wget --no-cookies --no-check-certificate http://www.us.apache.org/dist/lucene/solr/5.4.0/solr-5.4.0.tgz
tar -zxvf solr-5.4.0.tgz
cd /tmp/solr-5.4.0
bin/install_solr_service.sh /tmp/solr-5.4.0.tgz
"wait for the completed status message -- it can take a while"
chkconfig solr on
---------------
---------------Be wary of the status of selinux if you don't maintain its "invisible" state for permissions on directories and resources. In this example its shut off.
sudo firewall-cmd --zone = public --add-port = 8983 / tcp --permanent
sudo firewall-cmd --reload
[or]
iptables -I INPUT -p tcp -m tcp --dport 8983 -j ACCEPT
service iptables save
---------------
---------------The installation script will copy files from the unpack location "/tmp" to the "/opt/solr" directory and create a collections directory /var/solr. Make sure its owned by the new solr user, the previously run installation script created a user and group named "solr".
vi /etc/sysconfig/selinux => disabled
setenforce 0
---------------
---------------[Be sure] to change user context to the [solr] user, then "Create" a collection and index a collection by "Posting" it.
chown -R solr:solr /var/solr
---------------
---------------
sudo su - solr
cd /opt/solr
bin/solr create -c documents
bin/post -c documents docs/
cd /opt/solr
bin/solr create -c gettingstarted
bin/post -c gettingstarted example/exampledocs/*.xml
---------------You can now go to the Solr admin panel at http://localhost:8983/solr/
12/30/2015
Fireshot Pro, How to revert to Lite after Trial
The Fireshot Pro 0.98.77 browser add-on has a problem on Firefox 41.0+ reverting to Lite if you decide not to license it on every machine you use. Here's how to fix that.
The add-on is a tool for archiving or capturing web content and then editing, saving or sharing it via more conventional means other than as url.
When installing the Fireshot add-on whether downloaded from the authors website, or through the feature Tools : Add-Ons > Add-ons Manager > Get Add-Ons
It "currently" installs as the FireShot Pro version in Trial mode.
You can also run into the problem if you already have it installed and "ever" clicked on the FS Pro! button after capturing, or use the menu option in the browser Tools : FireShot > Switch to Pro!
Once it is in Trial mode at the end of the 30 day trial it will begin tossing Pop Up messages that cannot be easily dismissed. They take you to a purchase page, however the mechanism there for reverting to a Lite edition appears to have some problems.
The add-on is a wonderful product and worth the cost, however it is limited per user and per users personal systems. If you need a copy on a co-workers personal computer, or family member who perhaps isn't going to use it as much. The Lite version is more than enough.
The fix is to close all open browser windows, open a regedit tool and "delete" the key string and value
HKEY_CURRENT_USER\Software\Screenshot Studio for Firefox\fx_prokey
Do not attempt to modify the value from "yes" to "no" it will not be enough. In fact after proving this doesn't work returning to the key will reveal it has been "set back" to "yes".
The entire "fx_prokey" key must be deleted.
Note: This is an evolving bug/problem. It can arise for a number of reasons and conflicts and interacts with various features of >= 41.0 of Firefox. So this "may work" for you.. or it may not, it may only be contributary. The author is aware of the issue and appears to be trying to debug and help those that run into this bug on the products forums.
Windows, How to firewall block a list of IP addresses
The method is not original, its described in many places. This was described in a posting here.
Step 1 - save the following to blockit.bat
@echo off
if "%1"=="list" (
netsh advfirewall firewall show rule Blockit | findstr RemoteIP
exit/b
)
:: Deleting existing block on ips
netsh advfirewall firewall delete rule name="Blockit"
:: Block new ips (while reading them from blockit.txt)
for /f %%i in (blockit.txt) do (
netsh advfirewall firewall add rule name="Blockit" protocol=any dir=in action=block remoteip=%%i
netsh advfirewall firewall add rule name="Blockit" protocol=any dir=out action=block remoteip=%%i
)
:: call this batch again with list to show the blocked IPs
call %0 list
Step 2 - save a list of IP addresses to blockit.txt
5.9.212.53
5.79.85.212
46.38.51.49
46.165.193.67
46.165.222.212
Step 3 - run the batchfile
a. [to read] blockit.txt and block ip addresses
c:\> blockit.bat blockit.txtb. [to list] the ip addresses currently blocked
c:\> blockit.bat listc. [to unblock] all of the ip addresses that were blocked
c:\> netsh advfirewall firewall delete rule name="Blockit"
12/19/2015
Open Live Writer, Can now edit Blogger Blogs
The Open Live Writer “opensource project” can apparently edit Google Blogger based blogs again. Version 0.5.1.2
This was formerly the Microsoft Live Writer which I believe came about as a result of the acquisition of Jeremy Allaires old company or project.
Earlier this month Google was turning off the authentication API that the former Microsoft Live Writer application was using to support logging on and editing Google Blogger Blogs for the owner of the Blog. Coencidentally that appeared to have happened the same day Open Live Writer became available as open source.. leaving users stranged between an old tool that could no longer auth to Google, and a new tool that didn’t yet support the new Oauth2 that Google had switched.
Today 12-19-2015
I attempted to install the latest edition of OLW.. it crashed.. but then I rebooted and opened it again. It spawned an instance of my default browser “FireFox” and proceeded to ask me to logon to Google, presented me with my logon and a confirmation box that asked if I wanted to grant OLW access.. I clicked Accept.. the page cleared and said I could close it.
OLW then proceeded to enumerate my different Blogs and asked me which I would like to work with and now it appears to be working.
I don’t know if anything actually got fixed or Google temporarily turned the old auth system back on, or the open source OLW team completed the new code to support the new auth system. But if this posts.. then I guess its working.




