All of lore.kernel.org
 help / color / mirror / Atom feed
From: Annamalai Gurusami <annamalai.gurusami@oracle.com>
To: John Stoffel <john@stoffel.org>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Identifying Unused VG
Date: Mon, 19 Oct 2020 09:47:39 +0530	[thread overview]
Message-ID: <87eelu97do.fsf@oracle.com> (raw)
In-Reply-To: 24457.45991.672260.342062@quad.stoffel.home

"John Stoffel" <john@stoffel.org> writes:

>>>>>> "Annamalai" == Annamalai Gurusami <annamalai.gurusami@oracle.com> writes:
>
> Annamalai> I am new user of LVM.  At home, in a desktop machine, I
> Annamalai> installed Ubuntu 20.04 LTS and while doing so I opted for
> Annamalai> LVM.  This desktop computer has 2 hard disks.  I want to
> Annamalai> remove 1 hard disk and use it for another computer.  But I
> Annamalai> need to remove the hard disk without loss of data.  The
> Annamalai> problem now is that there are two VG listed, while I think
> Annamalai> it should be only one.  How to identify the unwanted VG?
> Annamalai> Maybe this is because of multiple attempts at installation.
> Annamalai> Any help on this is much appreciated.
>
> Ugh!  How did you do this?  Did you clone one disk on top of another?

I did installation two times.  My first installation attempt failed and
I repeated the process.  I don't remember what exactly failed in the
first attempt. In the two attempts, I guess I might have given different
hard disk for the root file system.  In each attempt, I told Ubuntu to
use both the hard disks with LVM.

Suppose Ubuntu is installed on both the hard disks, then I should be
able to boot Ubuntu from either of them.  But currently I can boot from
only one of them.

> Can you boot off a liveCD and do the same command again please?   Also
> please run the 'blkid' command show that output as well.  And show the
> output of 'cat /proc/partitions' and /proc/mdstat as well.  Are you
> running RAID on this system?  Or did you try to do that?

I don't have a live CD ready with me.  I'll try the other simpler option
(below) first and will come back to this if that didn't work.

> Annamalai> Here are some of the output of the commands in that desktop:
>
> Looking at your 'lsblk' output, I suspect you can remove drive sda,
> the Seagate.  So I'd probably try to shutdown cleanly, then remove
> that drive and boot up again.

I'll try this first and let you know how it goes.

Thanks.

Rgds,
anna

-- 
mysql> help year data type;
Name: 'YEAR DATA TYPE'
Description:
YEAR[(4)]

A year in 4-digit format. MySQL displays YEAR values in YYYY format,
but permits assignment of values to YEAR columns using either strings
or numbers. Values display as 1901 to 2155, or 0000.

  reply	other threads:[~2020-10-19  4:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-15 10:02 [linux-lvm] Identifying Unused VG Annamalai Gurusami
2020-10-16 14:52 ` John Stoffel
2020-10-19  4:17   ` Annamalai Gurusami [this message]
2020-10-19 19:53     ` John Stoffel
2020-11-03  8:49   ` Annamalai Gurusami
2020-11-03 14:40     ` John Stoffel

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=87eelu97do.fsf@oracle.com \
    --to=annamalai.gurusami@oracle.com \
    --cc=john@stoffel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.