2019-11-28 OSS Leap 15.1 LVM2 hiba

h170pro4:/ # cat /etc/os-release 
NAME="openSUSE Leap"
VERSION="15.1"
ID="opensuse-leap"
ID_LIKE="suse opensuse"
VERSION_ID="15.1"
PRETTY_NAME="openSUSE Leap 15.1"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:opensuse:leap:15.1"
BUG_REPORT_URL="https://bugs.opensuse.org"
HOME_URL="https://www.opensuse.org/"

A tegnapi frissítéssel ezek jöttek:

h170pro4:/ # egrep 2019-11-28 /var/log/zypp/history | grep -i lvm2
2019-11-28 08:34:03|install|liblvm2cmd2_02|2.02.180-lp151.4.6.1|x86_64||download.opensuse.org-oss_1|762754806ee9220108ecaf86ea22703c0d3ce6cb4905a601acdaf016b00fb037|
2019-11-28 08:34:03|install|liblvm2app2_2|2.02.180-lp151.4.6.1|x86_64||download.opensuse.org-oss_1|301022ed0dcbb3b5a66f556a3da5ee72d40aec334b903294db65885ae73d5927|
2019-11-28 08:34:04|install|lvm2|2.02.180-lp151.4.6.1|x86_64||download.opensuse.org-oss_1|d70107477bca599ea0b6708ce6fa99440bf56a4140032cdc891b16ee115d61db|

Az lvm2 tuti hibás! A softraides PV/VG/LV-ok nem mindig látszanak bootoláskor(próbáltam az /etc/lvm/lvm.conf fájlban a filteren állítani, de nem sokat segített).

Csúnya workaround:

1: Commenteld ki /etc/fstab-ban a sorokat:
h170pro4:/ # fgrep "#" /etc/fstab 
#/dev/raid1/home                            /home          xfs   noatime                       0  0
#/dev/raid1/vms                             /home/ice/vms  xfs   noatime                       0  0

2:

h170pro4:/ # cat /etc/systemd/system/workaround.service 
[Unit]
Description=LVM2 bug workaround service
After=basic.target

[Service]
Type=oneshot
User=root
ExecStart=/usr/local/bin/workaround.sh

[Install]
WantedBy=multi-user.target

systemctl --system daemon-reload

h170pro4:/ # cat /usr/local/bin/workaround.sh 
#!/bin/bash

/usr/sbin/lvm pvscan --cache --activate ay
/usr/bin/mount -o noatime /dev/raid1/home /home
/usr/bin/mount -o noatime /dev/raid1/vms /home/ice/vms

chmod +x /usr/local/bin/workaround.sh

systemctl start workaround.service

Ez a workaround mountol bootoláskor.
 

Hozzászólások

igenyesen beraktad a blog szekcioba, gratulalok!

Már azt hittem, hogy szakamilag nem OK valami ... :)