• Willkommen im Linux Club - dem deutschsprachigen Supportforum für GNU/Linux. Registriere dich kostenlos, um alle Inhalte zu sehen und Fragen zu stellen.

boot.lvm aktiviert Logical Volume nicht

Nach einem Crash musste ich mein Logical Volume /dev/vg/lv manuell wiederherstellen:
Code:
e2fsck  -f  -pv /dev/vg/lv
Danach lief alles bis zum nächsten Boot.
Dann wurde das Logical Volume nicht mehr bei Boot-Vorgang aktiviert
Code:
lvdisplay
  --- Logical volume ---
  LV Name                /dev/vg/lv
  ....
  LV Status              NOT available
...
Manuell ließ sich das beheben
Code:
vgchange -ay
Meine Nachforschungen haben ergeben, dass diese Funktion das Script /etc/init.d/boot.lvm bei Boot-Vorgang übernimmt. Es wird auch von /etc/init.d/boot.d/S10boot.lvm aktiviert. Nur ohne Erfolg!
Mein Workaround für dieses Problem: Aufruf von
Code:
etc/init.d/boot.lvm strat
im Script /etc/init.d/boot.local.
Das funktioniert, aber warum hier und nicht an der vorgesehnen Stelle ???

Weiter Infos:
OpenSUSE 11.1
vgdisplay -v
Code:
  --- Volume group ---
  VG Name               vg
  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               821,25 GB
  PE Size               256,00 MB
  Total PE              3285
  Alloc PE / Size       3285 / 821,25 GB
  Free  PE / Size       0 / 0
  VG UUID               J4aJ13-LM1w-15bI-fvpr-IAa6-USxL-XtLMtg

  --- Logical volume ---
  LV Name                /dev/vg/lv
  VG Name                vg
  LV UUID                pSbZ3Q-2yRo-IoKD-tCt0-TwvB-JE1A-Y2AshS
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                821,25 GB
  Current LE             3285
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

  --- Physical volumes ---
  PV Name               /dev/sdc
  PV UUID               m2e0gv-YPTH-iCDi-0Otd-Bhf3-C9CR-KxZ7PK
  PV Status             allocatable
  Total PE / Free PE    1863 / 0

  PV Name               /dev/sdb3
  PV UUID               WL0HqK-20CZ-QUF3-x0Pa-O00d-uEEh-3YDgJy
  PV Status             allocatable
  Total PE / Free PE    1422 / 0
ll /etc/init.d/boot.d
Code:
....
lrwxrwxrwx 1 root root 16  2. Apr 07:38 S01boot.blktrace -> ../boot.blktrace
lrwxrwxrwx 1 root root 12  2. Apr 07:38 S02boot.udev -> ../boot.udev
lrwxrwxrwx 1 root root 16  2. Apr 07:38 S03boot.rootfsck -> ../boot.rootfsck
lrwxrwxrwx 1 root root 13  2. Apr 07:38 S04boot.clock -> ../boot.clock
lrwxrwxrwx 1 root root 21  2. Apr 07:38 S05boot.device-mapper -> ../boot.device-mapper
lrwxrwxrwx 1 root root 19  2. Apr 07:38 S05boot.loadmodules -> ../boot.loadmodules
lrwxrwxrwx 1 root root 11 23. Apr 18:21 S10boot.lvm -> ../boot.lvm
lrwxrwxrwx 1 root root 15  2. Apr 07:38 S11boot.localfs -> ../boot.localfs
lrwxrwxrwx 1 root root 14  2. Apr 08:49 S12boot.crypto -> ../boot.crypto
lrwxrwxrwx 1 root root 15  2. Apr 07:38 S13boot.cleanup -> ../boot.cleanup
lrwxrwxrwx 1 root root 13  2. Apr 07:38 S13boot.cycle -> ../boot.cycle
lrwxrwxrwx 1 root root 12  2. Apr 07:38 S13boot.fuse -> ../boot.fuse
lrwxrwxrwx 1 root root 12  2. Apr 07:38 S13boot.klog -> ../boot.klog
lrwxrwxrwx 1 root root 12  2. Apr 07:38 S13boot.proc -> ../boot.proc
lrwxrwxrwx 1 root root 12  2. Apr 07:38 S13boot.scpm -> ../boot.scpm
lrwxrwxrwx 1 root root 12  2. Apr 07:38 S13boot.swap -> ../boot.swap
lrwxrwxrwx 1 root root 18  2. Apr 07:38 S13boot.udev_retry -> ../boot.udev_retry
lrwxrwxrwx 1 root root 16  2. Apr 07:38 S14boot.ldconfig -> ../boot.ldconfig
lrwxrwxrwx 1 root root 16  2. Apr 07:38 S14boot.localnet -> ../boot.localnet
lrwxrwxrwx 1 root root 14  2. Apr 07:38 S14boot.sysctl -> ../boot.sysctl
lrwxrwxrwx 1 root root 16  2. Apr 07:38 S15boot.ipconfig -> ../boot.ipconfig
lrwxrwxrwx 1 root root 11 23. Apr 18:21 SK05boot.lvm -> ../boot.lvm
 
Oben