Able to boot at first but not when we reboot again

Hi All ,

I have qcow2 image of SLES 12U1 . It boots up first time but when i reboot or restart it says disk not found or waiting for device. Below are some information may help you to understand the situtaion :

I have created one cloud image qcow2 for SLES 12U1 and inbuilt cloud-init too . but strange thing is this it boots sucessfully first time and we can work on it.but when we reboot it says unable to find /dev/sda1 or waiting for device.

I tried to change entries in fstab and grub.cfg with UUID but still same issue.

Please help might me i am nit changing it right but i refered links to do that and same issue.

same kind of thing happening with SLES11U4.

find more details below:

cat /etc/fstab
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
tmpfs /run tmpfs noauto 0 0
/dev/sda1 / ext3 acl 1 1

cat /etc/default/grub
GRUB_DISTRIBUTOR=FESLES12U1MVerF\ \[\ VMX\ \]
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX_DEFAULT=" root=/dev/sda1 disk=/dev/sda resume=swap console=ttyS0,115200n8 console=tty0 net.ifnames=0 NON_PERSISTENT_DEVICE_NAMES=1 quiet"
GRUB_CMDLINE_LINUX=""
GRUB_TERMINAL=gfxterm
GRUB_GFXMODE=800x600
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_THEME="/boot/grub2/themes/studio/theme.txt"
GRUB_BACKGROUND="/boot/grub2/themes/studio/background.png"

blkid
/dev/sda1: LABEL=“ROOT” UUID=“b6c2b503-fb76-4a87-bd35-e6358489b5f8” TYPE=“ext3” PARTUUID=“0bd81907-01”

dmesg | grep disk
[ 1.787019] sd 0:0:0:0: [sda] Attached SCSI disk

ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Apr 6 11:51 ata-QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 ata-QEMU_HARDDISK_QM00001-part1 → …/…/sda1
lrwxrwxrwx 1 root root 9 Apr 6 11:51 scsi-0ATA_QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 scsi-0ATA_QEMU_HARDDISK_QM00001-part1 → …/…/sda1
lrwxrwxrwx 1 root root 9 Apr 6 11:51 scsi-1ATA_QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 scsi-1ATA_QEMU_HARDDISK_QM00001-part1 → …/…/sda1
lrwxrwxrwx 1 root root 9 Apr 6 11:51 scsi-SATA_QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 scsi-SATA_QEMU_HARDDISK_QM00001-part1 → …/…/sda1

ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Apr 6 11:51 b6c2b503-fb76-4a87-bd35-e6358489b5f8 → …/…/sda1

cat /etc/fstab
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
tmpfs /run tmpfs noauto 0 0
/dev/sda1 / ext3 acl 1 1

