Bug 38911 - EC2: Uses /dev/xvda instead of /dev/vda (GRUB)
EC2: Uses /dev/xvda instead of /dev/vda (GRUB)
Status: RESOLVED WORKSFORME
Product: UCS
Classification: Unclassified
Component: General
UCS 4.0
Other Linux
: P5 normal (vote)
: UCS 4.0-x
Assigned To: UCS maintainers
:
Depends on:
Blocks: 56574
  Show dependency treegraph
 
Reported: 2015-07-13 12:55 CEST by Philipp Hahn
Modified: 2023-10-18 12:10 CEST (History)
1 user (show)

See Also:
What kind of report is it?: Bug Report
What type of bug is this?: 3: Simply Wrong: The implementation doesn't match the docu
Who will be affected by this bug?: 1: Will affect a very few installed domains
How will those affected feel about the bug?: 5: Blocking further progress on the daily work
User Pain: 0.086
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2015-07-13 12:55:30 CEST
01_base.99check_log_files.test

[2015-07-12 18:23:06.401121] E: updater.log:1993, /usr/sbin/grub-probe: error: cannot find a GRUB drive for /dev/vda.  Check your device.map.

Maybe also this:

[2015-07-12 18:23:06.401240] W: updater.log:314, Checking for space on /var/cache/apt/archives: df: Warning: cannot read table of mounted file systems: No such file or directory
[2015-07-12 18:23:06.401290] W: updater.log:316, Checking for space on /boot: df: Warning: cannot read table of mounted file systems: No such file or directory
[2015-07-12 18:23:06.401340] W: updater.log:318, Checking for space on /: df: Warning: cannot read table of mounted file systems: No such file or directory


Next time update /dev/vda → /dev/xdva, as Amazon EC2 is based on Xen:

Updated doc/extended-docs/installation-4.0.xml:

DEV='/dev/xvda' GRUB='(hd0)'
grub-mkdevicemap ||
 echo "${GRUB} ${DEV}" >/boot/grub/device.map
append="$(ucr get grub/append |
 sed -re "s|/dev/sda|${DEV}|g;s|(no)?splash||g")"
xargs -d'\n' ucr set <<__UCR__
grub/append=${append}
grub/boot=${DEV}
grub/root=${DEV}1
grub/grub1root=${GRUB}
grub/bootsplash=no
grub/quiet=no
__UCR__
update-initramfs -uk all
update-grub
univention-grub-generate-menu-lst


"grub-mkdevicemap" only works in HVM, as for PV EC2 only provides partition 1 (/dev/xdva1) directly, but not a full disk (/dev/xvda)!
Comment 1 Philipp Hahn univentionstaff 2015-07-13 13:04:05 CEST
(In reply to Philipp Hahn from comment #0)
> Updated doc/extended-docs/installation-4.0.xml:
r62064 | Bug #38911 doc: EC2 grub config
Comment 2 Philipp Hahn univentionstaff 2015-07-15 15:13:02 CEST
r62111 | Bug #36256 EC2: GRUB workaround
r62133 | Bug #36256 EC2: GRUB workaround
 Temporary workaround for ucs-ec2-test

Revert when new fixed EC2 images are created.
Comment 3 Philipp Hahn univentionstaff 2015-07-22 11:49:20 CEST
$ euca-describe-images ami-cdb3c5ba
...
BLOCKDEVICEMAPPING      /dev/sda1       snap-41a68b68   10

UCS-3.2 is still PV, "/dev/xvda" should be used instead of "/dev/sda"
Comment 4 Stefan Gohmann univentionstaff 2015-08-12 09:29:40 CEST
r62948 + r62949:
* 00_checks/99check_log_files: Ignore another EC2 specific grub error
  message (Bug #38911)
Comment 5 Philipp Hahn univentionstaff 2017-09-20 10:43:28 CEST
OK: euca-describe-images ami-b03afbc9