Sonntag, 27. November 2011

Upgrading my systems, Minor Problems ahead

Hey, has everybody upgraded to 12.1? Experienced some problems? For me there has been some minor problems with the switch from 11.4 to 12.1. Of course i upgraded via dvd.

First on my Thinkpad: The upgrade was just fine. No Problems. The reboot takes quite long cause it hangs on some harddisk related issues when booting, i need to take a closer look. When it has started the network connection button is just lost, but thats a real minor problem, cause you can simply add it in KDE, a bit weird is that i had to type in my root key about 6 times to add this button. Also strange is that it does not show my home network, just when disable/enable of the wifi it shows up.

On my desktop: Also the upgrade via dvd worked just fine. Only Problem that it just changed the order of my two harddisks. So i had to edit (hd0,0) to (hd1,0) at the grub menu and change it via yast. The network connection has the same problem as on the Thinkpad. What is remarkable is that firefox is slow as hell. First i thought on my internet connectivity, but konqueror works fine.

On my dev-server: Here i upgraded via zypper and yast, as shown in my blog http://suseserver.de/?p=41 everything was just fine. No problems since the upgrade. Yesterday the machine runs into some kernel panic which i need to take a closer look to.

But as said these are only minor Problems. I already did a reinstall of my dev-server and made some nice screenshots on the textinstall. I told you about. I had no problems with this system yet.

So have a lot of fun

Mittwoch, 23. November 2011

[Quick view:] btrfs & snapper

The real great feature in openSUSE 12.1 for me (as I am a server administrator) is btrfs & snapper. After installing the new server environment i guess its time to talk about this feature a bit in detail.

  • btrfs - Its just a new filesystem. Often spoken as Butter FS or Better FS. The development started in 2007. Now a days i guess its a good decision if you like ZFS cause it provides mostly the same features but it is GPL and it runs on Linux :-)
    Some information

    (Wikipedia)

  • snapper - snapper is a tool written by the SUSE guys to make btrfs snapshots and of course handle them


Lets take a closer look

openSUSE handles snapshots in two very cute ways. First of all we have timeline snapshots to take a look on the timeline config  /etc/snapper/configs/root contains the information you are looking for.

But lets take a look on what happens
snapper list

shows you the list of snapshots
Type   | #  | Pre # | Date                     | Cleanup  | Description   | Userdata
-------+----+-------+--------------------------+----------+---------------+---------
single | 0  |       |                          |          | current       |
pre    | 1  |       | Sun Nov 20 18:09:05 2011 | number   | yast firewall |
post   | 2  | 1     | Sun Nov 20 18:09:21 2011 | number   |               |
single | 3  |       | Sun Nov 20 18:15:02 2011 | timeline | timeline      |
pre    | 4  |       | Sun Nov 20 18:17:15 2011 | number   | zypp(zypper)  |
post   | 5  | 4     | Sun Nov 20 18:17:16 2011 | number   |               |
pre    | 8  |       | Sun Nov 20 18:17:54 2011 | number   | zypp(zypper)  |
post   | 9  | 8     | Sun Nov 20 18:17:55 2011 | number   |               |
pre    | 10 |       | Sun Nov 20 18:18:05 2011 | number   | yast runlevel |
post   | 11 | 10    | Sun Nov 20 18:18:22 2011 | number   |               |
pre    | 12 |       | Sun Nov 20 18:18:43 2011 | number   | zypp(zypper)  |
post   | 13 | 12    | Sun Nov 20 18:19:07 2011 | number   |               |
single | 19 |       | Mon Nov 21 00:15:01 2011 | timeline | timeline      |
single | 28 |       | Mon Nov 21 09:15:02 2011 | timeline | timeline      |
single | 29 |       | Mon Nov 21 10:15:01 2011 | timeline | timeline      |
single | 30 |       | Mon Nov 21 11:15:01 2011 | timeline | timeline      |
single | 31 |       | Mon Nov 21 12:15:01 2011 | timeline | timeline      |
single | 32 |       | Mon Nov 21 13:15:01 2011 | timeline | timeline      |
single | 33 |       | Mon Nov 21 14:15:02 2011 | timeline | timeline      |
single | 34 |       | Mon Nov 21 15:15:01 2011 | timeline | timeline      |
single | 35 |       | Mon Nov 21 16:15:01 2011 | timeline | timeline      |
single | 36 |       | Mon Nov 21 17:15:01 2011 | timeline | timeline      |
single | 37 |       | Mon Nov 21 18:15:02 2011 | timeline | timeline      |
single | 38 |       | Mon Nov 21 19:15:01 2011 | timeline | timeline      |
single | 39 |       | Mon Nov 21 20:15:02 2011 | timeline | timeline      |
single | 40 |       | Mon Nov 21 21:15:01 2011 | timeline | timeline      |
single | 41 |       | Mon Nov 21 22:15:01 2011 | timeline | timeline      |
single | 42 |       | Mon Nov 21 23:15:01 2011 | timeline | timeline      |
single | 43 |       | Tue Nov 22 00:15:01 2011 | timeline | timeline      |
single | 44 |       | Tue Nov 22 01:15:01 2011 | timeline | timeline      |
single | 45 |       | Tue Nov 22 02:15:01 2011 | timeline | timeline      |
single | 46 |       | Tue Nov 22 03:15:01 2011 | timeline | timeline      |
single | 47 |       | Tue Nov 22 04:15:02 2011 | timeline | timeline      |
single | 48 |       | Tue Nov 22 05:15:01 2011 | timeline | timeline      |
single | 49 |       | Tue Nov 22 06:15:01 2011 | timeline | timeline      |
pre    | 50 |       | Tue Nov 22 07:12:35 2011 | number   | zypp(zypper)  |
post   | 51 | 50    | Tue Nov 22 07:12:41 2011 | number   |               |
single | 52 |       | Tue Nov 22 07:15:02 2011 | timeline | timeline      |

