LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud
User Name
Password
Linux - Virtualization and Cloud This forum is for the discussion of all topics relating to Linux Virtualization and Linux Cloud platforms. Xen, KVM, OpenVZ, VirtualBox, VMware, Linux-VServer and all other Linux Virtualization platforms are welcome. OpenStack, CloudStack, ownCloud, Cloud Foundry, Eucalyptus, Nimbus, OpenNebula and all other Linux Cloud platforms are welcome. Note that questions relating solely to non-Linux OS's should be asked in the General forum.

Notices


Reply
  Search this Thread
Old 11-29-2010, 11:18 PM   #1
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 101Reputation: 101
Xen - mkinitrd hangs at "Found root device xvda2 for LABEL=/"


Hi folks,

Because of Ganglia reporting high iowait, I re-check with iostat, sar, ...:
Code:
# iostat 1 3
Linux 2.6.18-128.1.10.el5.xs5.5.0.51xen (svr150-4107.localdomain)     11/30/2010

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.02    0.04    0.03    2.05    0.00   97.86

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
xvdd              0.00         0.00         0.00        632          0
xvdb              0.04         0.00         1.74       7401   20043032
xvdb1             0.00         0.00         0.00       1471       1280
xvdb2             0.04         0.00         1.74       5274   20041752
xvda              1.63         2.80        26.83   32122608  308266520
xvda1             0.00         0.02         0.00     182654      15696
xvda2             1.63         2.78        26.83   31939394  308250824

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.00    0.00    0.00  100.00    0.00    0.00

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
xvdd              0.00         0.00         0.00          0          0
xvdb              0.00         0.00         0.00          0          0
xvdb1             0.00         0.00         0.00          0          0
xvdb2             0.00         0.00         0.00          0          0
xvda              0.00         0.00         0.00          0          0
xvda1             0.00         0.00         0.00          0          0
xvda2             0.00         0.00         0.00          0          0

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           0.00    0.00    0.00  100.00    0.00    0.00

Device:            tps   Blk_read/s   Blk_wrtn/s   Blk_read   Blk_wrtn
xvdd              0.00         0.00         0.00          0          0
xvdb              0.00         0.00         0.00          0          0
xvdb1             0.00         0.00         0.00          0          0
xvdb2             0.00         0.00         0.00          0          0
xvda              3.00         0.00       120.00          0        120
xvda1             0.00         0.00         0.00          0          0
xvda2             3.00         0.00       120.00          0        120
Code:
12:22:30 PM       CPU     %user     %nice   %system   %iowait    %steal     %idle
12:22:31 PM       all      0.00      0.00      0.00    100.00      0.00      0.00
12:22:32 PM       all      0.00      0.00      0.00    100.00      0.00      0.00
`fdisk -l` and other commands related to disk hangs in D state:
Code:
# ps -eo pid,user,state,cmd | awk '$3 ~ /D/ { print $0 }'
 1142 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
 7742 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
 8061 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
 8948 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
 9848 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
 9974 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
10143 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
19531 root     D fdisk -l
26075 root     D fdisk -l
26536 root     D fdisk -l
26788 root     D fdisk -l
30780 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
30906 root     D lvm.static lvs --ignorelockingfailure --noheadings -o vg_name xvda2
therefore, the first thing come to my mind is I got the problem with virtual disks but I have no ideas to check.

I tried to update my whole system - CentOS 5.5 and prepare for the reboot (backuped with fallback option in grub.conf), but I got stuck in mkinitrd:
Code:
# mkinitrd -v -f /boot/initrd-2.6.18-194.26.1.el5xen.img 2.6.18-194.26.1.el5xen
Creating initramfs
Looking for deps of module ehci-hcd
Looking for deps of module ohci-hcd
Looking for deps of module uhci-hcd
Looking for deps of module ext3: jbd 
Looking for deps of module jbd
Found root device xvda2 for LABEL=/
... hangs in here
Any suggestions will be appreciated.

PS: my /etc/mtab:
Code:
/dev/xvda2 / ext3 rw 0 0
proc /proc proc rw 0 0
sysfs /sys sysfs rw 0 0
devpts /dev/pts devpts rw,gid=5,mode=620 0 0
/dev/xvdb2 /data ext3 rw 0 0
/dev/xvda1 /boot ext3 rw 0 0
tmpfs /dev/shm tmpfs rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0

Last edited by quanta; 11-30-2010 at 12:45 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Running kernel.org "mainline" Linux on Xen: FAILED to find root device bojanap Linux - Kernel 1 09-17-2010 11:42 PM
Standard commands give "-bash: open: command not found" even in "su -" and "su root" mibo12 Linux - General 4 11-11-2007 10:18 PM
VFS: cannot open root device "LABEL=\" or 00:00 venkatesh111 Linux - Kernel 3 05-04-2006 09:47 AM
FC2; VFS: Cannot open root device "LABEL=/" or unknown-block(0,0) Starchild Fedora 11 01-18-2006 03:39 AM
VFS: Cannot Open Root Device "Label=/" abefroman Red Hat 4 05-03-2005 09:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Virtualization and Cloud

All times are GMT -5. The time now is 08:37 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration