Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.user > #165529 > unrolled thread
| Started by | Jari Fredriksson <jarif@iki.fi> |
|---|---|
| First post | 2016-03-17 16:50 +0100 |
| Last post | 2016-03-27 19:10 +0200 |
| Articles | 6 — 3 participants |
Back to article view | Back to linux.debian.user
Jessie unable to start lvm2 on boot (raspbian) Jari Fredriksson <jarif@iki.fi> - 2016-03-17 16:50 +0100
Re: Jessie unable to start lvm2 on boot (raspbian) arian <debian@semioptimal.net> - 2016-03-17 17:00 +0100
Re: Jessie unable to start lvm2 on boot (raspbian) Jari Fredriksson <jarif@iki.fi> - 2016-03-27 13:00 +0200
Re: Jessie unable to start lvm2 on boot (raspbian) Jari Fredriksson <jarif@iki.fi> - 2016-03-27 13:10 +0200
Re: Jessie unable to start lvm2 on boot (raspbian) Elimar Riesebieter <riesebie@lxtec.de> - 2016-03-27 13:30 +0200
Re: Jessie unable to start lvm2 on boot (raspbian) Jari Fredriksson <jarif@iki.fi> - 2016-03-27 19:10 +0200
| From | Jari Fredriksson <jarif@iki.fi> |
|---|---|
| Date | 2016-03-17 16:50 +0100 |
| Subject | Jessie unable to start lvm2 on boot (raspbian) |
| Message-ID | <rdIls-MU-21@gated-at.bofh.it> |
I have an USB connected hard disk on my raspberry, and that is used via lvm2. This worked as charm in wheezy, but after I upgraded to jessie it does not work. Every time after a reboot the boot sequence aborts and sshd is not up (maybe because the /home is an lvm2-partition...) and I have to connect a monitor and keyboard into the normally headless box. There I have the following snippets in my /etc/rc.local vgchange -a y service lvm2 start mount -a (and then the starts of various services depending on the newly mounted parts...) I have to enter root password to enter recovery mode in the boot sequence, and the run the /etc/rc.local not once, but twice, and after everything seems ok I have to systemctl default and disconnect the cables. Very irritating. I would be very grateful if someone with similar problems had a cure for this! Thanks. -- jarif.bit
[toc] | [next] | [standalone]
| From | arian <debian@semioptimal.net> |
|---|---|
| Date | 2016-03-17 17:00 +0100 |
| Message-ID | <rdIv7-Qo-11@gated-at.bofh.it> |
| In reply to | #165529 |
[Multipart message — attachments visible in raw view] — view raw
raspbian is not mainline debian. Maybe ask on raspbian support channels? > vgchange -a y > service lvm2 start > mount -a why the service lvm2 start? is lvm service disabled? please provide output of those commands. > Every time after a reboot the boot sequence aborts and sshd is not up (maybe because the /home is an lvm2-partition...) sshd should not bother about /home not being available. default setups won't find users' authorized keys anymore obviously.
[toc] | [prev] | [next] | [standalone]
| From | Jari Fredriksson <jarif@iki.fi> |
|---|---|
| Date | 2016-03-27 13:00 +0200 |
| Message-ID | <rhgAi-71u-7@gated-at.bofh.it> |
| In reply to | #165530 |
arian kirjoitti 17.3.2016 17:50: raspbian is not mainline debian. Maybe ask on raspbian support channels? vgchange -a y service lvm2 start mount -a why the service lvm2 start? is lvm service disabled? please provide output of those commands. Every time after a reboot the boot sequence aborts and sshd is not up (maybe because the /home is an lvm2-partition...) sshd should not bother about /home not being available. default setups won't find users' authorized keys anymore obviously. Output from those commands is expected: the services start. They do not start on boot for *some reason I'm trying to figure out here in this post*. The "fix" to make the services startable seems to be the "vgchange -a". The boot process just cancels and no services will be up, including the sshd... But why is this like it is... -- jarif.bit
[toc] | [prev] | [next] | [standalone]
| From | Jari Fredriksson <jarif@iki.fi> |
|---|---|
| Date | 2016-03-27 13:10 +0200 |
| Message-ID | <rhgJX-7nf-1@gated-at.bofh.it> |
| In reply to | #165530 |
arian kirjoitti 17.3.2016 17:50: > raspbian is not mainline debian. Maybe ask on raspbian support > channels? > >> vgchange -a y >> service lvm2 start >> mount -a > > why the service lvm2 start? is lvm service disabled? > > please provide output of those commands. > >> Every time after a reboot the boot sequence aborts and sshd is not up >> (maybe because the /home is an lvm2-partition...) > > sshd should not bother about /home not being available. default setups > won't find users' authorized keys anymore obviously. Output from those commands is expected: the services start. They do not start on boot for *some reason I'm trying to figure out here in this post*. The "fix" to make the services startable seems to be the "vgchange -a". The boot process just cancels and no services will be up, including the sshd... But why is this like it is... -- jarif.bit
[toc] | [prev] | [next] | [standalone]
| From | Elimar Riesebieter <riesebie@lxtec.de> |
|---|---|
| Date | 2016-03-27 13:30 +0200 |
| Message-ID | <rhh3k-7za-3@gated-at.bofh.it> |
| In reply to | #166013 |
* Jari Fredriksson <jarif@iki.fi> [2016-03-27 14:02 +0300]:
> arian kirjoitti 17.3.2016 17:50:
> >raspbian is not mainline debian. Maybe ask on raspbian support channels?
> >
> >>vgchange -a y
> >>service lvm2 start
> >>mount -a
> >
> >why the service lvm2 start? is lvm service disabled?
> >
> >please provide output of those commands.
> >
> >>Every time after a reboot the boot sequence aborts and sshd is not up
> >>(maybe because the /home is an lvm2-partition...)
> >
> >sshd should not bother about /home not being available. default setups
> >won't find users' authorized keys anymore obviously.
>
> Output from those commands is expected: the services start.
>
> They do not start on boot for *some reason I'm trying to figure out here in
> this post*. The "fix" to make the services startable seems to be the
> "vgchange -a". The boot process just cancels and no services will be up,
> including the sshd...
>
> But why is this like it is...
Workaround:
cat /etc/initramfs-tools/scripts/local-top/vgscan
#!/bin/sh
vgchange -ay
Elimar
--
"Talking much about oneself can also
be a means to conceal oneself."
-Friedrich Nietzsche
[toc] | [prev] | [next] | [standalone]
| From | Jari Fredriksson <jarif@iki.fi> |
|---|---|
| Date | 2016-03-27 19:10 +0200 |
| Message-ID | <rhmml-2Ya-9@gated-at.bofh.it> |
| In reply to | #166014 |
Elimar Riesebieter kirjoitti 27.3.2016 14:23: > * Jari Fredriksson <jarif@iki.fi> [2016-03-27 14:02 +0300]: > >> arian kirjoitti 17.3.2016 17:50: >> >raspbian is not mainline debian. Maybe ask on raspbian support channels? >> > >> >>vgchange -a y >> >>service lvm2 start >> >>mount -a >> > >> >why the service lvm2 start? is lvm service disabled? >> > >> >please provide output of those commands. >> > >> >>Every time after a reboot the boot sequence aborts and sshd is not up >> >>(maybe because the /home is an lvm2-partition...) >> > >> >sshd should not bother about /home not being available. default setups >> >won't find users' authorized keys anymore obviously. >> >> Output from those commands is expected: the services start. >> >> They do not start on boot for *some reason I'm trying to figure out >> here in >> this post*. The "fix" to make the services startable seems to be the >> "vgchange -a". The boot process just cancels and no services will be >> up, >> including the sshd... >> >> But why is this like it is... > > Workaround: > cat /etc/initramfs-tools/scripts/local-top/vgscan > > #!/bin/sh > vgchange -ay > Thanks! I'll give that a shot. -- jarif.bit
[toc] | [prev] | [standalone]
Back to top | Article view | linux.debian.user
csiph-web