Posts Tagged ‘ETSS’

When your CentOS 7 install fails, anaconda in CLI to the rescue

2018/03/08

Ok, I know I’m always trying to do stuff a bit non-standard (No, running Mageia everywhere IS standard !!)

So this time, I wanted to update my CentOS 6 deployment server in Geneva to CentOS 7 and automate its setup with ansible (I already have some playbooks here to help).

The server is in a DMZ, with pretty strict security control, which normally isn’t an issue, but when eveything else fails…

Ok, so first yum update on that machine didn’t work. Lot’s of issues with that. Most of the messages you find on the net recommend to install another server in parallel. Fine, but this is not a VM, but a real machine (HPE ProLiant DL 180 Gen9) and I don’t have another one ! So I tried to update some packages manually. To make a long story short, glibc updated, but after that nothing worked as you enter in a nightmare with incorrect paths (they put everything under /usr in CentOS 7, so all /bin or /sbin binaries were not working anymore). Ok, so I had to reinstall the machine as no other method could rescue the situation, hopefully keeping my /prj FS safe.

So you use the marvelous Virtual Media feature of your server in order to mount a local ISO image on your system as a local CD of your remotely managed machine. So you download your CentOS 7 DVD latest version and try that. But it doesn’t work. Once again systemd fails to do something (logind launch in that case), and after that nothing works 😦 Did I say already I hate systemd ? And even more the people behind it who think they are always right because it just works for them 😦

After trying multiple things, I found out that CentOS 7.3 was going further on that system, so worked with that. Further meaning I was able to get a shell, but the graphical interface never wanted to launch. And using inst.vnc is not an option due to firewalling restrictions I can’t change on my end. Using inst.sshd was one way to have a working remote access. So I used that and tried to launch anaconda manually.

I used the text mode version, but it wasn’t able to reuse my existing partioning schema, as I found out. Yes, because I’m picky (I know !) on partitioning schema, and that machine had to use md RAID devices in parallel with normal partitions, and LVM on top + ext4 FS as that’s what I want (why do you want to use Linux, if the system dictates to you what to use !! then use Windows instead :-). And I wanted to keep some existing partitions safe. But launching anaconda manually didn’t take in account my existing partitioning schema (or I didn’t find how, in text mode you don’t get much help) so I lost everything on the server, without any warning concerning partitions 😦 So back to backups then.

Ok so now I really have a new install to make, but still with the same partitioning schema. So I decided to create a kickstart for the machine, which would contain that partitioning schema so anaconda could use it (and get the rest of the conf at the same time).

The partitioning shema is as follow (nothing fancy, but nos completely standard either):

part /boot/efi --fstype=efi --ondisk=sda --size=200
part /boot --fstype=ext4 --ondisk=sda --size=500
part /tmp --fstype=ext4 --ondisk=sdb --size=700
part raid.01 --ondisk=sda --grow --size=200
part raid.02 --ondisk=sdb --grow --size=200

raid pv.01 --fstype ext4 --device pv.01 --level=RAID1 raid.01 raid.02
volgroup vg_dl180 --pesize=4096 pv.01
logvol / --fstype=ext4 --name=lv_root --vgname=vg_dl180 --size=40000
logvol /var --fstype=ext4 --name=lv_var --vgname=vg_dl180 --size=10000
logvol swap --name=lv_swap --vgname=vg_dl180 --size=4000
logvol /prj --fstype=ext4 --name=lv_prj --vgname=vg_dl180 --size=520 --grow

Now I don’t want to burn a new DVD to put the ks file on it, so I thought, let’s use the network.

But the instructions which tell you that you can use an instruction to set up the network statically (I have no DHCP server as this server will become the DHCP server of this LAN !) on your system forget one point. If you use ip=IPaddr::GW:NM:… and also inst.ks=http://somewhere/x.ks then the IP is put in DHCP mode automagically :-((

Ok, so now looking at the boot logs, I see that it tries to download the ks file, but can’t because it didn’t get the IP address through DHCP which is why I wanted to pass a static IP conf to it !!!

So you can’t use the inst.ks option, if you need static IP. In fact this is written but in the ip documentation. So let’s do that. You boot again (on my ADSL connection, it’s 30′ each time you try something so we’re 2 days after the start of course) and get to a shell with the IP setup correctly, but no ks file.

And I don’t have anything on that LAN of course, to share with http or NFS. So let’s find a way. Use https://file.io ! You can upload there a text file like the ks file, and get a URL so you can download it with wget in your shell ! (you need to setup the nameserver with the nameserver= option at boot time, or adapt your /etc/resolv.conf locally).

So now I have an IP conf, a local repo (seen as a CD) and the ks file !! I just now need to find a way to say to anaconda to use it. The useful doc can be found on the Fedora Wiki. Ok, not very detailed, but enough for me to try !

I needed to launch it with:
anaconda --text --kickstartfile=file.ks

I had to interactively change the source repo, as I had given a URL in the ks file, but for a reason it didn’t seem to work, so I pointed to the local CD instead (slower as the Virtual media was getting the content of CentOS through my ADSL link, and in that sense, it’s slow ! Luckily I only had 300 packages to install). I also had to setup a simple account (just in case)

And then it worked ! it took time, but worked ! It built my partition schema the way I wanted, and installed everything, including the boot loader correctly (was a UEFI conf).

So next time I’ll be stuck by anaconda not starting graphically, I know what to do, and hopefully you too 🙂

Next step is to automate its configuration, and capture that so I can present it during the upcoming HPE TSS event in Den Haag !

Advertisements

Time to Meet at Hewlett Packard Enterprise Technology & Solutions Summit 2017 !

2017/01/24

It’s time again for me to prepare the HPE TSS designed for our presales and channel partners, with some of our the best experts to transfer knowledge on everything HPE !

We have again this year a track dedicated to Open Source and Linux !).

So I’ll be in Cannes from the 6th to the 10th of February to cover:

  • B90 HPE’s Open Source Strategy – Auditorium K – Tuesday 7th of February 2017 – 5:30PM-6:20PM
  • L30-R1 Docker 101 Tutorial – Lab 1 – Wednesday 8th of February 2017 – 8:30AM-10:20AM
  • B91 Docker @ HPE – Ambassadeurs B – Wednesday 8th of February 2017 – 12:00AM-12:50AM
  • L31 Docker Orchestration Tutorial – Lab 1 – Thursday 9th of February 2017 – 8:30AM-10:20AM
  • B94 Docker: technology aspects and tools – Redaction 1 – Thursday 9th of February 2017 – 3:00PM-3:50PM
  • L30-R2 Docker 101 Tutorial – Lab 3 – Thursday 9th of February 2017 – 4:30PM-6:20PM
  • B92 Linux Distributions roadmap – Redaction 3 – Friday 10th of February 2017 – 8:30AM-9:20AM
  • B6 HPE RESTful API and the Redfish standard – Espace Californie – Friday 10th of February 2017 – 12:00AM-12:50AM

Pretty busy week no ?! And you should be able to replay the labs/tutorials on Wednesday afternoon during the OpenLab session in Lab 1.

A lot of sessions are covering Docker related topics this year, and I’m happy with thatas it’s a great techno, even more with the recently announced 1.13 bringing service support to docker-compose !

For those of you wondering why project-builder.org and MondoRescue versions are not published more regularly, that gives you again a hint 😉 Not speaking of the travel for 2 weeks starting the week after this one, and the next event in March in Grenoble, TES, where I’m part of the Event team and that we’ll organize for the 8th time.

See you there to talk of these subjects or something else as you see fit. I’m around the whole week.

Meet again next week in Paris and at LinuxCon NA 2016 in Toronto

2016/06/19

I’m just back from an HPE Event (the ETSS in Gothenburg, Sweden) and will soon have to start the next ones.

First, I’ll be this week in Paris to talk during a MySQL Meetup to cover automatic deployment, in particular with Redfish, images of reference (and a bit of MondoRescue) and automation (ansible e.g.) for DBA.

Then I’m again lucky this year to be retained as a speaker for the upcoming LinuxCon North America which will be in Toronto, Canada from the 22nd of August to the 27th. I’ll have a session on Continuous Packaging, mandatory for DevOps and a 3 hour Initiation Lab on Docker. Interestingly enough at the same time, Jérôme Petazzoni, Docker, will do one on Swarm !! Maybe we should coordinate and make them one after the other (I’d like to attend his Lab BTW !!)

I have now put all my lab material that I do for HPE on GitHub, to make it easier for attendees to report errors, and for others to use them and learn. I have content for Docker (Done with René Ribaud, Yann Allandit, Michael Bright), Git (Done with Clément Poulain), Redfish (Originally written by François Donzé and done with René Ribaud) and soon for Ironic.

Hope to be able to meet with you here or there !

Time to Meet at Hewlett Packard Enterprise Technology & Solutions Summit 2016 !

2016/01/26

New company name, new event name for our presales and channel partners, but same content of quality with the best experts to transfer knowledge on everything HPE !

And this year, we’ll have a track dedicated to Open Source and Linux ! It’s a first (and hopefully not the last time it’ll be given).

