[linux-lvm] want to remove a disk

Fabien Jakimowicz fabien at jakimowicz.com
Fri May 25 21:16:26 UTC 2007


On Fri, 2007-05-25 at 14:03 -0300, Alejandro Santillan wrote:
> I installed a new fedora box with 2 hard disks. The system disk and a
> second one to be used to backup and get information out of the
> machine.
> The problem was that inadvertely the disks mounted in a lvm
> configuration as follows:
>  
>  
> [root at s2]# df
> Filesystem           1K-blocks      Used Available Use% Mounted on
> /dev/mapper/VolGroup00-LogVol00
>                      150202484  56184212  86265364  40% /
> /dev/sda1               101086     10442     85425  11% /boot
> tmpfs                   250336         0    250336   0% /dev/shm
> 
> ==============================================================
> So now I cannot remove the 2nd disk without disrupting the system. 
> Can I use 
> lvremove or lvchange
> doing lvdisplay shows:
> ==============================================================
>  
> [root at s2]# /usr/sbin/lvdisplay
>   --- Logical volume ---
>   LV Name                /dev/VolGroup00/LogVol00
>   VG Name                VolGroup00
>   LV UUID                AG2uKb-0VMO-5qn4-T2LK-cjM8-mZbh-jETkyx
>   LV Write Access        read/write
>   LV Status              available
>   # open                 1
>   LV Size                147.88 GB
>   Current LE             4732
>   Segments               2
>   Allocation             inherit
>   Read ahead sectors     0
>   Block device           253:0
>  
>   --- Logical volume ---
>   LV Name                /dev/VolGroup00/LogVol01
>   VG Name                VolGroup00
>   LV UUID                8Q6XKF-bz8D-vcan-Izf9-Ntzn-XmYv-9WAi5g
>   LV Write Access        read/write
>   LV Status              available
>   # open                 1
>   LV Size                992.00 MB
>   Current LE             31
>   Segments               1
>   Allocation             inherit
>   Read ahead sectors     0
>   Block device           253:1
> ==============================================================
> which command should I use to leave all information on the /dev/sda1
> and be able to take out the other disk?
>  
You should give more informations, like where does VG VolGroup00 stands
(sda1 ?). Try the following :
vgdisplay
pvdisplay
-- 
Fabien Jakimowicz <fabien at jakimowicz.com>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/linux-lvm/attachments/20070525/27fe64d7/attachment.sig>


More information about the linux-lvm mailing list