[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-users] Detach specific partition LVM of XEN


  • To: xen-users@xxxxxxxxxxxxxxxxxxx
  • From: "Souza Anderson" <souzalix@xxxxxxxxx>
  • Date: Thu, 12 Jun 2008 14:39:52 -0600
  • Delivery-date: Thu, 12 Jun 2008 13:40:25 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type; b=pRaiWzqkd5urPspbXhuVcaFzHIg7nc6KE3WIBRqR6YOhSkxfQRw043EtpqLIFu6RCX ti1NMfMVRHwEVMkNW62hEng2GI4Wql+5ktCJvwCz3e1jt445xUKl84SWgrsNio/PrMUs Q8YMmuhW83anLUNZmtu5N8koEGSpn9F//tmN8=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

Hi...
 
I have had a problem when I am going to detach one specific LVM partitions of Xen, so I have been trying xm destroy <domain>, lvchange -an <lvm_partition>, lvremove -f.... So I haven't had sucess. I restarted the server with init 1 yet and nothing... I have seem two specific process started xenwatch and xenbus, but I am not sure if this processes have some action over LVM partitions + XEN. 
I need to know how can I remove this partition to build another xen VM, an if  I need to stop the xend and xendomais services to do the detachment.
 
Thanks so much!!!!
 
  VG Name                VGxen
  LV UUID                vsdRV1-j7cA-LlZI-dAvv-yPC1-lCEt-OQY3W3
  LV Write Access        read/write
  LV Status              available
  # open                 4
  LV Size                17.69 GB
  Current LE             4529
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
srv01-Debian:~# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   238     1     r-----     29.2
vm01                                         1   256     1     -b----      0.1
srv01-Debian:~# xm destroy vm01
srv01-Debian:~# xm list
Name                                        ID   Mem VCPUs      State   Time(s)
Domain-0                                     0   238     1     r-----     31.5
srv01-Debian:~# lvdisplay
  --- Logical volume ---
  LV Name                /dev/VGxen/VM01_Debian
  VG Name                VGxen
  LV UUID                vsdRV1-j7cA-LlZI-dAvv-yPC1-lCEt-OQY3W3
  LV Write Access        read/write
  LV Status              available
  # open                 2
  LV Size                17.69 GB
  Current LE             4529
  Segments               1
  Allocation             inherit
  Read ahead sectors     0
  Block device           253:0
srv01-Debian:~# lvchange -an /dev/VGxen/VM01_Debian
  LV VGxen/VM01_Debian in use: not deactivating
srv01-Debian:~#
srv01-Debian:~# /etc/init.d/xendomains stop
Shutting down Xen domains:  [done]
srv01-Debian:~# lvchange -an /dev/VGxen/VM01_Debian
  LV VGxen/VM01_Debian in use: not deactivating
srv01-Debian:~#
srv01-Debian:~# /etc/init.d/xend stop
srv01-Debian:~# lvchange -an /dev/VGxen/VM01_Debian
  LV VGxen/VM01_Debian in use: not deactivating
srv01-Debian:~# ps -ef |grep -auxf xen
grep: xen: No such file or directory
srv01-Debian:~# ps -ef |grep xen
root         9     7  0 14:12 ?        00:00:00 [xenwatch]
root        10     7  0 14:12 ?        00:00:00 [xenbus]
root      4698     1  0 14:13 ?        00:00:00 xenstored --pid-file /var/run/xenstore.pid
root      4705     1  0 14:13 ?        00:00:00 xenconsoled
root      4706  4705  0 14:13 ?        00:00:00 xenconsoled
root      4707  4706  0 14:13 ?        00:00:00 xenconsoled
root      5331  5030  0 14:19 pts/1    00:00:00 grep xen
 
srv01-Debian:~# lvremove -f VGxen
  Can't remove open logical volume "VM01_Debian"
srv01-Debian:~# lvremove -f /dev/VGxen/VM01_Debian
  Can't remove open logical volume "VM01_Debian"
srv01-Debian:~# lvs
  LV          VG    Attr   LSize  Origin Snap%  Move Log Copy%
  VM01_Debian VGxen -wi-ao 17.69G
srv01-Debian:~# vgs
  VG    #PV #LV #SN Attr   VSize  VFree
  VGxen   1   1   0 wz--n- 17.69G    0
srv01-Debian:~# pvs
  PV         VG    Fmt  Attr PSize  PFree
  /dev/hda5  VGxen lvm2 a-   17.69G    0
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.