linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "Alejandro Santillan" <lvm@alela.com>
To: linux-lvm@redhat.com
Subject: [linux-lvm] want to remove a disk
Date: Fri, 25 May 2007 14:03:44 -0300	[thread overview]
Message-ID: <006401c79eee$a79f79c0$6401a8c0@alelab7bd24fec> (raw)

[-- 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 --]

             reply	other threads:[~2007-05-25 17:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-05-25 17:03 Alejandro Santillan [this message]
2007-05-25 21:16 ` [linux-lvm] want to remove a disk Fabien Jakimowicz
2007-05-28 13:44   ` Alejandro Santillan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='006401c79eee$a79f79c0$6401a8c0@alelab7bd24fec' \
    --to=lvm@alela.com \
    --cc=linux-lvm@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).