Ho trovato questo documento:
https://www.suse.com/support/kb/doc/?id=000019545; se non ho capito male
sembra che il problema sia dovuto al fatto che nei dischi aggiunti in
cui ho creato le partizioni per il mirror md0 non ho lasciato spazio
libero mentre invece avrei dovuto lasciare uno spazio di 8MB per LVM...
ora non riesco a ridimensionare una partizione con un raid vero?
:(
Piviul
Il 04/08/21 10:17, Piviul ha scritto:
Ciao a tutti, su un PC con 2 dischi in raid 1 (md1) software
utilizzati come pv di un lv su cui ho installato debian ho aggiunto
altri 2 dischi: ho quindi creato un nuovo raid 1 sui 2 dischi (md0) e
li ho aggiunti come PV quindi ho fatto il grow del volume logico su
cui avevo installato debian, Al boot ora non parte più, da un errore e
compare il prompt della console di grub:
error: disk
'lvmid/ROCH5Y-fqDh-ApY2-jC0e-vfr9-7Asx-ECw328/H8Osen-SR2M-52Ly-j1eR-mXDP-cFYX-YugNgi'
not found.
Entering rescue mode...
grub rescue>
Questa è la situazione di lvm:
# pvdisplay
--- Physical volume ---
PV Name /dev/md1
VG Name vg-root
PV Size <930,89 GiB / not usable 3,81 MiB
Allocatable yes (but full)
PE Size 4,00 MiB
Total PE 238306
Free PE 0
Allocated PE 238306
PV UUID jFAL7U-fDSm-0cic-bJ52-cD0S-BAK1-PUe4gk
--- Physical volume ---
PV Name /dev/md0
VG Name vg-root
PV Size 12,73 TiB / not usable <1,94 MiB
Allocatable yes
PE Size 4,00 MiB
Total PE 3337951
Free PE 716511
Allocated PE 2621440
PV UUID Li4V1E-DKS9-HrxR-9C30-nwEq-rvQC-k6Uu2v
# vgdisplay
--- Volume group ---
VG Name vg-root
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 4
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 2
Act PV 2
VG Size 13,64 TiB
PE Size 4,00 MiB
Total PE 3576257
Alloc PE / Size 2859746 / <10,91 TiB
Free PE / Size 716511 / 2,73 TiB
VG UUID ROCH5Y-fqDh-ApY2-jC0e-vfr9-7Asx-ECw328
# lvdisplay
--- Logical volume ---
LV Path /dev/vg-root/lv-root
LV Name lv-root
VG Name vg-root
LV UUID H8Osen-SR2M-52Ly-j1eR-mXDP-cFYX-YugNgi
LV Write Access read/write
LV Creation host, time backup, 2021-02-22 09:44:43 +0000
LV Status available
# open 1
LV Size <10,91 TiB
Current LE 2859746
Segments 2
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:0
Da una live ho eseguito:
# mount /dev/mapper/vg--root-lv--root /mnt
# mount -t proc none /mnt/proc && mount -o bind /dev /mnt/dev && mount
-t sysfs sys /mnt/sys
# chroot /mnt/ /bin/bash
ho provato a lanciare grub-install /dev/sda ma da i seguenti warning:
# grub-install /dev/sda
Installing for i386-pc platform.
WARNING: Device /dev/loop0 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/sda not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/md0 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/vg-root/lv-root not initialized in udev
database even after waiting 10000000 microseconds.
WARNING: Device /dev/loop1 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/sda1 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/md1 not initialized in udev database even after
waiting 10000000 microseconds.
WARNING: Device /dev/loop2 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/sda2 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/loop3 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/loop4 not initialized in udev database even
after waiting 10000000 microseconds.
WARNING: Device /dev/loop5 not initialized in udev database even
after waiting 10000000 microseconds.
[...]
non so, sono un po' confuso... senza reinstallare tutto secondo voi
riesco a rifarlo partire?
Grazie!
Piviul