Removing lost physical volumes from a volume group

Removing lost physical volumes from a volume group

LVM
LVM

If you get this crazy message and you are lucky that all data are on the other disk, then you can use this steps.

Get the status of the physical volumes:

pvs
  Couldn't find device with uuid Lxx4Mu-37Ie-3Y2d-kXJe-hd6v-ynUI-pa1zxc.
  PV             VG        Fmt  Attr PSize   PFree  
  /dev/sda2      vg_system lvm2 a--u  99.61g   2.93g
  unknown device vg_system lvm2 a-mu 100.00g 100.00g

Get the status of the volume groups:

vgs
  Couldn't find device with uuid Lxx4Mu-37Ie-3Y2d-kXJe-hd6v-ynUI-pa1zxc.
  VG        #PV #LV #SN Attr   VSize   VFree  
  vg_system   2   5   0 wz-pn- 199.60g 102.92g

Get the status of the logical volumes and the devices:

lvs -a -o +devices
  Couldn't find device with uuid Lxx4Mu-37Ie-3Y2d-kXJe-hd6v-ynUI-pa1zxc.
  LV      VG        Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert Devices         
  lv_home vg_system -wi-ao---- 53.71g                                                     /dev/sda2(0)    
  lv_root vg_system -wi-ao---- 14.65g                                                     /dev/sda2(13750)
  lv_swap vg_system -wi-ao----  3.91g                                                     /dev/sda2(17500)
  lv_tmp  vg_system -wi-ao----  4.88g                                                     /dev/sda2(18500)
  lv_var  vg_system -wi-ao---- 19.53g                                                     /dev/sda2(19750)

Now you can use the test option to try to remove the unknown device from the volume group:

vgreduce --test vg_system --removemissing
  TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
  Couldn't find device with uuid Lxx4Mu-37Ie-3Y2d-kXJe-hd6v-ynUI-pa1zxc.
  Wrote out consistent volume group vg_system

Now remove it and write the change:

vgreduce vg_system --removemissing
  Couldn't find device with uuid Lxx4Mu-37Ie-3Y2d-kXJe-hd6v-ynUI-pa1zxc.
  Wrote out consistent volume group vg_system

You can see the error message is away:

root@tvhvma-psz111: [~]# vgs
  VG        #PV #LV #SN Attr   VSize  VFree
  vg_system   1   5   0 wz--n- 99.61g 2.93g

Now you can add the device again.

Add the physical volume:

pvcreate /dev/sdb1 
  Physical volume "/dev/sdb1" successfully created

Show the status from the physical volumes:

pvs
  PV         VG        Fmt  Attr PSize   PFree  
  /dev/sda2  vg_system lvm2 a--u  99.61g   2.93g
  /dev/sdb1            lvm2 ---- 100.00g 100.00g

Show the status from the volume group:

vgs
  VG        #PV #LV #SN Attr   VSize  VFree
  vg_system   1   5   0 wz--n- 99.61g 2.93g

Add the physical volume to the volume group:

vgextend vg_system /dev/sdb1
  Volume group "vg_system" successfully extended

Now you can see the aktiv physical volume:

pvs
  PV         VG        Fmt  Attr PSize   PFree  
  /dev/sda2  vg_system lvm2 a--u  99.61g   2.93g
  /dev/sdb1  vg_system lvm2 a--u 100.00g 100.00g

Show the status from the group and you can see now is more space.

vgs
  VG        #PV #LV #SN Attr   VSize   VFree  
  vg_system   2   5   0 wz--n- 199.60g 102.92g

Thunderbird 45 fix paragraph (two lines)

Thunderbird 45 fix paragraph (two lines)

If you update to the new Thunderbird version, the implemented a new “function”. If you press enter, you get two lines. This is very ugly and irritating for me.

To disable this, please go to the settings, composition and disable “When using paragraph format, the enter key creates a new paragraph”

thunderbird 45 fix
thunderbird 45 fix

Now you can press enter and it will be normal again.

Ubuntu upgrade from 14.04 to 16.04

Ubuntu upgrade from 14.04 to 16.04

logo-ubuntu
logo-ubuntu

To upgrade from Ubuntu 14.04 to 16.04, you can use the ubuntu tool update-manager. This tool make a clean upgrade from the system.

Please before update your system.

sudo apt-get update
sudo apt-get dist-upgrade

If you are done with the upgrade, install the update-manager-core.

sudo apt-get install update-manager-core

Now upgrade to the new ubuntu release.

sudo do-release-upgrade -d