Linux LVM users
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] swap tagged as lvm2
Date: Fri, 05 Sep 2008 15:01:47 +0100	[thread overview]
Message-ID: <48C13BCB.9090109@redhat.com> (raw)
In-Reply-To: <ab53550809050655scab46a9lbea2abbe6c400681@mail.gmail.com>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bernard Fay wrote:
> Hi,
>  
> We have installed RHEL 4.7 on a single disk (actually two disk in hardware 
> RAID).  Part of it use regular partions and others LVM2 logical volumes.  To my 
> surprise, when running pvs or pvscan, the swap partition is shown has LVM2:
>  
> # pvscan
>   PV /dev/sda5   VG vgsys            lvm2 [53,19 GB / 32,19 GB free]
>   PV /dev/sda3                       lvm2 [65,21 GB]
>   Total: 2 [118,39 GB] / in use : 1 [53,19 GB] / in no VG: 1 [65,21 GB]
>  
> But if I type fdisk -l /dev/sda, sda3 is a good old swap partition:
>  
> # fdisk -l /dev/sda
>  
> Disque /dev/sda: 72.7Go, 72746008576 octets
> 255 t�tes, 63 secteurs/piste, 8844 cylindres
> Unit�s = cylindres de 16065 * 512 = 8225280 octets
>  
> P�riph�rique Boot    Start     End      Blocks   Id    System
> /dev/sda1   *         1      13      104391   83  Linux
> /dev/sda2   *        14     332     2562367+  83  Linux
> /dev/sda3   *       333    1899    12586927+  82  Linux swap
> /dev/sda4   *      1900    8844    55785712+   5  Extended
> /dev/sda5   *      1900    8844    55785681+  8e  Linux LVM
>  
> I do not think this is a big problem but I am curious of why and could it be a 
> problem?

Looks like the partition was previously used as an LVM PV. Just wipe out
the first 1M or so and run mkswap again.

Regards,
Bryn.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkjBO8sACgkQ6YSQoMYUY9470QCg4Akby6y0KkN6D4lulftnCZJA
QE4AnjV9i1GHDvXVRVfzeGW4BlMlsHDe
=OEkz
-----END PGP SIGNATURE-----

  reply	other threads:[~2008-09-05 14:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-09-05 13:55 [linux-lvm] swap tagged as lvm2 Bernard Fay
2008-09-05 14:01 ` Bryn M. Reeves [this message]
2008-09-05 14:26   ` Bernard Fay

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=48C13BCB.9090109@redhat.com \
    --to=breeves@redhat.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