Despues de agregar un disco virtual a Centos, lo agrego a un volumen y al reinciar se me olvida desmontarlo o mas bien reducir el volumen a su tamaño real.

Cuando enciendo el equipo se produce un kernel panic porque no es capaz de encontrar el volumen que habia generado.

Para solucionarlo reinicio con una live en mi caso una ubuntu que tenia.

 

Instalo el lvm2

 

aptitude install lvm2

 

Visualizo el estado de mis volumenes con pvscan

 

root@ubuntu:~# pvscan
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 33488896: Error de entrada/sali                                                                                                    da
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 33546240: Error de entrada/sali                                                                                                    da
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 4096: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 33488896: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 33546240: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 4096: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
PV /dev/sdb1        VG DATOS           lvm2 [232,88 GiB / 0    free]
PV /dev/sda2        VG VolGroup00      lvm2 [232,78 GiB / 0    free]
PV unknown device   VG VolGroup00      lvm2 [32,00 MiB / 0    free]
PV /dev/ram1                           lvm2 [64,00 MiB]
Total: 4 [465,76 GiB] / in use: 3 [465,70 GiB] / in no VG: 1 [64,00 MiB]

 

Como podemos apreciar en negrita aparece un unknow device asociado a mi grupo VolGroup00 que es el que nos esta dando el kernel panic.

 

Solucion: # vgreduce –removemissing –force VolGroup00 


 

root@ubuntu:~# vgreduce –removemissing –force VolGroup00
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 33488896: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 33546240: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 4096: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 33488896: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 33546240: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 4096: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
/dev/mapper/VolGroup00-imagen-missing_0_0: read failed after 0 of 4096 at 0: Error de entrada/salida
/dev/mapper/VolGroup00-imagen-cow: read failed after 0 of 4096 at 0: Error de entrada/salida
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
/dev/mapper/VolGroup00-LogVol00-real: stat failed: No existe el archivo o directorio
Path /dev/mapper/VolGroup00-LogVol00-real no longer valid for device(252,2)
/dev/disk/by-id/dm-name-VolGroup00-LogVol00-real: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-name-VolGroup00-LogVol00-real no longer valid for device(252,2)
/dev/block/252:2: stat failed: No existe el archivo o directorio
Path /dev/block/252:2 no longer valid for device(252,2)
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5YQO0B5RtWhgjIdQz35QEE3QSVlqk6Ham-real: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5YQO0B5RtWhgjIdQz35QEE3QSVlqk6Ham-real no longer valid for device(252,2)
/dev/mapper/VolGroup00-imagen-missing_0_0: stat failed: No existe el archivo o directorio
Path /dev/mapper/VolGroup00-imagen-missing_0_0 no longer valid for device(252,4)
/dev/disk/by-id/dm-name-VolGroup00-imagen-missing_0_0: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-name-VolGroup00-imagen-missing_0_0 no longer valid for device(252,4)
/dev/block/252:4: stat failed: No existe el archivo o directorio
Path /dev/block/252:4 no longer valid for device(252,4)
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-missing_0_0: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-missing_0_0 no longer valid for device(252,4)
/dev/mapper/VolGroup00-imagen-cow: stat failed: No existe el archivo o directorio
Path /dev/mapper/VolGroup00-imagen-cow no longer valid for device(252,5)
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-cow: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-cow no longer valid for device(252,5)
/dev/block/252:5: stat failed: No existe el archivo o directorio
Path /dev/block/252:5 no longer valid for device(252,5)
/dev/disk/by-id/dm-name-VolGroup00-imagen-cow: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-name-VolGroup00-imagen-cow no longer valid for device(252,5)
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5YQO0B5RtWhgjIdQz35QEE3QSVlqk6Ham-real: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5YQO0B5RtWhgjIdQz35QEE3QSVlqk6Ham-real no longer valid for device(252,2)
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-missing_0_0: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-missing_0_0 no longer valid for device(252,4)
/dev/disk/by-id/dm-name-VolGroup00-imagen-cow: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-name-VolGroup00-imagen-cow no longer valid for device(252,5)
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5YQO0B5RtWhgjIdQz35QEE3QSVlqk6Ham-real: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5YQO0B5RtWhgjIdQz35QEE3QSVlqk6Ham-real no longer valid for device(252,2)
/dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-missing_0_0: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-uuid-LVM-GQz8s9t2aje4z2Sg6oKgf9gR7TsjU5U5uO9lcr4ke28C0rp2C4ibkRJ2rG3MJw6O-missing_0_0 no longer valid for device(252,4)
/dev/disk/by-id/dm-name-VolGroup00-imagen-cow: stat failed: No existe el archivo o directorio
Path /dev/disk/by-id/dm-name-VolGroup00-imagen-cow no longer valid for device(252,5)
Couldn’t find device with uuid ‘BiIn1S-JRq2-VEon-iczM-QXNS-kLkJ-ZKNku3’.
LogVol00 is expected to have only one segment using it, while it has 0
Failed to find mirror_seg for LogVol00
Wrote out consistent volume group VolGroup00

 

Cuando termina lanzo un pvscan y ya no aparece el volumen desconocido.

root@ubuntu:~# pvscan
PV /dev/sdb1   VG DATOS           lvm2 [232,88 GiB / 0    free]
PV /dev/sda2   VG VolGroup00      lvm2 [232,78 GiB / 230,84 GiB free]
PV /dev/ram1                      lvm2 [64,00 MiB]
Total: 3 [465,73 GiB] / in use: 2 [465,66 GiB] / in no VG: 1 [64,00 MiB]

Por admin

Deja una respuesta

Ads Blocker Image Powered by Code Help Pro

Ads Blocker Detected!!!

We have detected that you are using extensions to block ads. Please support us by disabling these ads blocker.

Powered By
100% Free SEO Tools - Tool Kits PRO