From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31]) by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id l4PH3wFT004231 for ; Fri, 25 May 2007 13:03:58 -0400 Received: from ostel.org (host180.200-45-71.telecom.net.ar [200.45.71.180]) by mx1.redhat.com (8.13.1/8.13.1) with ESMTP id l4PH3oHS021948 for ; Fri, 25 May 2007 13:03:51 -0400 Received: from alelab7bd24fec (4-247-126-200.fibertel.com.ar [200.126.247.4]) by ostel.org (8.12.10/8.12.5) with SMTP id l4PH3IE1023147 for ; Fri, 25 May 2007 14:03:19 -0300 Message-ID: <006401c79eee$a79f79c0$6401a8c0@alelab7bd24fec> From: "Alejandro Santillan" Date: Fri, 25 May 2007 14:03:44 -0300 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0061_01C79ED5.817464E0" Subject: [linux-lvm] want to remove a disk Reply-To: LVM general discussion and development List-Id: LVM general discussion and development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , List-Id: To: linux-lvm@redhat.com This is a multi-part message in MIME format. ------=_NextPart_000_0061_01C79ED5.817464E0 Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable 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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D So now I cannot remove the 2nd disk without disrupting the system.=20 Can I use=20 lvremove or lvchange doing lvdisplay shows: =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [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 =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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 ------=_NextPart_000_0061_01C79ED5.817464E0 Content-Type: text/html; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable
I installed a new fedora box with 2 = hard disks. The=20 system disk and a second one to be used to backup and get=20 information out of the machine.
The problem was that inadvertely the = disks mounted=20 in a lvm configuration as follows:
 
 
[root@s2]# df
Filesystem     &n= bsp;    =20 1K-blocks      Used Available Use% Mounted=20 on
/dev/mapper/VolGroup00-LogVol00
     &n= bsp;           &nb= sp;  =20 150202484  56184212  86265364  40%=20 /
/dev/sda1          = ;    =20 101086     10442     85425  = 11%=20 /boot
tmpfs          = ;        =20 250336         = 0   =20 250336   0% /dev/shm
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
So now I cannot remove = the 2nd disk=20 without disrupting the system.
Can I use =
lvremove or = lvchange
doing lvdisplay = shows:
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
 
[root@s2]#=20 /usr/sbin/lvdisplay
  --- Logical volume ---
  LV=20 Name           &nb= sp;   =20 /dev/VolGroup00/LogVol00
  VG=20 Name           &nb= sp;   =20 VolGroup00
  LV=20 UUID           &nb= sp;   =20 AG2uKb-0VMO-5qn4-T2LK-cjM8-mZbh-jETkyx
  LV Write=20 Access        read/write
  LV = Status           &= nbsp; =20 available
  #=20 open           &nb= sp;    =20 1
  LV=20 Size           &nb= sp;   =20 147.88 GB
  Current=20 LE            = ;=20 4732
 =20 Segments           = ;   =20 2
 =20 Allocation          &nb= sp; =20 inherit
  Read ahead sectors     0
  = Block=20 device          =20 253:0
 
  --- Logical = volume=20 ---
  LV=20 Name           &nb= sp;   =20 /dev/VolGroup00/LogVol01
  VG=20 Name           &nb= sp;   =20 VolGroup00
  LV=20 UUID           &nb= sp;   =20 8Q6XKF-bz8D-vcan-Izf9-Ntzn-XmYv-9WAi5g
  LV Write=20 Access        read/write
  LV = Status           &= nbsp; =20 available
  #=20 open           &nb= sp;    =20 1
  LV=20 Size           &nb= sp;   =20 992.00 MB
  Current=20 LE            = ;=20 31
 =20 Segments           = ;   =20 1
 =20 Allocation          &nb= sp; =20 inherit
  Read ahead sectors     0
  = Block=20 device          =20 253:1
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
which command should I = use to leave=20 all information on the /dev/sda1 and be able to take out the other=20 disk?
 
Thank = you!
 
Alejandro
------=_NextPart_000_0061_01C79ED5.817464E0--