these are the snapshots my system has done since i installed it for the former post. Here you can find the timeline snapshots which seems to run hourly.
The nicest feature is that openSUSE does snapshots before and after you do changes to the system via yast or via zypper. These snapshots like
pre    | 1  |       | Sun Nov 20 18:09:05 2011 | number   | yast firewall |
post   | 2  | 1     | Sun Nov 20 18:09:21 2011 | number   |               |

consists of two snapshots. One is taken before the change and one after these snapshot above should be the changes i made to the firewall to open the ports for ssh. but we can find out
snapper diff 1..2

--- /.snapshots/1/snapshot/etc/sysconfig/SuSEfirewall2  2011-11-20 18:05:29.957000000 +0100
+++ /.snapshots/2/snapshot/etc/sysconfig/SuSEfirewall2  2011-11-20 18:09:20.133078475 +0100
@@ -318,7 +318,7 @@
 # FW_SERVICES_ACCEPT_*
 #
 # Example: "samba-server nfs-kernel-server"
-FW_CONFIGURATIONS_EXT=""
+FW_CONFIGURATIONS_EXT="sshd"

 ## Type:       string
 #

So, yes, i opened the firewall :-)
Now we could do a
snapper undochange 1..2 /etc/sysconfig/SuSEfirewall2

to just revert the change of the file. To gain a bit more overview on snapper you should take a look on snapper help which provides all the information you could need.

 

Have a lot of fun

Montag, 21. November 2011

openSUSE 12.1 - installation and features

openSUSE 12.1 is just released, to have some of the very nice features i need to setup a complete new system. So what features are the one you want to have

  • Btrfs - Btrfs is a new filesystem which make usage of B-trees so take a look at http://en.wikipedia.org/wiki/Btrfs with this FS we can have a very great feature

  • snapper - snapper is a new system which comes around with openSUSE 12.1 it can handle Btrfs snapshots and gives new features to openSUSE such as restoring config files after a failure or restore failed upgrades.


So lets get started. To Install my new serversystem i use the netinstall cd. On the boot screen i do some changes.

  • use VESA textinsstall

  • use german (sorry, the screenshots will be german in most parts)

  • set network options


The first interesting point during the installation is choosing what to installthere you should go for the minimal serversystem. This includes the minimal features like openssh server and the base system.

We do this new install just for the btrfs system so the second screen which is important will be the partitions.This partition scheme is mostly the default. I am installing on an virtual server, thats why you find an qemu image there.

  • sda1 the /boot partition still needs to be ext4 because openSUSE does not actually support booting the kernel out of btrfs. This is also caused by grub.

  • sda2 is the swap partition

  • sda3 the / system will be btrfs


So, finally what will happen Now we will do the installation. On my side thats just it. There should be no further problem. The installation did just work whithout any problems. After some minuits (depending on your network connection) the machoine should perform an reboot and you should be welcome by

