Skip to contentSkip to conversation

Error: vbd: Segment phy

DISCUSSION Phil Carinhas 2 participants 8 messages Nov 10, 2004 – Nov 11, 2004 2 messages not in the archive

lore
Share & tools
lore
#0 lore raw

Im using lvm volumes for this configuration. My xen0 kernel is 2.4.27-xen0 with only dpt_i2o added. My drive is dpt_i2o scsi.

I get this when I try to start xm:

xm create joe -c
Using config file "joe".
Error: vbd: Segment phy:vg0/joe is in writable use

Any ideas?

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#1 lore raw

Xend has detected something that looks unsafe, so it's failing the create. Looks like your LVM volume is either mounted in dom0 or already exported to another domain with write privileges.

Unless you're using a cluster file system like GFS, you need to make sure it's unmounted in dom0 and that it's not exported writeable to other domains, otherwise you'll hose your filesystem.

HTH,
Mark

Quoted 23 lines · Phil Carinhas

Im using lvm volumes for this configuration. My xen0 kernel is 2.4.27-xen0 with only dpt_i2o added. My drive is dpt_i2o scsi.

I get this when I try to start xm:

xm create joe -c
Using config file "joe".
Error: vbd: Segment phy:vg0/joe is in writable use

Any ideas?

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#2 lore raw
Quoted 7 lines · Mark A. Williamson

Xend has detected something that looks unsafe, so it's failing the create. Looks like your LVM volume is either mounted in dom0 or already exported to another domain with write privileges.

Unless you're using a cluster file system like GFS, you need to make sure it's unmounted in dom0 and that it's not exported writeable to other domains, otherwise you'll hose your filesystem.

It's not mounted or in use anywhere. for some reason lvscan shows them all as being ACTIVE. Not sure why.

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#3 lore raw
Quoted 2 lines

It's not mounted or in use anywhere. for some reason lvscan shows them all as being ACTIVE. Not sure why.

Hmmm, that's wacky. There could be something funny going on that's confusing Xend about what's mounted (maybe something doesn't parse properly...).

Could you please post the output of "mount" on the system where this fails so we can try to deduce what's upsetting Xend.

Cheers,
Mark

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#4 lore raw
Quoted 8 lines · Mark A. Williamson
Quoted 2 lines

It's not mounted or in use anywhere. for some reason lvscan shows them all as being ACTIVE. Not sure why.

Hmmm, that's wacky. There could be something funny going on that's confusing Xend about what's mounted (maybe something doesn't parse properly...).

Could you please post the output of "mount" on the system where this fails so we can try to deduce what's upsetting Xend.

Sure,

    # mount
    /dev/sda3 on / type ext3 (rw)
    none on /proc type proc (rw)
    /dev/sda1 on /boot type ext3 (rw)
    none on /dev/pts type devpts (rw,gid=5,mode=620)
    /dev/vg0/home on /home type ext3 (rw)
    none on /dev/shm type tmpfs (rw)
    /dev/sda2 on /var type ext3 (rw)
    /dev/sdb1 on /backup type ext3 (rw)

#ls -la /dev/vg0

   crw-r-----    1 root     disk     109,   0 Nov 10 16:51 group
   brw-rw----    1 root     disk      58,   0 Nov 10 16:51 home
   brw-rw----    1 root     disk      58,   1 Nov 10 16:51 ksinfinity
   brw-rw----    1 root     disk      58,   8 Nov 10 16:51 ksinfinity_swap
   brw-rw----    1 root     disk      58,   2 Nov 10 16:51 sharedhost
   brw-rw----    1 root     disk      58,   9 Nov 10 16:51 sharedhost_swap
   brw-rw----    1 root     disk      58,   3 Nov 10 16:51 vserv1
   brw-rw----    1 root     disk      58,  10 Nov 10 16:51 vserv1_swap
   brw-rw----    1 root     disk      58,   4 Nov 10 16:51 vserv2
   brw-rw----    1 root     disk      58,  11 Nov 10 16:51 vserv2_swap
   brw-rw----    1 root     disk      58,   5 Nov 10 16:51 vserv3
   brw-rw----    1 root     disk      58,  12 Nov 10 16:51 vserv3_swap
   brw-rw----    1 root     disk      58,   6 Nov 10 16:51 vserv4
   brw-rw----    1 root     disk      58,  13 Nov 10 16:51 vserv4_swap
   brw-rw----    1 root     disk      58,   7 Nov 10 16:51 vserv5
   brw-rw----    1 root     disk      58,  14 Nov 10 16:51 vserv5_swap
   # rpm -q lvm
   lvm-1.0.3-15

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#5 lore raw
In reply to Mark A. Williamson
Quoted 8 lines · Mark A. Williamson
Quoted 2 lines