So I’ll be in Cannes next week to cover:

  • HP Helion Openstack 2.0: architecture and live demo – Breakout 145 – Tuesday 2nd of February 2016 – 5:40PM-6:30PM
  • HPE’s Open Source Strategy – Breakout 153 – Wednesday 3rd of February 2016 – 3:00PM-3:50PM
  • Linux Distributions roadmap – Breakout 154 – Thursday 4th of February 2016 – 9:30AM-10:20AM
  • HPE ProLiant Gen9 value add on Linux – Hands-on Lab 24 – Thursday 4th of February 2016 – 4:45PM-6:45PM

And you should be able to meet the Geeks on Wednesday afternoon, myself included.

Other subject of interest are the breakouts 86 (Intro to open source infra automation tools), 48 (container and next gen architecture), and 151 (building an open source high perf object storage cluster with Ceph) and of course the Labs (the Redfish and UEfI ones in particular) and SuSE and Red Hat sponsor sessions. Lots to see !

For those of you wondering why project-builder.org and MondoRescue versions are not published more regularly, that gives you again a hint 😉 Not speaking of the next event in March in Grenoble, TES, where I’m part of the Event team this time.

See you there to talk of these subjects or something else as you see fit. I’m around the whole week.

Time to meet again at HP ExpertOne Technology & Solutions Summit !

2015/06/12

For those of you working for an HP value added reseller (VAR) and attending the HP ExpertOne Technology & Solutions Summit in Dublin from the 16thth to the 19th of June, feel free to meet during one of the session I’ll (co-)deliver:

  • UEFI: what, why, when, how and the rest Breakout 49 – Tuesday 16th of June 2015 – 5:45PM-6:35PM
  • HP Helion OpenStack in action – Breakout 175 – Wednesday 17th of June 2015 – 8:30AM-9:20AM
  • UEFI Hands-On Labs (François Donzé) – Lab 4 – Wednesday 17th of June 2015 – 11:00AM-12:50AM
  • HP ProLiant Gen9 value add on Linux (Hands-on Lab) – Lab 16 – Thursday 18th of June 2015 – 2:00PM-3:50PM
  • HP REST API for iLO Lab (François Donzé) – Lab 6 – Thursday 18th of June 2015 – 4:30PM-6:20PM
  • HP ProLiant Gen9 value add on Linux – Breakout 48 – Friday 19th of June 2015 – 12:00AM-12:50AM

And you should be able to meet the Geeks on Wednesday afternoon, myself included.

For those of you wondering why project-builder.org and MondoRescue versions are not published more regularly, that gives you a hint 😉 Even if I made some progresses recently I also need to document !

See you there to talk of these subjects or something else as you see fit. I’m around the whole week.

Time to Meet at HP ExpertOne Technology & Solutions Summit !

2015/01/21

For those of you working for an HP value added reseller (VAR) and attending the HP ExpertOne Technology & Solutions Summit on Barcelona from the 2nd to the 6th of February, feel free to meet during one of the session I’ll (co-)deliver:

  • UEFI: what, why, when, how and the rest Breakout 101 – Wed 2014-02-04 9:30-10:20 AM
  • HP Helion OpenStack in action – Breakout 124 – Wed 2014-02-04 2:00-2:50PM
  • HP ProLiant Gen9 value add on Linux – Breakout 99 – Thu 2014-02-05 9:30-10:20 AM
  • HP ProLiant Gen9 value add on Linux (Hands-on Lab) – Lab 16 – Thu 2014-02-05 2:00-3:50 PM
  • UEFI Hands-On Labs – Lab 19 – Thu 2014-02-05 4:30-6:20 PM
  • Running Enterprise Linux distributions on HP ProLiant Gen9 – Breakout 100 – Fri 2014-02-06 9:30-10:20 AM

And you should be able to meet the Geeks on Wednesday afternoon, myself included.

For those of you wondering why project-builder.org and MondoRescue versions are not published more regularly, that gives you a hint 😉 Not speaking of the next event in March, TES, where I’m part of the Event team this time.

See you there to talk of these subjects or something else as you see fit. I’m around the whole week.

Meet at HP ExpertOne Technology & Solutions Summit Again !

2014/06/13

For those of you working for an HP value added reseller (VAR) and attending the HP ExpertOne Technology & Solutions Summit in (again) Barcelona from the 24th to the 27th of June, feel free to meet during one of the session I’ll (co-)deliver:

For those of you wondering why project-builder.org and MondoRescue versions are not published more regularly, that gives you a hint 😉

See you there to talk of these subjects or something else as you see fit. I’m around the whole week.

Meet at HP ExpertOne Technology & Solutions Summit

2014/01/22

For those of you working for an HP value added reseller (VAR) and attending the HP ExpertOne Technology & Solutions Summit on Barcelona from the 3rd to the 7th of February, feel free to meet during one of the session I’ll (co-)deliver:

For those of you wondering why project-builder.org and MondoRescue versions are not published more regularly, that gives you a hint 😉

See you there to talk of these subjects or something else as you see fit. I’m around the whole week.