Thats it. Now you should do the normal stuff like starting ssh and open the firewall for the openssh server via yast.

I f you are interested on what btrfs has done to your system

Have a lot of fun

Mittwoch, 16. November 2011

OpenSuse 12.1 PREvisited [UPDATE]

The 12.1 release of OpenSuse is very close . Close enough to upgrade one of my development systems i guess and take a closer look on what comes around, here it goes


[Less than 17 hours away, so its time for the final PREvisit]


The general:


Linux johe 3.1.0-1.2-desktop #1 SMP PREEMPT Thu Nov 3 14:45:45 UTC 2011 (187dde0) x86_64 x86_64 x86_64 GNU/Linux


First one of my favourits, the



  • PostgreSQL database will be available in Version: 9.1.1-3.1.4

  • Apache will be in Version:2.2.21-3.2.2

  • php in Version: 5.3.8-4.2.1

  • perl in Version: 5.14.2-1.9

  • python in Version: 2.7.2-7.1.3

  • gcc has Version: 4.6-15.1.3

  • mariaDB in Version: 5.2.9-2.2.1

  • postfix comes around in Version: 2.8.5-3.2.1


So, a short tour guide for your flight
if you wanne upgrade to the factory, its just an easy step



  1. open yast on the console
    you will find "Software Repositories" in the menu "Software"

  2. Just disable all 11.4 repos
    and add a two new URLs
    http://download.opensuse.org/distribution/121/repo/oss
    and
    http://download.opensuse.org/update/12.1/

  3. Save all
    zypper up and zypper dup via console

Dienstag, 15. November 2011

MySQL migrate to MariaDB

I just thought it is the right time to do a switch. So i will switch from MySQL Community Server to MariaDB.

So first whats the difference
mysql-community-server-5.1.53-4.7.1.x86_64
mariadb-5.1.55-0.5.1.x86_64

As you can see there is just a little difference in the version number. What does this means to us? If you need some overview on the main differences there are several knowledgebases provided by Monty

So with a bit of reading we have found out that both SQL servers should be replaceble with each other cause they are full comaptible.

so, lets get it started
first of all i saved my MySQL data
cp /var/lib/mysql/mysql/* mysql_bak/

than, the afterall easiest step
zypper in mariadb mariadb-client

it was just easy. There will show up two questions. Which will tell you that you need to deinstall MySQL in that casem so something like that
Problem: mysql-community-server-5.1.53-4.7.1.x86_64 conflicts
with namespace:otherproviders(mysql) provided by
mariadb-5.1.55-0.5.1.x86_64
 Solution 1: deinstallation of
mysql-community-server-5.1.53-4.7.1.x86_64
 Solution 2: do not install mariadb-5.1.55-0.5.1.x86_64

So solution 1 just will work. After that you can simply restart mysql via
service mysql restart

and it just worked.

Montag, 14. November 2011

Hello to planet.opensuse.org

My blog is now listed on planet.opensuse.org, so for all new readers

Hello openSUSE world!

and here a short description on what you can find in this blog.
First maybe some sort of introduction to mysql. My name is Jörg Stephan and i work as a system and server administrator. My employee is a TOP 10 domain registrar with round about 3.500.000 domains in service.
I am adminsitrating the 299 debian servers and i currently setup a new service system running SUSE Enterprise Server.

In my privat server infrastruktur i am running openSUSE. And that are the topics of my blog entries. So here you can find posts about apache, webserver, databases and so on.

Have a lot of fun

Sonntag, 13. November 2011

The Packman Repo (cause of sox)

This post does not target any server specific issue. But aims on showing you another repo wich is not already placed in the official OpenSuse repository.

This is called Packman http://packman.links2linux.de/

In this repo you can find many software pakets which you maybe need. I found the repo while trying to convert some of my .ogg files to .mp3. A forum just told me that i could do it just with
sox file.ogg file.mp3

maybe it is really that easy but not with the sox from the OpenSuse repo, so i found the packman repo

In case of 11.4 just do a
sudo zypper addrepo 'http://packman.mirrors.skynet.be/pub/packman/suse/11.4/packman.repo'

and you will be able to install pakets fom this repo
zypper refresh
and
zypper in sox

told me to do a
zypper install sox-14.3.2-26.5.x86_64

and now it works.
For all who have a directory full of ogg files just do
for x in *.ogg ; do sox $x `echo $x|awk -F . '{print $1 ".mp3"}'`; done

and Have a lot of fun :-)