Category Archives: Computer – Linux

Extending root LVM is the new server priority

Well, since the backup drive started playing nicely and I didn’t have to replace it, extending the root LVM is the new priority, since the system drive is only a 200GB drive, and the / LVM is only 50GB.  Besides the spare 2TB drive, I also bought a 250GB IDE drive in order to expand the root filesystem for a bit of breathing room.

This is the output of df -h and should show the why I need this:  Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg_cap-lv_root 50G 19G 29G 39% /
/dev/sdb1 1.8T 883G 858G 51% /mnt/storage
/dev/sda1 477M 192M 257M 43% /boot
/dev/mapper/vg_cap-lv_home 128G 33G 90G 27% /home

You see, only 29GB free…..  /home is in better shape, with 90GB free.

Even though, I will probably use command line tools I checked up on system-config-lvm and found that it had basically been abandoned since Fedora 19, and it now resides in the F19 rawhide repository.    GParted is not a solution, since it doesn’t support LVM partitions.  While noblivet-gui-1t included in F20, Fedora announced news of a new partition manager called blivet-gui.  This is a screenshot of it, and you can see that it looks a lot like GParted,  Since it is not included in the Fedora repositories yet, your only option is to add the repos, so that you can install it and the dependencies using yum.  Here is the link so you you may install the F20 or F21 repository….  vtrefny-blivet-gui-fedora-repo  Simply, download the zip, unzip the file and put the proper repo file in the directory /etc/yum.repos.d/ so that yum can properly install blivet-gui.  I really don’t think that I’ll utilize this tool, but rather expand the root LVM using command line tools such as:  lvdisplay, lvs, vgs, vgextend, and resize2fs, but more on that later……

Strange server behavior

Earlier in the month, I noticed that for some reason server ‘auto backups’ were not occuring, with the last one being 20 Dec 2014.  Upon investigation, I found that not only could I not mount /dev/sdc/ , the backup drive,  but fdisk -l |grep Disk wouldn’t even list it.  So, I figured that the drive died, so I ordered another 2 TB drive.  I also ordered a spare 250GB IDE drive.

Yesterday, I was going to prep and replace /dev/sdc.  I found that after a reboot, the server not only recognized the backup drive, but its data seemed intact, with the exception of the last sys partition backup.  So, I immediately did another fresh, full sys partition backup.

Well, at least now, I have a spare 2GB data drive, as well as a spare 250GB boot drive (the current one is only 200GB) onsite.  Could have been worse, I imagine.  😉

 

Services on Fedora 21

Yesterday, I was asked as to whether Apache webserver (httpd) was installed on a F21 Workstation installation.  The short answer is yes.  However, it’s not running by default.  So, this might be a good time to go over how Fedora has changed in respect to services.

Services used to be handled through the use of sysvinit scripts that resided in /etc/rc.d/init.d/.  Now, however, they are managed through systemd and systemctl (front-end for systemd).  So, in order to enable a service to start at boot time, you would (as root user) do:

# systemctl enable service_name.service

For httpd, it would then be this command:

# systemctl enable httpd.service

You can stop a service from running at boot time by substituting disable for enable.  In order to check on the status or to start or stop a service, (httpd, for example) you would use one of the following commands:

# systemctl start httpd

# systemctl stop httpd

# systemctl status httpd

You may have noticed that I dropped the .service from the commands….  The old ‘service httpd status’ command structure is ‘passed off’ to systemctl, as are any sysvinit scrips that haven’t been ported to systemd.  You can also still start services in /etc/rc.d/rc.local but there is no telling when that will be depreciated, or if it will.  So, the moral of the story is to start getting used to systemd.  😉

Fedora 21 (TwentyOne) workstation installation

Well, I undertook installing the latest Fedora on a desktop computer for a friend, and as always I needed to address the same three issues immediately upon install…….  One  MAJOR difference now, is that you actually install from the Workstation Live DVD unless you want a server.  (A server will give no desktop, but rather just a simple text login.)  I guess the thinking is that anybody that will install a server is adept enough to handle a command line interface.

Screenshot from 2014-12-27 12:53:55I positively HATE the new Gnome3 interface, and I am sure my friend will also.  So, I set it to use the Gnome Classic Display Manager.  😉

After that was taken care of, it was time to address the lack of mp3 support and the non-working audio.  So, I addressed the non-working audio first, right after I installed YumEx.  (I’ve gone over how to do that in the past, so won’t again.)  Looking into the audio device (by clicking in the upper right corner of the screen), Fedora installed ‘Dummy Audio’ device.  So, off to Realtek to get the proper driver… http://www.realtek.com.tw/downloads/downloadsView.aspx?Langid=1&PNid=24&PFid=24&Level=4&Conn=3&DownTypeID=3&GetDown=false  ….  simply accept by checking the box, then click ‘next’.  Download the proper linux driver, depending on your kernel.  Then, double click into the ‘home’ icon, then Downloads.  Double click what you just downloaded, and extract.  The readme says to run ./install, so do that from a shell as root.  Then, one of the rare times you have to reboot, and the audio is now working.  (Of course, if your computer doesn’t have a realtek audio device, your instructions will differ.  😉

Next, to take care of the mp3 support.  It is as simple as installing a couple yum repositories from rpmfusion.  You can either do a google search for ‘rpmfusion install’ or go here:  http://rpmfusion.org/Configuration/  You will want to click on the free and nonfree repositories for Fedora21.  Firefox should default to open with Software Manager, or something…..  Just click Install.

Now, we can use YumEx to install the missing mp3 support.  Run it, and search for ‘mp3’.  Install lame and lame-libs, as well as any dependancies.   Next, search for gstreamer1.  Install gstreamer1-plugins-ugly as well as dependancies.  (This should take care of allowing mp3 playback in rhythmbox.)

That’s pretty much all there is to installing a fairly workable Fedora21 desktop.  The installation only took about 30 minutes, and the boot time is only about 30 seconds to the login prompt, and displays the desktop 5 seconds or so after that.  And, this, on a compaq 8000 Core 2 at 3GHz with 4GB of ram.  😀