devtmpfs on /dev type devtmpfs (rw,relatime,size=976748k,nr_inodes=244187,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda1 on / type ext3 (rw,relatime,data=ordered)
sysfs on /sys type sysfs (rw,relatime)
proc on /proc type proc (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=21,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)

please if some one help on this

[QUOTE=gethepc;37431]Hi All ,

I have qcow2 image of SLES 12U1 . It boots up first time but when i reboot or restart it says disk not found or waiting for device. Below are some information may help you to understand the situtaion :

I have created one cloud image qcow2 for SLES 12U1 and inbuilt cloud-init too . but strange thing is this it boots sucessfully first time and we can work on it.but when we reboot it says unable to find /dev/sda1 or waiting for device.

I tried to change entries in fstab and grub.cfg with UUID but still same issue.

Please help might me i am nit changing it right but i refered links to do that and same issue.

same kind of thing happening with SLES11U4.

find more details below:

cat /etc/fstab
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
tmpfs /run tmpfs noauto 0 0
/dev/sda1 / ext3 acl 1 1

cat /etc/default/grub
GRUB_DISTRIBUTOR=FESLES12U1MVerF\ \[\ VMX\ \]
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_CMDLINE_LINUX_DEFAULT=" root=/dev/sda1 disk=/dev/sda resume=swap console=ttyS0,115200n8 console=tty0 net.ifnames=0 NON_PERSISTENT_DEVICE_NAMES=1 quiet"
GRUB_CMDLINE_LINUX=""
GRUB_TERMINAL=gfxterm
GRUB_GFXMODE=800x600
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_THEME="/boot/grub2/themes/studio/theme.txt"
GRUB_BACKGROUND="/boot/grub2/themes/studio/background.png"

blkid
/dev/sda1: LABEL=“ROOT” UUID=“b6c2b503-fb76-4a87-bd35-e6358489b5f8” TYPE=“ext3” PARTUUID=“0bd81907-01”

dmesg | grep disk
[ 1.787019] sd 0:0:0:0: [sda] Attached SCSI disk

ls -l /dev/disk/by-id/
total 0
lrwxrwxrwx 1 root root 9 Apr 6 11:51 ata-QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 ata-QEMU_HARDDISK_QM00001-part1 → …/…/sda1
lrwxrwxrwx 1 root root 9 Apr 6 11:51 scsi-0ATA_QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 scsi-0ATA_QEMU_HARDDISK_QM00001-part1 → …/…/sda1
lrwxrwxrwx 1 root root 9 Apr 6 11:51 scsi-1ATA_QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 scsi-1ATA_QEMU_HARDDISK_QM00001-part1 → …/…/sda1
lrwxrwxrwx 1 root root 9 Apr 6 11:51 scsi-SATA_QEMU_HARDDISK_QM00001 → …/…/sda
lrwxrwxrwx 1 root root 10 Apr 6 11:51 scsi-SATA_QEMU_HARDDISK_QM00001-part1 → …/…/sda1

ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Apr 6 11:51 b6c2b503-fb76-4a87-bd35-e6358489b5f8 → …/…/sda1

cat /etc/fstab
devpts /dev/pts devpts mode=0620,gid=5 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
tmpfs /run tmpfs noauto 0 0
/dev/sda1 / ext3 acl 1 1

devtmpfs on /dev type devtmpfs (rw,relatime,size=976748k,nr_inodes=244187,mode=755)
tmpfs on /dev/shm type tmpfs (rw,relatime)
tmpfs on /run type tmpfs (rw,relatime,mode=755)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620,ptmxmode=000)
/dev/sda1 on / type ext3 (rw,relatime,data=ordered)
sysfs on /sys type sysfs (rw,relatime)
proc on /proc type proc (rw,relatime)
securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)
tmpfs on /sys/fs/cgroup type tmpfs (rw,nosuid,nodev,noexec,mode=755)
cgroup on /sys/fs/cgroup/systemd type cgroup (rw,nosuid,nodev,noexec,relatime,xattr,release_agent=/usr/lib/systemd/systemd-cgroups-agent,name=systemd)
pstore on /sys/fs/pstore type pstore (rw,nosuid,nodev,noexec,relatime)
cgroup on /sys/fs/cgroup/cpuset type cgroup (rw,nosuid,nodev,noexec,relatime,cpuset)
cgroup on /sys/fs/cgroup/cpu,cpuacct type cgroup (rw,nosuid,nodev,noexec,relatime,cpuacct,cpu)
cgroup on /sys/fs/cgroup/memory type cgroup (rw,nosuid,nodev,noexec,relatime,memory)
cgroup on /sys/fs/cgroup/devices type cgroup (rw,nosuid,nodev,noexec,relatime,devices)
cgroup on /sys/fs/cgroup/freezer type cgroup (rw,nosuid,nodev,noexec,relatime,freezer)
cgroup on /sys/fs/cgroup/blkio type cgroup (rw,nosuid,nodev,noexec,relatime,blkio)
cgroup on /sys/fs/cgroup/perf_event type cgroup (rw,nosuid,nodev,noexec,relatime,perf_event)
cgroup on /sys/fs/cgroup/hugetlb type cgroup (rw,nosuid,nodev,noexec,relatime,hugetlb)
systemd-1 on /proc/sys/fs/binfmt_misc type autofs (rw,relatime,fd=21,pgrp=1,timeout=300,minproto=5,maxproto=5,direct)
mqueue on /dev/mqueue type mqueue (rw,relatime)
hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime)
debugfs on /sys/kernel/debug type debugfs (rw,relatime)

please if some one help on this[/QUOTE]

Have you looked at “Images for Use With Multiple Hypervisors” here: https://www.suse.com/documentation/suse-openstack-cloud-7/book_cloud_suppl/data/sec_adm_cli_img_build_req.html might give you some hints.

Thomas

Thanks Thomas for useful info and link. It helps me a lot but issue same .

Infra is : Vmware + Openstack

Dont what else should i do …Actually it boots fine first time after it do whatever you want to do like kernel upgrade partition anything but if you reboot it finds the kernel and load the initrd then after few services it hungs and says waiting/warning /dev/sda1 not found .

One more message i used to get when it boot first time : systemd-udevd : maximum number (72) of childern reached

You could try the JEOS build and compare cloud-init etc with your own image: https://download.suse.com/Download?buildid=6GivJqBH5WA~
I’ve successfully run the jeos in Openstack.

Thomas

[QUOTE=thsundel;37447]You could try the JEOS build and compare cloud-init etc with your own image: https://download.suse.com/Download?buildid=6GivJqBH5WA~
I’ve successfully run the jeos in Openstack.

Thomas[/QUOTE]

Thanks Thomas ! I tried it but same issue.

Honestly my all images boots fine in Raw Openstack enviroment but in fusion it gives this issue

On 12/04/17 09:34, gethepc wrote:
[color=blue]

Honestly my all images boots fine in Raw Openstack enviroment but in
fusion it gives this issue[/color]

Can you please clarify the above comment re fusion (presumably you mean
VMware Fusion?) - are you saying it doesn’t work in Fusion or OpenStack
running within Fusion?

HTH.

Simon
SUSE Knowledge Partner


If you find this post helpful and are logged into the web interface,
please show your appreciation and click on the star below. Thanks.