jueves, 7 de febrero de 2019

error Can't open /dev/mapper/mp_u01 exclusively. Mounted filesystem?


Este error se produjo al intentar agregar o remover un disco

La solucion fue borrarlo con el dm-setup y volverlo a crear como se muestra a continuacion

# pvcreate /dev/mapper/mp_u01
  Can't open /dev/mapper/mp_u01 exclusively.  Mounted filesystem?

# dmsetup info -C
Name               Maj Min Stat Open Targ Event  UUID
mpathak            253  70 L--w    0    1      1 mpath-36000144000000010f0058d828093e679
mpdata07           253  42 L--w    1    1      1 mpath-360000970000292603946533030334646
mpdata09p1         253  38 L--w  105    1      0 part1-mpath-360000970000292603946533030334533
mpfra_01           253  47 L--w    1    1      1 mpath-360000970000292603946533030343033
mpathap2           253   3 L--w    3    1      0 part2-mpath-3600508b1001c33eca8bffe940a55d328
mpathaj            253  64 L--w    0    1      1 mpath-36000144000000010f0058d828093e65f
VolGroup00-lv_swap 253  52 L--w    1    1      0 LVM-e16sRDsZfUWb1Tet4ezit8hAzJtMQjrVjOrQlG97MssYdlXrPzHCcqQJlutRiWcM
mpdata06           253  32 L--w    1    1      1 mpath-360000970000292603946533030334537
VG_app-lv_app      253  56 L--w    1    1      0 LVM-2kHoNZKFTh4zbnOZvsMRd9wuhyrcLdMebmg73Aut8Zw6molkBjC6vL99MU6aToGs
VolGroup00-lv_root 253  51 L--w    1    1      0 LVM-e16sRDsZfUWb1Tet4ezit8hAzJtMQjrVsQKPdVwFz4U5UKamzS7Zzz8DU1cIA0Si
mpocr03            253  16 L--w    1    1      1 mpath-360000970000292603946533030344143
mpathap1           253   2 L--w    1    1      0 part1-mpath-3600508b1001c33eca8bffe940a55d328
mpu00p1            253  14 L--w    1    1      0 part1-mpath-360000970000292603946533030343244
mpathai            253  63 L--w    0    1      1 mpath-36000144000000010f0058d828093e655
mpdata05           253  33 L--w    1    1      3 mpath-360000970000292603946533030334542
mpathc             253   4 L--r    0    1      1 mpath-360000970000292603946533030303530
mpocr02            253  22 L--w    1    1      1 mpath-360000970000292603946533030344144
mpocr01p1          253  19 L--w    8    1      0 part1-mpath-360000970000292603946533030344145
mpu01p1            253  11 L--w    1    1      0 part1-mpath-360000970000292603946533030343245
mpocr02p1          253  28 L--w    4    1      0 part1-mpath-360000970000292603946533030344144
mpathah            253  61 L--w    0    1      1 mpath-36000144000000010f0058d828093e650
mpdata04           253  35 L--w    1    1      1 mpath-360000970000292603946533030334546
mpathb             253   1 L--w    0    1      1 mpath-3600508b1001cdc8279ddb944060d80dd
mpocr01            253  12 L--w    1    1      3 mpath-360000970000292603946533030344145
mpocr03p1          253  23 L--w    5    1      0 part1-mpath-360000970000292603946533030344143
VG_u01-lv_u01      253  54 L--w    1    1      0 LVM-TCKdgDIRBA0gtx8HpGXam20xk0p97uwCQu7qLu7R077NgxmwymnY6Y3l8t2aWIE0
mpathag            253  62 L--w    0    1      1 mpath-36000144000000010f0058d828093e65a
mpdata03           253  36 L--w    1    1      1 mpath-360000970000292603946533030334633
mpatha             253   0 L--w    2    1      0 mpath-3600508b1001c33eca8bffe940a55d328
mpdata10p1         253  37 L--w  106    1      0 part1-mpath-360000970000292603946533030334446
mp_logsp1          253  68 L--w    1    1      0 part1-mpath-36000144000000010f0058d828093e649
mpathaf            253  65 L--w    0    1      1 mpath-36000144000000010f0058d828093e664
mpdata02           253  39 L--w    1    1      1 mpath-360000970000292603946533030334637
mpdata11p1         253  34 L--w  107    1      0 part1-mpath-360000970000292603946533030334442
mpappsp1           253   9 L--w    1    1      0 part1-mpath-360000970000292603946533030343231
mpdata12p1         253  31 L--w  108    1      0 part1-mpath-360000970000292603946533030334437
mpdata01           253  45 L--w    1    1      1 mpath-360000970000292603946533030334642
VG_logs-pvmove0    253  73 L--w    1    1      0 LVM-rnGCrs5MGQMsHW6Ec9PWN0L9sYQ1ceKwSnRphlJfL8GCuiwYOEPmhavL24wLeoad
mpdata13p1         253  25 L--w  105    1      0 part1-mpath-360000970000292603946533030334433
mpdata14p1         253  27 L--w  105    1      0 part1-mpath-360000970000292603946533030334346
mpdata15           253  13 L--w    1    1      1 mpath-360000970000292603946533030334342
mp_logs            253  60 L--w    1    1      1 mpath-36000144000000010f0058d828093e649
mpdata15p1         253  20 L--w  107    1      0 part1-mpath-360000970000292603946533030334342
mpathac            253  59 L--w    0    1      1 mpath-36000144000000010f0058d828093e644
mpdata14           253  18 L--w    1    1      3 mpath-360000970000292603946533030334346
mpdata01p1         253  49 L--w  108    1      0 part1-mpath-360000970000292603946533030334642
mpathao            253  71 L--w    0    1      1 mpath-36000144000000010f0058d828093e67e
mpdata02p1         253  46 L--w  107    1      0 part1-mpath-360000970000292603946533030334637
mpfra_01p1         253  50 L--w   17    1      0 part1-mpath-360000970000292603946533030343033
mpdata13           253  17 L--w    1    1      1 mpath-360000970000292603946533030334433
mp_u01             253  58 L--w    1    1      1 mpath-36000144000000010f0058d828093e63f
mplogs             253   6 L--w    1    1      1 mpath-360000970000292603946533030343236
mpdata03p1         253  44 L--w  111    1      0 part1-mpath-360000970000292603946533030334633
mpathan            253  66 L--w    0    1      1 mpath-36000144000000010f0058d828093e669
mpdata04p1         253  43 L--w  107    1      0 part1-mpath-360000970000292603946533030334546
mpdata12           253  24 L--w    1    1      1 mpath-360000970000292603946533030334437
mp_u00             253  72 L--w    1    1      1 mpath-36000144000000010f0058d828093e63a
VG_logs-lv_logs    253  55 L--w    1    1      0 LVM-rnGCrs5MGQMsHW6Ec9PWN0L9sYQ1ceKweTWBIajB0zDGXuD0BUNiDdN2GYbRaKnX
VolGroup00-lv_home 253  57 L--w    1    1      0 LVM-e16sRDsZfUWb1Tet4ezit8hAzJtMQjrVjVNtDyy4HR2PDYKdq8XWD3He0DACFTe5
mpdata05p1         253  41 L--w  110    1      0 part1-mpath-360000970000292603946533030334542
mp_u00p1           253  74 L--w    0    1      0 part1-mpath-36000144000000010f0058d828093e63a
mpatham            253  67 L--w    0    1      1 mpath-36000144000000010f0058d828093e66e
VG_u00-lv_u00      253  53 L--w    1    1      0 LVM-niGBoMDkV3y8BFKMWfRMwbxT3h2gePlw30jEiPqpIJZGPXMskKSnY2oJdegLlzPm
mpdata09           253  30 L--w    1    1      1 mpath-360000970000292603946533030334533
mpdata11           253  26 L--w    1    1      1 mpath-360000970000292603946533030334442
mpapps             253   5 L--w    1    1      1 mpath-360000970000292603946533030343231
mpdata06p1         253  40 L--w  114    1      0 part1-mpath-360000970000292603946533030334537
mp_u01p1           253  75 L--w    0    1      0
mplogsp1           253  10 L--w    1    1      0 part1-mpath-360000970000292603946533030343236
mpu01              253   7 L--w    1    1      1 mpath-360000970000292603946533030343245
mpathal            253  69 L--w    0    1      1 mpath-36000144000000010f0058d828093e673
mpdata07p1         253  48 L--w  106    1      0 part1-mpath-360000970000292603946533030334646
mpdata08           253  15 L--w    1    1      1 mpath-360000970000292603946533030334337
mpdata10           253  29 L--w    1    1      3 mpath-360000970000292603946533030334446
mpdata08p1         253  21 L--w  107    1      0 part1-mpath-360000970000292603946533030334337
mpu00              253   8 L--w    1    1      1 mpath-360000970000292603946533030343244

# dmsetup remove mp_u01p1
# pvcreate /dev/mapper/mp_u01
  Writing physical volume data to disk "/dev/mapper/mp_u01"
  Physical volume "/dev/mapper/mp_u01" successfully created
#

No hay comentarios:

Publicar un comentario

Comentarios