* [linux-lvm] want to remove a disk
@ 2007-05-25 17:03 Alejandro Santillan
2007-05-25 21:16 ` Fabien Jakimowicz
0 siblings, 1 reply; 3+ messages in thread
From: Alejandro Santillan @ 2007-05-25 17:03 UTC (permalink / raw)
To: linux-lvm
[-- Attachment #1: Type: text/plain, Size: 1966 bytes --]
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@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@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?
Thank you!
Alejandro
[-- Attachment #2: Type: text/html, Size: 5631 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] want to remove a disk
2007-05-25 17:03 [linux-lvm] want to remove a disk Alejandro Santillan
@ 2007-05-25 21:16 ` Fabien Jakimowicz
2007-05-28 13:44 ` Alejandro Santillan
0 siblings, 1 reply; 3+ messages in thread
From: Fabien Jakimowicz @ 2007-05-25 21:16 UTC (permalink / raw)
To: LVM general discussion and development
[-- Attachment #1: Type: text/plain, Size: 2295 bytes --]
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@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@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@jakimowicz.com>
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [linux-lvm] want to remove a disk
2007-05-25 21:16 ` Fabien Jakimowicz
@ 2007-05-28 13:44 ` Alejandro Santillan
0 siblings, 0 replies; 3+ messages in thread
From: Alejandro Santillan @ 2007-05-28 13:44 UTC (permalink / raw)
To: LVM general discussion and development, fabien
Thank you for your answer Fabien. The result of vgdisplay and pvdisplay
commands is:
[root@s2 httpd]# /usr/sbin/vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 2
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 2
Max PV 0
Cur PV 2
Act PV 2
VG Size 148.91 GB
PE Size 32.00 MB
Total PE 4765
Alloc PE / Size 4763 / 148.84 GB
Free PE / Size 2 / 64.00 MB
VG UUID 557bDF-15yS-X2uy-o0WH-kBXG-RJ63-7hVw03
[root@s2 httpd]# /usr/sbin/pvdisplay
--- Physical volume ---
PV Name /dev/sdb1
VG Name VolGroup00
PV Size 74.50 GB / not usable 0
Allocatable yes (but full)
PE Size (KByte) 32768
Total PE 2384
Free PE 0
Allocated PE 2384
PV UUID hdfvF4-MWe1-EVZk-0Mej-o5yH-fYrp-Nd2vTC
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 74.41 GB / not usable 0
Allocatable yes
PE Size (KByte) 32768
Total PE 2381
Free PE 2
Allocated PE 2379
PV UUID RGvP2W-GVKx-Ukjk-9gab-mF4F-HXGo-43Ql12
As far as I understand there are two 80GB HD sata. One as a master (sda2)
and one as slave (sdb2).
I would like to have all the logical volume data on the sda2, and be able to
remove the sdb2 without disrupting the server.
Is that possible?
Thanks,
Alejandro
----- Original Message -----
From: "Fabien Jakimowicz" <fabien@jakimowicz.com>
To: "LVM general discussion and development" <linux-lvm@redhat.com>
Sent: Friday, May 25, 2007 6:16 PM
Subject: Re: [linux-lvm] want to remove a disk
> ==============================================================
> 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@jakimowicz.com>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2007-05-28 13:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-25 17:03 [linux-lvm] want to remove a disk Alejandro Santillan
2007-05-25 21:16 ` Fabien Jakimowicz
2007-05-28 13:44 ` Alejandro Santillan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).