Skip to contentSkip to conversation

starting domain when block device already mounted

DISCUSSION James Harper 3 participants 3 messages Jan 16, 2005 – Jan 17, 2005

lore
Share & tools
lore
#0 lore raw

My disks line is:

disk = [ 'phy:vg00/mail,0301,w', 'phy:vg00/mail-swap,0302,w' ]

The unpriv domain is up and running again, although I don't know what damage has been done. /etc/passwd was missing though which is not a good sign. I found it in /lost+found, but who knows what else is missing!

Thanks

James

Quoted 5 lines

-----Original Message-----
From: Ian Pratt [mailto:[email protected]]
Sent: Monday, 17 January 2005 09:34
To: James Harper; [email protected]
Subject: RE: [Xen-devel] starting domain when block device already

mounted

Quoted 5 lines
Quoted 5 lines

I just had a filesystem hosed in an unpriv domain (ext3 errors all over
the place), and then when I went to do a fsck on the block device it told me it was already mounted, and sure enough, dom0 already had

the

Quoted 7 lines
Quoted 5 lines

device mounted. Would that cause a filesystem crash, or at least errors?
Dom0 wasn't doing anything to the filesystem, and the unpriv domain had
been up for a few weeks before this occurred.

Mounting an ext3 file system writeable in two domains is almost

certain

Quoted 3 lines

to destroy it.

The tools try and prevent this. Was it a 'file:' vbd? There's

currently

Quoted 10 lines

no safety checks for those, but there should be for physical partition and LVM volumes.

Ian

Quoted 5 lines

Anyway, I've done this a few times before by mistake - made a few changes to the unpriv domain's filesystem from dom0 and forgot to unmount it before starting the domain. Is there any easy way to get 'xm
create' to check before starting that none of the block devices it

is

Quoted 7 lines
Quoted 7 lines

about to export are in use? Such a thing would probably save me countless headaches in the future! (or maybe it's been done already? I'm
running 2.0.1)

Thanks

Quoted 7 lines
Quoted 7 lines

James

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well,

almost....http://www.thinkgeek.com/sfshirt

Quoted 5 lines
Quoted 5 lines

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#1 lore raw

Are you mounting the device within dom0 after creating the domU? I'm not sure there's anything Xend can do about that.

Regards,

Quoted 100 lines · James Harper

My disks line is:

disk = [ 'phy:vg00/mail,0301,w', 'phy:vg00/mail-swap,0302,w' ]

The unpriv domain is up and running again, although I don't know what damage has been done. /etc/passwd was missing though which is not a good sign. I found it in /lost+found, but who knows what else is missing!

Thanks

James

Quoted 7 lines

-----Original Message-----
From: Ian Pratt [mailto:[email protected]]
Sent: Monday, 17 January 2005 09:34
To: James Harper; [email protected]
Subject: RE: [Xen-devel] starting domain when block device already

mounted

Quoted 6 lines
Quoted 6 lines

I just had a filesystem hosed in an unpriv domain (ext3 errors all over
the place), and then when I went to do a fsck on the block device it told me it was already mounted, and sure enough, dom0 already had

the

Quoted 10 lines
Quoted 7 lines

device mounted. Would that cause a filesystem crash, or at least errors?
Dom0 wasn't doing anything to the filesystem, and the unpriv domain had
been up for a few weeks before this occurred.

Mounting an ext3 file system writeable in two domains is almost

certain

Quoted 5 lines

to destroy it.

The tools try and prevent this. Was it a 'file:' vbd? There's

currently

Quoted 14 lines

no safety checks for those, but there should be for physical partition and LVM volumes.

Ian

Quoted 7 lines

Anyway, I've done this a few times before by mistake - made a few changes to the unpriv domain's filesystem from dom0 and forgot to unmount it before starting the domain. Is there any easy way to get 'xm
create' to check before starting that none of the block devices it

is

Quoted 10 lines
Quoted 10 lines

about to export are in use? Such a thing would probably save me countless headaches in the future! (or maybe it's been done already? I'm
running 2.0.1)

Thanks

James

Quoted 6 lines
Quoted 6 lines

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well,

almost....http://www.thinkgeek.com/sfshirt

Quoted 7 lines
Quoted 7 lines

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 11 lines

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt

#2 lore raw
Quoted 2 lines

Are you mounting the device within dom0 after creating the domU? I'm not sure there's anything Xend can do about that.

Yes that's correct - if you try and mount domain filesystems read / write after the domain is started then it'll probably succeed but the filesystem will get hosed.

Even mounting read-only in dom0 will confuse the filesystem driver if the domain writes anything.

Cheers,
Mark

Quoted 90 lines

Regards,

Quoted 78 lines · James Harper

My disks line is:

disk = [ 'phy:vg00/mail,0301,w', 'phy:vg00/mail-swap,0302,w' ]

The unpriv domain is up and running again, although I don't know what damage has been done. /etc/passwd was missing though which is not a good sign. I found it in /lost+found, but who knows what else is missing!

Thanks

James

Quoted 5 lines

-----Original Message-----
From: Ian Pratt [mailto:[email protected]]
Sent: Monday, 17 January 2005 09:34
To: James Harper; [email protected]
Subject: RE: [Xen-devel] starting domain when block device already

mounted

Quoted 4 lines
Quoted 4 lines

I just had a filesystem hosed in an unpriv domain (ext3 errors all over
the place), and then when I went to do a fsck on the block device it told me it was already mounted, and sure enough, dom0 already had

the

Quoted 7 lines
Quoted 5 lines

device mounted. Would that cause a filesystem crash, or at least errors?
Dom0 wasn't doing anything to the filesystem, and the unpriv domain had
been up for a few weeks before this occurred.

Mounting an ext3 file system writeable in two domains is almost

certain

Quoted 3 lines

to destroy it.

The tools try and prevent this. Was it a 'file:' vbd? There's

currently

Quoted 10 lines

no safety checks for those, but there should be for physical partition and LVM volumes.

Ian

Quoted 5 lines

Anyway, I've done this a few times before by mistake - made a few changes to the unpriv domain's filesystem from dom0 and forgot to unmount it before starting the domain. Is there any easy way to get 'xm
create' to check before starting that none of the block devices it

is

Quoted 7 lines
Quoted 7 lines

about to export are in use? Such a thing would probably save me countless headaches in the future! (or maybe it's been done already? I'm
running 2.0.1)

Thanks

Quoted 7 lines
Quoted 7 lines

James

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well,

almost....http://www.thinkgeek.com/sfshirt

Quoted 4 lines
Quoted 4 lines

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 8 lines

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

Quoted 8 lines

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt