I am running Xen 3.0.1 with Gentoo for Dom0 and when I create a DomU with Debian, the kernel or system does not seem to recognize the volume I have created for swap on the DomU and will not mount it during boot or after. here is the disk section of the xen config for the DomU: disk = [ ''phy:xen-disks/disk-root,hda1,w'',''phy:xen-disks/disk-swap,hda2,w'' ] When the DomU is created, the volume is recognized and assigned to /dev/hda2. From the xend.log: [''root'', ''/dev/hda1 ro''], [''args'', ''3'']]], [''device'', [''vbd'', [''uname'', ''phy:xen-disks/disk-root''], [''dev'', ''hda1''], [''mode'', ''w'']]], [''device'', [''vbd'', [''uname'', ''phy:xen-disks/disk-swap''], [''dev'', ''hda2''], [''mode'', ''w'']]], [''device'', [''vif'']]]) However, during the boot up sequence, the following error messages occur on the console: VFS: Mounted root (ext3 filesystem) readonly. Freeing unused kernel memory: 136k freed INIT: version 2.86 booting Will now activate swap. swapon on /dev/hda2 swapon: cannot stat /dev/hda2: No such file or directory * Swap activation failed with error code 255. ... Will now mount local filesystems. * Mounting proc filesystems failed with error code 32. mount: none already mounted or /dev/pts busy mount: according to mtab, devpts is already mounted on /dev/pts none on /dev/shm type tmpfs (rw) mount: none already mounted or /sys busy mount: according to mtab, sysfs is already mounted on /sys * Mounting local filesystems failed with error code 96. Will now activate swapfile swap. Done activating swapfile swap. I do not have this problem when creating DomUs with Gentoo or Fedora Core. Could the problem reside with the Debian hotplug subsystem? I have reviewed the Xen 3.0/Debian howto at http://www.howtoforge.com/perfect_setup_xen3_debian but I cannot find anything in the howto mentioning this problem. Any ideas on what might be causing the problem, or suggestions on where to look for the cause of the problem. Nothing is standing out in xend.log, and no output into the xend-debug.log Thank you for any help or suggestions you might offer. Dan Lang -- Daniel Lang Systems Administrator SevenL Networks 416.642.1234 - Office 1.866.639.5123 - Toll Free _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Chris Fanning
2006-May-09 16:57 UTC
Re: [Xen-users] Debian DomU not properly mounting swap
Hi Daniel, I had that problem. Installing udev (and reinstalling xen) fixed it. Cheers. Chris. On 5/4/06, Daniel Lang <dlang@sevenl.net> wrote:> I am running Xen 3.0.1 with Gentoo for Dom0 and when I create a DomU > with Debian, the kernel or system does not seem to recognize the volume > I have created for swap on the DomU and will not mount it during boot or > after. > > here is the disk section of the xen config for the DomU: > > disk = [ ''phy:xen-disks/disk-root,hda1,w'',''phy:xen-disks/disk-swap,hda2,w'' ] > > > When the DomU is created, the volume is recognized and assigned to > /dev/hda2. From the xend.log: > > [''root'', ''/dev/hda1 ro''], [''args'', ''3'']]], [''device'', [''vbd'', > [''uname'', ''phy:xen-disks/disk-root''], [''dev'', ''hda1''], [''mode'', ''w'']]], > [''device'', [''vbd'', [''uname'', ''phy:xen-disks/disk-swap''], [''dev'', > ''hda2''], [''mode'', ''w'']]], [''device'', [''vif'']]]) > > However, during the boot up sequence, the following error messages occur > on the console: > > VFS: Mounted root (ext3 filesystem) readonly. > Freeing unused kernel memory: 136k freed > INIT: version 2.86 booting > Will now activate swap. > swapon on /dev/hda2 > swapon: cannot stat /dev/hda2: No such file or directory > * Swap activation failed with error code 255. > ... > Will now mount local filesystems. > * Mounting proc filesystems failed with error code 32. > mount: none already mounted or /dev/pts busy > mount: according to mtab, devpts is already mounted on /dev/pts > none on /dev/shm type tmpfs (rw) > mount: none already mounted or /sys busy > mount: according to mtab, sysfs is already mounted on /sys > * Mounting local filesystems failed with error code 96. > Will now activate swapfile swap. > Done activating swapfile swap. > > > I do not have this problem when creating DomUs with Gentoo or Fedora > Core. Could the problem reside with the Debian hotplug subsystem? I > have reviewed the Xen 3.0/Debian howto at > http://www.howtoforge.com/perfect_setup_xen3_debian but I cannot find > anything in the howto mentioning this problem. > > Any ideas on what might be causing the problem, or suggestions on where > to look for the cause of the problem. Nothing is standing out in > xend.log, and no output into the xend-debug.log > > Thank you for any help or suggestions you might offer. > > Dan Lang > -- > Daniel Lang > > Systems Administrator > SevenL Networks > 416.642.1234 - Office > 1.866.639.5123 - Toll Free > > _______________________________________________ > Xen-users mailing list > Xen-users@lists.xensource.com > http://lists.xensource.com/xen-users >_______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Reasonably Related Threads
- whoops, corrupted my filesystem
- swapfile on btrfs, temporary solution for wiki
- > My HDD got /dev/hda1 which is DOS6.22+w3.11 > hda2 which is w95B > hda3 which is linux native > hda4 which is linux swap > > How sd I enter the win references in my config file in order to be able > to run both w311 and w95 programs ? > > One out of the
- Adding another swap
- Attempting To Recover, fsck infinite looping on me