Kamis, 16 Juni 2016

Bristol Digest, Vol 648, Issue 2

Send Bristol mailing list submissions to
bristol@mailman.lug.org.uk

To subscribe or unsubscribe via the World Wide Web, visit
https://mailman.lug.org.uk/mailman/listinfo/bristol
or, via email, send a message with subject or body 'help' to
bristol-request@mailman.lug.org.uk

You can reach the person managing the list at
bristol-owner@mailman.lug.org.uk

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Bristol digest..."


Today's Topics:

1. LVM disused swap - deletion (Peter Hemmings)
2. Re: LVM disused swap - deletion (Steve King)


----------------------------------------------------------------------

Message: 1
Date: Wed, 15 Jun 2016 21:27:54 +0100
From: Peter Hemmings <peternsomerset@virginmedia.com>
To: Peter Hemmings via Bristol <bristol@mailman.lug.org.uk>
Subject: [bristol] LVM disused swap - deletion
Message-ID: <6dee123a-ed3f-d692-e139-469e4887f106@virginmedia.com>
Content-Type: text/plain; charset=utf-8; format=flowed

Hi,

Just to show some of us still require help after all this time, and
checking the list is still active!

I gave up trying to find the "stop job" and did a clean install but am
using my original home partition mounted with fstab.

I thought I had deleted all my old volume groups before installing but I
hadn't!

I have 2 identical 500GB HD with the older (with stop job problem) fc23
on sda and latest on sdb (both with different VG names). On further
checking I noticed the swap for the latest install is using an old swap
on a different partition on sdb (sdb2), on checking fstab it was
mounting from there (maybe I did not notice it when I manually partitioned).
I have now altered it to use the swap on the new install Volume Group
and it works OK.

I have the following on sdb:

sdb1 /boot
sdb2 old LVM swap (not used)
sdb3 LVM root home and swap (home not mounted - using sda)

For those still with me!, here is the question:

Can I delete the unused sdb3 partition, if so will the other partition
be relabelled and cause a problem?

Would it be better to reallocate the space to the other Volume group?


Regards
--
Peter H

------------------------------

Message: 2
Date: Thu, 16 Jun 2016 09:09:43 +0100
From: "Steve King" <debian@invux.com>
To: "Peter Hemmings" <peternsomerset@virginmedia.com>, "Bristol and
Bath Linux User Group" <bristol@mailman.lug.org.uk>
Subject: Re: [bristol] LVM disused swap - deletion
Message-ID:
<433e7f3742e4ed2bb43e87fbc95a536b.squirrel@dazzle.invux.com>
Content-Type: text/plain;charset=iso-8859-1

Short answer:
Yes, deleting it will not renumber the other partitions.

Long answer:
For MBR partitions,
sdb1,2,3 and 4 are primary partitions, they have a slot in the MBR
5 and above are logical partitions, which use a linked list structure (I
am a bit hazy on the detail) so they will 'shuffle up' if you delete one
of them.

For GPT
all partitions in a GPT system have an allocated space, so removing one
will not renumber the others.

To avoid this problem in the future, you could always use UUIDs in your
fstab.

UUID=b2da925f-1a60-45b5-a1df-dd2e5803c684 / ext4
errors=remount-ro 0 1

Then it doesn't matter on which disk or partition it is, the system will
find it.

--
Steve

> Hi,
>
> Just to show some of us still require help after all this time, and
> checking the list is still active!
>
> I gave up trying to find the "stop job" and did a clean install but am
> using my original home partition mounted with fstab.
>
> I thought I had deleted all my old volume groups before installing but I
> hadn't!
>
> I have 2 identical 500GB HD with the older (with stop job problem) fc23
> on sda and latest on sdb (both with different VG names). On further
> checking I noticed the swap for the latest install is using an old swap
> on a different partition on sdb (sdb2), on checking fstab it was
> mounting from there (maybe I did not notice it when I manually
> partitioned).
> I have now altered it to use the swap on the new install Volume Group
> and it works OK.
>
> I have the following on sdb:
>
> sdb1 /boot
> sdb2 old LVM swap (not used)
> sdb3 LVM root home and swap (home not mounted - using sda)
>
> For those still with me!, here is the question:
>
> Can I delete the unused sdb3 partition, if so will the other partition
> be relabelled and cause a problem?
>
> Would it be better to reallocate the space to the other Volume group?
>
>
> Regards
> --
> Peter H
>
> _______________________________________________
> Bristol mailing list
> Bristol@mailman.lug.org.uk
> https://mailman.lug.org.uk/mailman/listinfo/bristol

------------------------------

Subject: Digest Footer

_______________________________________________
Bristol mailing list
Bristol@mailman.lug.org.uk
https://mailman.lug.org.uk/mailman/listinfo/bristol

------------------------------

End of Bristol Digest, Vol 648, Issue 2
***************************************

Tidak ada komentar:

Posting Komentar