lvm2 is stopping the boot process

Sir I have installed Opensuse13.1 again and this time during the boot process the following messages are appearing

  1. starting activation of Lvm2 logical volumes
  2. started activation of Lvm2 logical volumes
  3. A start job is running for dev-disk-by-…/.device

dependency failed for filesystem check on /dev/disk/by-id/ata-st…
timed out waiting for device dev-disk-by…
dependency failed for swap etc…

Actually during the installation I have selected ext4 without lvm but I don’t know why this is happening and finally I am unable to boot properly.

I have checked the filesystem even no use and even I have reinstalled the grub from
no use.

please suggest how to stop the above process and to successfully login to my system.

Can you boot to a Linux CD/DVD/USB?? If so please show us

as root
fdisk -l

Note that is a lower case L not a one

On 2014-01-10 18:36, rupeshforu3 wrote:

> Actually during the installation I have selected ext4 without lvm but I
> don’t know why this is happening and finally I am unable to boot
> properly.

If the boot process mentions lvm, you indeed have lvm somewhere. You can
verify that with “fdisk -l” and “blkid”.

Or, you have a bad entry in fstab.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Yes I am able to boot into rescue mode using installation dud.

When I run the commands fdisk -l it is showing normally.

On 2014-01-11 03:06, rupeshforu3 wrote:
>
> Yes I am able to boot into rescue mode using installation dud.
>
> When I run the commands fdisk -l it is showing normally.

Well, we do want to see here that output, not that you say that they are
normal. Please paste the output of “fdisk -l” here as requested.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Sir I am providing the output of fdisk -l below

Disk /dev/sda: 500.1 GB, 500107862016 bytes, 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk label type: dos
Disk identifier: 0x000e708d

Device Boot Start End Blocks Id System
/dev/sda1 2048 6297599 3147776 83 Linux
/dev/sda2 * 6297600 14684159 4193280 7 HPFS/NTFS/exFAT
/dev/sda3 14684160 976773119 481044480 f W95 Ext’d (LBA)
/dev/sda5 14686208 48242687 16778240 82 Linux swap / Solaris
/dev/sda6 48244736 205535231 78645248 83 Linux
/dev/sda7 205537280 647483391 220973056 83 Linux
/dev/sda8 647485440 976773119 164643840 7 HPFS/NTFS/exFAT

I am providing the output of ***blkid ***below


/dev/sda1: UUID="82360aa8-5dab-438f-b1bd-046e4bac7874" TYPE="ext4" PTTYPE="dos" 
/dev/sda2: UUID="663AE0EC3AE0B9E7" TYPE="ntfs" 
/dev/sda5: UUID="fe402657-b730-4359-9911-cdc0b8034067" TYPE="swap" 
/dev/sda6: UUID="87490394-cafb-47f7-a003-d4648bec6cbd" TYPE="ext4" 
/dev/sda7: UUID="02c9b68f-34ed-44dc-8f0c-dd02769ebabe" TYPE="ext4" 
/dev/sda8: UUID="8AD6FA8FD6FA7AB1" TYPE="ntfs" 
/dev/loop0: TYPE="squashfs" 
/dev/loop1: TYPE="squashfs" 
/dev/loop2: TYPE="squashfs" 
/dev/loop3: TYPE="squashfs" 
/dev/loop4: TYPE="squashfs" 
/dev/sr0: UUID="2013-11-06-20-55-31-00" LABEL="openSUSE-13.1-DVD-x86_640091" TYPE="iso9660" PTTYPE="dos" 

I am providing the contents of ***fstab ***file below


/dev/disk/by-id/ata-ST500DM002-1BD142_Z3T0RHA5-part5 swap                 swap       defaults              0 0
/dev/disk/by-id/ata-ST500DM002-1BD142_Z3T0RHA5-part7 /                    ext4       acl,user_xattr        0 1
/dev/disk/by-id/ata-ST500DM002-1BD142_Z3T0RHA5-part1 /boot                ext4       acl,user_xattr        1 2 
/dev/disk/by-id/ata-ST500DM002-1BD142_Z3T0RHA5-part6 /home                ext4       defaults              1 2

I think that the post is too long so please suggest the solution with patiency

You trimmed the most important information - device name. So the only thing we know that it expected some device to appear but device was not present. Please provide exact name of device. Otherwise there is no way to verify that your /etc/fstab is indeed correct.

I have checked the filesystem even no use and even I have reinstalled the grub from
no use.

This suggests that you can log into the system. Is it correct? Then you could collect some more logs that may help.

This suggests that you can log into the system. Is it correct? Then you could collect some more logs that may help.

Actually I have done all the above process in rescue mode and copied the output of commands to files using redirection and copied these files to windows system using ext2explore software and after that I have pasted the contents of these files to forums.

You trimmed the most important information - device name. So the only thing we know that it expected some device to appear but device was not present. Please provide exact name of device. Otherwise there is no way to verify that your /etc/fstab is indeed correct.

