Skip to main content

Posts

Showing posts from 2015

I just parted...

The recent disk management utility in the Fedora/RHEL installers are a bit challenging.   Since I don't know why things had changed, I won't bother commenting.  But, I don't find them nearly as easy/convenient as before.... Anyhow... I installed a 500GB SSD in my Intel NUC to build up as a "NAS" host (NFS and iSCSI).  The OS will take around 20GB, then SWAP, /boot.. whatever.  So, I wanted the remainder of the disk to be in it's own VG [root@rhel7-nas registry]# parted -l | grep Disk Disk /dev/sda: 480GB Disk Flags: Disk /dev/mapper/vg_exports-lv_registry: 21.5GB Disk Flags: Disk /dev/mapper/rhel7--nas-home: 1074MB Disk Flags: Disk /dev/mapper/rhel7--nas-swap: 8389MB Disk Flags: Disk /dev/mapper/rhel7--nas-root: 32.2GB Disk Flags: [root@rhel7-nas ~]# parted -s /dev/sda print free Model: ATA INTEL SSDSC2BP48 (scsi) Disk /dev/sda: 480GB Sector size (logical/physical): 512B/512B Partition Table: gpt Disk Flags: Number  Start   End     Size

Plex Media Server, a Cisco ASA 5505, and you...

The only hang-up I have with this setup is the fact that I now have an inside system exposed to the external interface (instead of a DMZ box :-( object network inside-network   subnet 192.168.0.0 255.255.255.0 object network PLEX-TCP32400   host 192.168.0.11 access-list acl_outside extended permit tcp any object PLEX-TCP32400 eq 32400 object network PLEX-TCP32400  nat (inside,outside) static interface service tcp 32400 32400 

Replace Horrible ClickPad on Lenovo

I have a 2014/2015 Lenovo T540P which is an awesome machine in EVERY way but one.. the horrible ClickPad thing they implemented.  Seemingly to compete with the Apple Trackpad, I suppose.  The significant difference, however, is the top of an Apple Trackpad is not a clickable area.  And worse... Lenovo tried to emulate a 3-button trackpad.  Ugg. First - I ordered a 3-button Trackpad replacement.  Replacing the trackpad was not exactly straight-forward, but it was pretty simple once you know what you are doing. Remove keyboard bevel: https://support.lenovo.com/us/en/documents/pd029714 Replace trackpad: https://support.lenovo.com/us/en/videos/vid100173 After I replace the trackpad, I had a bizzare situation where if I was to click the "left-mouse-button" and drag my app around the screen, the cursor would jump around chaotically. I messed around with the 50-synaptics.conf file, which did not help.  I believe the final fix was [root@seraph ~] # xinput set-prop "

Satellite 6 installation issue(s)

My job (self-appointed, of course) is to learn the ins-and-outs of Satellite 6, but from an infrastructure perspective.  This involves installing it over... and over.. and over... until I encounter issues.  And then I pull my hair out trying to troubleshoot the issue. Issue:  Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp  Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp  /Stage[main]/Foreman_proxy::Register/Foreman_smartproxy[rh7sat6.aperture.lab]/ensure: change from absent to present failed: Could not set 'present' on ensure: 422 Unprocessable Entity at 12:/usr/share/katello-installer/modules/foreman_proxy/manifests/register.pp Resolution:  foreman-rake config -- -k idle_timeout -v 60 foreman-rake config -- -k proxy_request_timeout -v 99 NOTES:  Interestingl

Nagios SELinux and you.

If you are running RHEL/CentOS and using SELinux, and you should... be using SELinux... you may have notced the following error when you attempt to submit an immediate check of a host: Error: Could not stat() command file '/usr/local/nagios/var/rw/nagios.cmd'! There are a number of ways to see if SELinux is preventing this from working, but the quickest is to # setenforce 0 -- retry submitting # setenforce 1 If the above allowed the command to run, then just run this [root@apoc rw]# chcon -R --reference=/var/www/html /usr/local/nagios/share [root@apoc rw]# chcon -R --reference=/var/www/html /usr/local/nagios/var [root@apoc rw]# chcon -R --reference=/var/www/cgi-bin /usr/local/nagios/sbin [root@apoc rw]# chcon -R -t httpd_sys_rw_content_t /usr/local/nagios/var/rw

P2V using dd for KVM-QEMU guest

Preface: I have certainly not exhaustively tested this process.  I had a specific need and found a specific solution that worked. Situation:  I was issued a shiny new laptop running Red Hat Enterprise Linux 7 (with Corp VPN, certs, Authentication configuration, etc...)  The image was great, but I needed more flexibility on my bare metal.  So, my goal was to P2V the corporate image so I could just run it as a VM. * Remove corporate drive and install new SSD * install corp drive in external USB-3 case * Install RHEL 7 on new SSD * dd old drive to a disk-image file in a temp location which will be an image which is the same size as your actual drive (unless you have enough space in your destination to contain a temp and converted image) * convert the raw disk-image to a qcow file while pushing it to the final location - this step should reduce the disk size - however, I believe it will only reduce/collapse zero-byte blocks (not just free space - i.e. if you delete a file, it may

Adding EPEL 7 repo to Satellite 5

Repository URL: http://mirrors.kernel.org/fedora-epel/7/x86_64/ You will likely get the following error (/var/log/rhn/reposync/epel_rhel7_x86_64.log [root@rh6sat5 reposync]# tail -f epel_rhel7_x86_64.log Sync started: Fri May 22 18:58:00 2015 ['/usr/bin/spacewalk-repo-sync', '--channel', 'epel_rhel7_x86_64', '--type', 'yum', ''] Repo URL: http://mirrors.kernel.org/fedora-epel/7/x86_64/ ERROR: xz compression not available Sync completed. Total time: 0:00:03 So - to fix this, do the following... yum -y install http://mirrors.kernel.org/fedora-epel/epel-release-latest-6.noarch.rpm cd /etc/yum.repos.d/ sed -i -e 's/enabled=1/enabled=0/g' epel.repo yum --enablerepo epel list pyliblzma To resolve the mess from above... yum remove pyliblzma && yum --enablerepo epel -y install pyliblzma

MTP - Oh how I love to hate you....

TL; DR:  I can't sync my android tablet (Nvidia Shield) with Fedora via MTP if I am using a USB Hub? So, in fairness... I don't actually *hate* MTP.  I'm sure it is probably fairly awesome at doing whatever it is that MTP should do.  I'm just miffed at the moment because Android switched (a long time ago, I might add) to MTP for USB connections. Before, I could (essentially) directly mount the SD card in my tablet/phone/toaster and manage it using my archaic methods.  Now.. I have to conform to using the mtp methodology... which is fine. However - now I am stuck.. Feb  3 10:15:18 neo mtp-probe: bus: 1, device: 28 was not an MTP device Fun... Syslog tells me the device is:  /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3.3 At some point I will need to dig in to the output from... # udevadm test /sys/devices/pci0000:00/0000:00:1a.0/usb1/1-1/1-1.2/1-1.2.3/1-1.2.3.  Specifially... /usr/lib/udev/rules.d/50-udev-default.rules /usr/lib