Hi, I just discovered that none of my VMs does not mount the swap drive! The VM just does not "see" the /dev/sda2 as a block device. It seams it doesn't matter if the supplyed drive is phy or file. It seams a few people had this problem in the past, but noone posted the solution. Can anyone point me into the right direction? Best regards, Uros PS: my config: kernel = "/boot/vmlinuz-2.6-xenU" memory = 128 name = "slack" vcpus = 1 vif = [''] #dhcp = "dhcp" dhcp = "192.168.1.151" netmask = "255.255.255.0" hostname = "slack" disk = [ 'file:/opt/xen/domains/slack/slackware.10-2.img,sda1,w', 'psy:/dev/evms/Swap,sda2,w' ] root = "/dev/sda1 ro" or with disk = [ 'file:/opt/xen/domains/slack/slackware.10-2.img,sda1,w', 'file:/opt/xen/domains/slack/slackware.swap,sda2,w' ] _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Did you marked them as swap, with mkswap? Geza> Hi, > > I just discovered that none of my VMs does not mount the swap drive! > The VM just does not "see" the /dev/sda2 as a block device. > > It seams it doesn''t matter if the supplyed drive is phy or file. > > It seams a few people had this problem in the past, but noone posted > the solution. Can anyone point me into the right direction? > > Best regards, > Uros > > PS: my config: > kernel = "/boot/vmlinuz-2.6-xenU" > memory = 128 > name = "slack" > vcpus = 1 > vif = [''''] > #dhcp = "dhcp" > dhcp = "192.168.1.151" > netmask = "255.255.255.0" > hostname = "slack" > disk = [ ''file:/opt/xen/domains/slack/slackware.10-2.img,sda1,w'', > ''psy:/dev/evms/Swap,sda2,w'' ] > root = "/dev/sda1 ro" > > or with > > disk = [ ''file:/opt/xen/domains/slack/slackware.10-2.img,sda1,w'', > ''file:/opt/xen/domains/slack/slackware.swap,sda2,w'' ] > _______________________________________________ > 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
Uros Trebec wrote:> Hi, > > I just discovered that none of my VMs does not mount the swap drive! > The VM just does not "see" the /dev/sda2 as a block device.Have you included a swap entry in your /etc/fstab? /dev/sda2 swap swap defaults 0 0 Hope that helps, Mike Wright> > It seams it doesn''t matter if the supplyed drive phy or file. > > It seams a few people had this problem in the past, but noone posted > the solution. Can anyone point me into the right direction? > > Best regards, > Uros > > PS: my config: > kernel = "/boot/vmlinuz-2.6-xenU" > memory = 128 > name = "slack" > vcpus = 1 > vif = [''''] > #dhcp = "dhcp" > dhcp = "192.168.1.151" > netmask = "255.255.255.0" > hostname = "slack" > disk = [ ''file:/opt/xen/domains/slack/slackware.10-2.img,sda1,w'', > ''psy:/dev/evms/Swap,sda2,w'' ] > root = "/dev/sda1 ro" > > or with > > disk = [ ''file:/opt/xen/domains/slack/slackware.10-2.img,sda1,w'', > ''file:/opt/xen/domains/slack/slackware.swap,sda2,w'' ] > > > ------------------------------------------------------------------------ > > _______________________________________________ > 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
UT> ''psy:/dev/evms/Swap,sda2,w'' ] ^^^ Shouldn''t this be ''phy'' instead of ''psy''? -- Dan Smith IBM Linux Technology Center Open Hypervisor Team email: danms@us.ibm.com _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Henrik Holmboe
2006-Mar-15 11:21 UTC
Re: [xen-users] Swap not mounting! (another problem report)
"Uros Trebec" <uros.trebec@gmail.com> writes:>I just discovered that none of my VMs does not mount the swap drive! >The VM just does not "see" the /dev/sda2 as a block device.Verify that you have udev and hotplug installed. -- Henrik Holmboe, Stockholm, Sweden <http://henrik.holmboe.se/contact/> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Henrik Holmboe
2006-Mar-15 11:47 UTC
Re: [xen-users] Swap not mounting! (solved for my part)
Henrik Holmboe <henrik@holmboe.se> writes:>"Uros Trebec" <uros.trebec@gmail.com> writes: > >>I just discovered that none of my VMs does not mount the swap drive! >>The VM just does not "see" the /dev/sda2 as a block device. > >Verify that you have udev and hotplug installed.Sorry for sending a misleading Subject in the last email. [As I was writing a long and detailed problem report I suddenly realized that the hotplug system was the culprit, and short thereafter solved the problem (when using Debian). And I accidently didn''t change back the subject, which I changed in the first place to signify a concurring problem report.] -- Henrik Holmboe, Stockholm, Sweden <http://henrik.holmboe.se/contact/> _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users