While booting the OS from harddisk these messages appeared and I have wrote down them in paper and later typed into forum.

Finally what I am trying to say is that I am unable to boot into my system.

Sir is there any solution to this issue or not. I can submit any logfiles you specify with which you can try to resolve the issue.

Had you attempted install of LVM before. The data you show has no LVM partitions noted

Start with providing exact error messages on screen, or picture of screen to make sure no typos will be done.

Whilst looking for a problem with grub I saw this thread and a bell rang.

Following the purchase of a new disk OpenSuse 13.1 was loaded. There were one or two minor problems during which I saw messages about LVM2. I have never used lvm on any Linux installation during my 10 years of use. At the time I ignored this but now have been prompted to have another look. When I look at /var/log/boot.log the latest boot (and previous ones) includes:

     Created slice Root Slice.

^[32m OK ^[[0m] Created slice User and Session Slice.
^[32m OK ^[[0m] Created slice System Slice.
^[32m OK ^[[0m] Created slice system-getty.slice.
^[32m OK ^[[0m] Reached target Slices.
Expecting device dev-disk-by\x2did-ata\x2dST31000524AS_5VPDAP3C\x2dpart11.device…
^[32m OK ^[[0m] Started Collect Read-Ahead Data.
^[32m OK ^[[0m] Started Replay Read-Ahead Data.
Starting Load Kernel Modules…
Starting Remount Root and Kernel File Systems…
Starting Setup Virtual Console…
^[32m OK ^[[0m] Started Load Kernel Modules.
^%G^[32m OK ^[[0m] Mounted POSIX Message Queue File System.
^[32m OK ^[[0m] Mounted Debug File System.
^[32m OK ^[[0m] Mounted Huge Pages File System.
^[32m OK ^[[0m] Started Create list of required static device nodes for the current kernel.
Starting Create static device nodes in /dev…
^[32m OK ^[[0m] Started Remount Root and Kernel File Systems.
^[32m OK ^[[0m] Started Create dynamic rule for /dev/root link.
^[32m OK ^[[0m] Started LSB: Set default boot entry if called.
^[32m OK ^[[0m] Started Setup Virtual Console.
Starting udev Coldplug all Devices…
^[32m OK ^[[0m] Started udev Coldplug all Devices.
Starting udev Wait for Complete Device Initialization…
Starting Show Plymouth Boot Screen…
^[32m OK ^[[0m] Started Create static device nodes in /dev.
Starting udev Kernel Device Manager…
^[32m OK ^[[0m] Reached target Local File Systems (Pre).
^[32m OK ^[[0m] Started udev Kernel Device Manager.
^[32m OK ^[[0m] Started udev Wait for Complete Device Initialization.
Starting Activation of LVM2 logical volumes…
^[32m OK ^[[0m] Started Show Plymouth Boot Screen.
^[32m OK ^[[0m] Found device WDC_WD5000AAKS-00A7B2.
Mounting /windows/D…
^[32m OK ^[[0m] Found device WDC_WD5000AAKS-00A7B2.

Then further on in the sequence:

     Starting Apply Kernel Variables...

^[32m OK ^[[0m] Started File System Check on /dev/disk/by-id/ata-WDC_WD20EZRX-00DC0B0_WD-WCC1T1058850-part9.
Mounting /var…
^[32m OK ^[[0m] Started Apply Kernel Variables.
^[32m OK ^[[0m] Mounted /opt.
^[32m OK ^[[0m] Mounted /var.
Starting Load/Save Random Seed…
Mounting Runtime Directory…
Mounting Lock Directory…
^[32m OK ^[[0m] Mounted Runtime Directory.
^[32m OK ^[[0m] Mounted Lock Directory.
^[32m OK ^[[0m] Started Load/Save Random Seed.
^[32m OK ^[[0m] Started Activation of LVM2 logical volumes.
^[32m OK ^[[0m] Reached target Encrypted Volumes.
Starting Activation of LVM2 logical volumes…
^[32m OK ^[[0m] Found device ST31000524AS.
Activating swap /dev/disk/by-id/ata-ST31000524AS_5VPDAP3C-part6…
^[32m OK ^[[0m] Found device ST31000524AS.
Starting File System Check on /dev/disk/by-id/ata-ST31000524AS_5VPDAP3C-part10…
^[32m OK ^[[0m] Activated swap /dev/disk/by-id/ata-ST31000524AS_5VPDAP3C-part6.
^[32m OK ^[[0m] Started Activation of LVM2 logical volumes.
^[32m OK ^[[0m] Found device ST31000524AS.
Mounting /windows/F…
^[32m OK ^[[0m] Found device ST31000524AS.
Starting File System Check on /dev/disk/by-id/ata-ST31000524AS_5VPDAP3C-part11…
^[32m OK ^[[0m] Found device ST31000524AS.

My conclusion is that it may be that this message which is appearing is of no consequence and that the originator’s problem has nothing to do with any lvm messages but elsewhere.

It would be interesting to know if any of the other participants in this thread get similar messages in their boot log files.

On 2014-01-12 12:36, Chilli Burger wrote:

> It would be interesting to know if any of the other participants in this
> thread get similar messages in their boot log files.

You are right, I do:

>
> minas-tirith:~ # grep -i lvm /var/log/messages
> ...
> <3.6> 2014-01-11 20:15:10 minas-tirith lvm 2307 - -  No volume groups found
> <3.6> 2014-01-11 20:15:10 minas-tirith systemd 1 - -  Started Activation of LVM2 logical volumes.
> <3.6> 2014-01-11 20:15:10 minas-tirith systemd 1 - -  Starting Activation of LVM2 logical volumes...
> <3.6> 2014-01-11 20:15:11 minas-tirith lvm 2335 - -  No volume groups found
> <3.6> 2014-01-11 20:15:11 minas-tirith systemd 1 - -  Started Activation of LVM2 logical volumes.


It could be these two services:

lvm2-activation-early.service lvm2-activation.service

Note: not everybody has the file “/var/log/boot.log”. I don’t. It is
created by the plymouth package, which I always remove.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Yes when I issue the command ***rpm -qa | grep lvm ***it is showing lvm package has been installed and also I have seen the directory /etc/lvm and its contents like lvm.conf.

What does the message " dependency check failed on …/disk/… " mean.

It could be these two services:
lvm2-activation-early.service  lvm2-activation.service

Sir I think that these two services are the main causes to the issue in my case so can you please suggest the procedure to disable the above services in detail because I am new to Linux and if I do anything without knowledge it could destroy my system completely.

On 2014-01-12 16:36, rupeshforu3 wrote:
>
> PHP code:
> --------------------
> It could be these two services:
> lvm2-activation-early.service lvm2-activation.service
>
> --------------------
>
>
> Sir I think that these two services are the main causes to the issue in
> my case so can you please suggest the procedure to disable the above
> services in detail because I am new to Linux and if I do anything
> without knowledge it could destroy my system completely.

Wrong.

Please do as arvidjaar asked you nine hours ago.


Cheers / Saludos,

Carlos E. R.
(from 12.3 x86_64 “Dartmouth” at Telcontar)

Hello I have the same problem after upgrading to kernel 4.4.0.1. Boot and shut down its taking a lot of time. The boot log show:

http://pastebin.com/mdSRqJZQ

After uinstalling virtualbox, reinstalling network manager and following this recomendation: https://forums.opensuse.org/showthread.php/503293-Boot-takes-3-minutes-after-installing-Sundtek-USB-DVB-S2-driver
doing:

systemctl mask lvm2-activation-early.service
systemctl mask lvm2-activation.service

Problem remains:

http://pastebin.com/4TSi5Bkr

But if I start the previous kernel 4.3.3.6 (reinstalling NVIDIA driver again) then it is working:

http://pastebin.com/TSagp0GL

My fdisk -l its:


Disk /dev/sda: 931.5 GiB, 1000204886016 bytes, 1953525168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: dos
Disk identifier: 0x76692ca8

Device     Boot      Start        End    Sectors   Size Id Type
/dev/sda1             2048   30716279   30714232  14.7G 1c Hidden W95 FAT32 (L
/dev/sda2         30716280  239400629  208684350  99.5G  7 HPFS/NTFS/exFAT
/dev/sda3  *     239416688 1953520064 1714103377 817.4G  f W95 Ext'd (LBA)
/dev/sda5        239416751 1634742324 1395325574 665.4G  7 HPFS/NTFS/exFAT
/dev/sda6       1634744320 1638934527    4190208     2G 82 Linux swap / Solari
/dev/sda7       1638935298 1848647744  209712447   100G 83 Linux
/dev/sda8       1932539238 1953520064   20980827    10G 83 Linux


And blkid:

/dev/sda1: LABEL="RECOVERY" UUID="3C98-AC5D" TYPE="vfat" PARTUUID="76692ca8-01"
/dev/sda2: LABEL="OS" UUID="6E40872F4086FCD9" TYPE="ntfs" PARTUUID="76692ca8-02"
/dev/sda5: LABEL="DATA" UUID="B26C01CAB53315F1" TYPE="ntfs" PTTYPE="dos" PARTUUID="76692ca8-05"
/dev/sda6: UUID="de3f60c8-44dc-4aff-aadb-0cac1303db71" TYPE="swap" PARTUUID="76692ca8-06"
/dev/sda7: UUID="509f86da-eb1b-464a-840f-9d9c17575846" TYPE="ext4" PARTUUID="76692ca8-07"
/dev/sda8: LABEL="Android-x86" UUID="d37f905a-40e3-4451-8b2e-32f52ef08726" TYPE="ext3" PARTUUID="76692ca8-08"


(sda1 is recovery, sda2 is windows, sda3 is extended partition, sda5 is data partition, sda6 swap, sda7 opensuse and sda8 android-x86)

This is an old thread so we have no idea what version of OS you run please start a new thread