RvL
2003-Oct-28 14:45 UTC
[Xen-devel] Problem with dissapearing files on virtual domain...
Hello, i''m creating a virtual domain with a seperate partition. When i start the domain, ssh into it: bash-2.05b# ssh 192.168.0.2 root@192.168.0.2''s password: Last login: Fri Oct 31 17:43:12 2003 from 192.168.0.116 Linux 2.4.22-xeno. root@xeno2:~# that works, then i create a directory : root@xeno2:~# mkdir this_is_a_test_directory root@xeno2:~# ls loadlin16c.txt loadlin16c.zip this_is_a_test_directory/ root@xeno2:~# then i do a sync: root@xeno2:~# sync and a ls again : root@xeno2:~# ls loadlin16c.txt loadlin16c.zip root@xeno2:~# and my created dir is gone... where do i look for an answer for this problem??? (which info do you need to help me out, and i''ll post it) thanks in advance, Robin ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Keir Fraser
2003-Oct-28 15:00 UTC
Re: [Xen-devel] Problem with dissapearing files on virtual domain...
> and my created dir is gone... > > where do i look for an answer for this problem??? > > (which info do you need to help me out, and i''ll post it)Perhaps you could send the output of ''df'', both from domain 0 and from your new domain. Is the filesystem shared with some other domain? It is not safe to share a filesystem unless all sharing domains mount it read-only. If this isn''t the problem, then is the filesystem on a ram disk? That ought not to cause this problem though... -- Keir ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Keir Fraser
2003-Oct-28 19:33 UTC
Re: [Xen-devel] Problem with dissapearing files on virtual domain...
> my uneducated guess was that it was a problem with swap devices. > my old setup was domain0 /dev/hda2 as a swap device, > domain1 no swap device, but i tried domain1 /swapfile (150) mb file > created with dd if=/dev/zero of=/swapfile, and mkswap /swapfile, > sync, sync , swapon /swapfile .... but that didn''t work either.Have you granted domain 1 *write* access to hda5? To do this you pass the ''-w'' flag to ''xenctl physical grant''. I''d hope that Linux would compain loudly if you tried to mount a read-write filesystem from a volume which it can''t write to. However, I won''t be surprised if we haven''t got that quite right --- I''d be interested to know if this is the problem! -- Keir ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
Keir Fraser
2003-Oct-28 21:04 UTC
Re: [Xen-devel] Problem with dissapearing files on virtual domain...
> > my uneducated guess was that it was a problem with swap devices. > > my old setup was domain0 /dev/hda2 as a swap device, > > domain1 no swap device, but i tried domain1 /swapfile (150) mb file > > created with dd if=/dev/zero of=/swapfile, and mkswap /swapfile, > > sync, sync , swapon /swapfile .... but that didn''t work either. > > Have you granted domain 1 *write* access to hda5? To do this you pass > the ''-w'' flag to ''xenctl physical grant''. > > I''d hope that Linux would compain loudly if you tried to mount a > read-write filesystem from a volume which it can''t write to. However, > I won''t be surprised if we haven''t got that quite right --- I''d be > interested to know if this is the problem!Okay, I''m now certain that this is your problem. Grant domain 1 access using the -w flag and the file will not disappear! Also, the latest check-in contains a fix to Xenolinux so that you cannot mount a read-only partition for read-write access. Much saner :-) Oh yeah: this is now the latest-semistable release. Please beat up on it and let us know of any weirdnesses. It''s probably a good idea for us to push out a proper 1.1 release before starting our next batch of big hacks! -- Keir ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel
RvL
2003-Oct-29 12:06 UTC
Re: [Xen-devel] Problem with dissapearing files on virtual domain...
Thanks, this was indeed the solution for this problem. Keir Fraser wrote:>>>my uneducated guess was that it was a problem with swap devices. >>>my old setup was domain0 /dev/hda2 as a swap device, >>>domain1 no swap device, but i tried domain1 /swapfile (150) mb file >>>created with dd if=/dev/zero of=/swapfile, and mkswap /swapfile, >>>sync, sync , swapon /swapfile .... but that didn''t work either. >>> >>> >>Have you granted domain 1 *write* access to hda5? To do this you pass >>the ''-w'' flag to ''xenctl physical grant''. >> >>I''d hope that Linux would compain loudly if you tried to mount a >>read-write filesystem from a volume which it can''t write to. However, >>I won''t be surprised if we haven''t got that quite right --- I''d be >>interested to know if this is the problem! >> >> > >Okay, I''m now certain that this is your problem. Grant domain 1 access >using the -w flag and the file will not disappear! > >Also, the latest check-in contains a fix to Xenolinux so that you >cannot mount a read-only partition for read-write access. Much saner >:-) > >Oh yeah: this is now the latest-semistable release. Please beat up on >it and let us know of any weirdnesses. It''s probably a good idea for >us to push out a proper 1.1 release before starting our next batch of >big hacks! > > -- Keir > > >------------------------------------------------------- >This SF.net email is sponsored by: SF.net Giveback Program. >Does SourceForge.net help you be more productive? Does it >help you create better code? SHARE THE LOVE, and help us help >YOU! Click Here: http://sourceforge.net/donate/ >_______________________________________________ >Xen-devel mailing list >Xen-devel@lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/xen-devel > >------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel