linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
From: "John Stoffel" <john@stoffel.org>
To: Annamalai Gurusami <annamalai.gurusami@oracle.com>
Cc: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] Identifying Unused VG
Date: Mon, 19 Oct 2020 15:53:33 -0400	[thread overview]
Message-ID: <24461.61117.995223.318047@quad.stoffel.home> (raw)
In-Reply-To: <87eelu97do.fsf@oracle.com>

>>>>> "Annamalai" == Annamalai Gurusami <annamalai.gurusami@oracle.com> writes:

Annamalai> "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?

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

So once you find out which disk boots Linux ok, note down the
partition layout.  Then reboot with the second disk attached and make
sure you do something like:

  dd if=/dev/zero bs=64k count=512 /dev/sd<second disk>

which will be either sda or sdb.  This 'dd' command will wipe the
partition table and all the LVM data as well, so you can install
windows on it.

Good luck.


Annamalai> Suppose Ubuntu is installed on both the hard disks, then I should be
Annamalai> able to boot Ubuntu from either of them.  But currently I can boot from
Annamalai> 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?

Annamalai> I don't have a live CD ready with me.  I'll try the other simpler option
Annamalai> (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.

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

Annamalai> Thanks.

Annamalai> Rgds,
Annamalai> anna

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

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

  reply	other threads:[~2020-10-19 19:53 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
2020-10-19 19:53     ` John Stoffel [this message]
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=24461.61117.995223.318047@quad.stoffel.home \
    --to=john@stoffel.org \
    --cc=annamalai.gurusami@oracle.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).