It's not mounted or in use anywhere. for some reason lvscan shows them all as being ACTIVE. Not sure why.

Hmmm, that's wacky. There could be something funny going on that's confusing Xend about what's mounted (maybe something doesn't parse properly...).

Could you please post the output of "mount" on the system where this fails so we can try to deduce what's upsetting Xend.

Mark,
I realize that the ACTIVE flag from lvscan is not relevant. I looked at /proc/lvm/global and it shows all unmounted volumes as closed:

    LVs: [AWDL  ] home                       8388608 /2048     1x open
         [AWDL  ] ksinfinity                 6291456 /1536     close
         [AWDL  ] sharedhost                20971520 /5120     close
         [AWDL  ] vserv1                     3145728 /768      close
         [AWDL  ] vserv2                     3145728 /768      close
         [AWDL  ] vserv3                     3145728 /768      close
         [AWDL  ] vserv4                     3145728 /768      close
         [AWDL  ] vserv5                     3145728 /768      close
         [AWDL  ] ksinfinity_swap             524288 /128      close
         [AWDL  ] sharedhost_swap            1048576 /256      close
         [AWDL  ] vserv1_swap                 262144 /64       close
         [AWDL  ] vserv2_swap                 262144 /64       close
         [AWDL  ] vserv3_swap                 262144 /64       close
         [AWDL  ] vserv4_swap                 262144 /64       close
         [AWDL  ] vserv5_swap                 262144 /64       close

Indeed, home is the only mounted volume. Thanks for pointing that out.

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#6 lore raw

I tried out the parsing code against your mount output and it looks like it should work OK. *scratches head*

I'm guessing lvscan only shows LVs as inactive if it finds them on an unactivated PV somewhere... The LVM documentation is a bit sparse in this area, I think.

It seems somewhat bizarre that you saw the error you did - are things still broken with LVM?

Cheers,
Mark

Quoted 46 lines · Phil Carinhas
Quoted 9 lines · Mark A. Williamson
Quoted 2 lines

It's not mounted or in use anywhere. for some reason lvscan shows them all as being ACTIVE. Not sure why.

Hmmm, that's wacky. There could be something funny going on that's confusing Xend about what's mounted (maybe something doesn't parse properly...).

Could you please post the output of "mount" on the system where this fails so we can try to deduce what's upsetting Xend.

Mark,
I realize that the ACTIVE flag from lvscan is not relevant. I looked at /proc/lvm/global and it shows all unmounted volumes as closed:

    LVs: [AWDL  ] home                       8388608 /2048     1x open
         [AWDL  ] ksinfinity                 6291456 /1536     close
         [AWDL  ] sharedhost                20971520 /5120     close
         [AWDL  ] vserv1                     3145728 /768      close
         [AWDL  ] vserv2                     3145728 /768      close
         [AWDL  ] vserv3                     3145728 /768      close
         [AWDL  ] vserv4                     3145728 /768      close
         [AWDL  ] vserv5                     3145728 /768      close
         [AWDL  ] ksinfinity_swap             524288 /128      close
         [AWDL  ] sharedhost_swap            1048576 /256      close
         [AWDL  ] vserv1_swap                 262144 /64       close
         [AWDL  ] vserv2_swap                 262144 /64       close
         [AWDL  ] vserv3_swap                 262144 /64       close
         [AWDL  ] vserv4_swap                 262144 /64       close
         [AWDL  ] vserv5_swap                 262144 /64       close

Indeed, home is the only mounted volume. Thanks for pointing that out.

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

Quoted 9 lines

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click
_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xen-devel

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click

#9 lore raw
In reply to a message not in the archive
Quoted 14 lines · Mark A. Williamson

How bizarre *shrug* :-)

Great! Let us know if there's any more bother. Did your other problem with the console go away?

Cheers,
Mark

Quoted 5 lines · Phil Carinhas

On Thu, Nov 11, 2004 at 03:20:44PM +0000, Mark A. Williamson wrote:

Mark, I was able to get LVM to work! I don't know what I did differently, but when it accesses the filesystem, /proc/lvm/global doesn't show it being active. Here is a sample of the output:

Mark, yes, I was able to solve the other console problem. Apparently the fedora core2 rootfs was the problem. ttylinux example and my debian rootfs work perfectly. Yesterday, nothing was working, today, everything is:) Thanks again,

-Phil Carinhas
--
.--------------------------------------------------------.

 | Dr. Philip A. Carinhas       | pac(at)fortuitous.com   |
 | Fortuitous Technologies Inc. | http://fortuitous.com   |
 | Linux Networking & Security  | Tel : 1-512-351-7783    |

`--------------------------------------------------------'

-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click