[Bug 1460794] Re: systemd will not work with a separate /usr partition

2015-06-10 Thread Martin Pitt
The /usr appears to be on its own filesystem ... is just a warning.
Booting with separate /usr is supported, as long as it's a local
partition and not a remote one (the latter could work, but really nobody
tests this). I just did a 15.04 installation with separate /usr, and it
works fine.

Could there be something wrong with your /etc/fstab perhaps? Maybe some
UUID mismatch or so? In the emergency shell, can you please do

  journalctl -b  /root/journal.txt
  blkid  /root/blkid.txt

and attach /etc/fstab, /root/blkid.txt, and /root/journal.txt here?
Thanks!

** Summary changed:

- systemd will not work with a separate /usr partition
+ systemd does not boot with a separate /usr partition

** Changed in: systemd (Ubuntu)
   Status: New = Incomplete

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1460794

Title:
  systemd does not boot with a separate /usr partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1460794/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


Re: [Bug 1460794] Re: systemd will not work with a separate /usr partition

2015-06-10 Thread Robert Hardy
On 2015-06-10 08:59, Martin Pitt wrote:
 The /usr appears to be on its own filesystem ... is just a warning.
 Booting with separate /usr is supported, as long as it's a local
 partition and not a remote one (the latter could work, but really nobody
 tests this). I just did a 15.04 installation with separate /usr, and it
 works fine.

 Could there be something wrong with your /etc/fstab perhaps? Maybe some
 UUID mismatch or so? In the emergency shell, can you please do

journalctl -b  /root/journal.txt
blkid  /root/blkid.txt

 and attach /etc/fstab, /root/blkid.txt, and /root/journal.txt here?
 Thanks!

 ** Summary changed:

 - systemd will not work with a separate /usr partition
 + systemd does not boot with a separate /usr partition

 ** Changed in: systemd (Ubuntu)
 Status: New = Incomplete


I've been working with Linux for 20 years, I really doubt there was 
anything wrong with my fstab. The system configuration had been working 
perfectly since it was installed using Ubuntu 10.04 several years ago.

The upgrade from 14.04 to 14.10 worked fine. It was the 14.10 to 15.05 
upgrade that blew up.

It was not just a warning. The system and emergency mode were both 
unusable until I switched back to upstart.

Even after the switch to upstart the 15.04 system would only boot only 
with manual intervention on the console during every boot as /var 
stopped being automatically mounted.

The system sat there with an error not booting until I manually did a 
mount -av from emergency mode and then continued the boot process.  This 
happened on each and every boot.

In my honest opinion to test this properly you would have to test a 
system which had been upgraded from 14.04 with a similar layout with 
separate ext4 partitions. You might get away with starting at 14.10...

This was a total system failure on a production server over ten days 
ago. I couldn't just leave it failed state for two weeks. The journalctl 
and blkid commands would only show the current system state after all 
was rebuilt, where everything is working fine. Do you still want them?

As I indicated previously in my comments I was forced to wipe all my 
partitions from a rescue disk and switch to a boot, root, home partition 
layout abandoning my previous system layout. I then restored from backups.

I was able to restore my old /etc/fstab from a backup. Before the 
upgrade it was as follows:
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# file system mount point   type options   dump  pass
proc/proc   procnodev,noexec,nosuid 0   0
# / was on /dev/sda1 during installation
UUID=676235cd-93b1-426e-8336-fa0078d96145 / ext4errors=remount-ro 
0   1
/dev/mapper/Guru2VG1-home /home   xfs defaults0   2
/dev/mapper/Guru2VG1-tmp /tmpext4 defaults0   2
/dev/mapper/Guru2VG1-usr /usrext4 defaults0   2
/dev/mapper/Guru2VG1-var /varext4 defaults0   2
cgroup   /dev/cgroup cgroup defaults0   0
# swap was on /dev/sda2 during installation
UUID=217f140d-f4ad-45a3-9486-9e3af1734f0d none swapsw  
0   0
UUID=3a482248-399d-4fbd-aa1d-e013343b44e5 /mnt/backups   
xfsdefaults 0   0
UUID=99649f74-7be3-427a-9eef-65a1b2922196 /mnt/tmp   xfs
defaults 0   0

All a journalctl -b would gather now would be the boot log data 9 days 
after this was all fixed. The log only goes back 3 days. The blkid would 
capture uuids for the new partitions. Do you still want those? Perhaps 
other logs would be more helpful? I do have nightly backups.

Regards,
Robert Hardy

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1460794

Title:
  systemd does not boot with a separate /usr partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1460794/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs


[Bug 1460794] Re: systemd will not work with a separate /usr partition

2015-06-02 Thread Robert Hardy
Please note attempting to mitigate this by switching back to upstart
failed as well.

Doing so did make it so the system would boot past mounting /usr however
for no obvious reason the system stopped automatically mounting the /var
partition.

With no network services running, the system would stop the boot process
on a screen and complain /var hadn't mounted and prompt me to press m to
enter emergency mode. Once I did that and logged in, /var was in fact
not mounted and a mount -av would immediately mount it and then exiting
emergency mode would cause a normal boot to complete. This should be a
blocking issue for 16.04 as it will cause a lot of grief to end users
when servers fail during upgrades. If I didn't have an IPMI remote
console device I would have been really stuck.

To be clear the only fix that worked was connecting using an IPMI remote 
console device, booting my server from a rescue iso, taring up each of my 
partitions with tar cpf and dumping them on a disk outside my raid array. I 
then wiped all the partitions off my main raid array and switched to a 
configurations where I had 1 primary boot, 1 primary swap and a root and home 
partition in a LVM physical volume. I then formated boot ext2, root btrfs and 
home xfs and extracted all the tars. I then follow a process similar to the one 
below to reinstall grub: 
https://help.ubuntu.com/community/Grub2/Installing#via_ChRoot
At the end of the process, inside the chroot, I also did an: update-initramfs -u

The result was a working system but was way way more effort than should
have been required.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1460794

Title:
  systemd will not work with a separate /usr partition

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1460794/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs