WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] what's correct way of shrinking LVM based domU?

To: Rudi Ahlers <Rudi@xxxxxxxxxxx>
Subject: Re: [Xen-users] what's correct way of shrinking LVM based domU?
From: Jean Charles Delepine <delepine@xxxxxxxxxxxxx>
Date: Tue, 24 Jun 2008 12:49:59 +0200
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 24 Jun 2008 03:50:39 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <4860BF2C.9060701@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4860BACE.8090205@xxxxxxxxxxx> <4860BD4C.6050305@xxxxxxxxxx> <4860BF2C.9060701@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.5.17+20080114 (2008-01-14)
Rudi Ahlers <Rudi@xxxxxxxxxxx> écrivait (wrote) :

> This is what I have:
>
> [root@cPanel002 ~]# [root@HF-LINSRV01 ~]# lvscan
>  ACTIVE            '/dev/data/cpanel002' [100.00 GB] inherit
>  ACTIVE            '/dev/data/windows2003_web' [30.00 GB] inherit
>  ACTIVE            '/dev/data/storage' [50.00 GB] inherit
>  ACTIVE            '/dev/data/cacti' [20.00 GB] inherit
>  ACTIVE            '/dev/data/cpanel2' [30.00 GB] inherit
>  ACTIVE            '/dev/system/root' [39.06 GB] inherit
>  ACTIVE            '/dev/system/swap' [9.75 GB] inherit
>
>
> I need to resize the 100GB /dev/data/cpanel002

1) shutdown the domu : xm shutdown 'name of domu'
   wait for the domu to be shutdown  (xm list)
2) reduce the filesystem : 
   If it's ext3 :
      e2fsck -f -y /dev/data/cpanel00
      resize2fs -p /dev/data/cpanel00 90G
3) reduce the logical volume :
      lvreduce -L 90G /dev/data/cpanel00

4) restart the domu.

              Jean Charles
-- 
" Avec les machines NEDAP, le vote est TELLEMENT secret que même les
électeurs n'ont aucune garantie que leur vote soit réellement crédité au
compte de voix du candidat de son choix ! "
     http://ordinateurs-de-vote.org/ --- http://vao-amiens.fdn.fr/

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users