All of lore.kernel.org
 help / color / mirror / Atom feed
* [linux-lvm] swap tagged as lvm2
@ 2008-09-05 13:55 Bernard Fay
  2008-09-05 14:01 ` Bryn M. Reeves
  0 siblings, 1 reply; 3+ messages in thread
From: Bernard Fay @ 2008-09-05 13:55 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 1182 bytes --]

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?

Thanks for your help,
Bernard

[-- Attachment #2: Type: text/html, Size: 2992 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] swap tagged as lvm2
  2008-09-05 13:55 [linux-lvm] swap tagged as lvm2 Bernard Fay
@ 2008-09-05 14:01 ` Bryn M. Reeves
  2008-09-05 14:26   ` Bernard Fay
  0 siblings, 1 reply; 3+ messages in thread
From: Bryn M. Reeves @ 2008-09-05 14:01 UTC (permalink / raw)
  To: LVM general discussion and development

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [linux-lvm] swap tagged as lvm2
  2008-09-05 14:01 ` Bryn M. Reeves
@ 2008-09-05 14:26   ` Bernard Fay
  0 siblings, 0 replies; 3+ messages in thread
From: Bernard Fay @ 2008-09-05 14:26 UTC (permalink / raw)
  To: LVM general discussion and development

[-- Attachment #1: Type: text/plain, Size: 2124 bytes --]

Right on target Bryn.  Your solution fixed it.

Thanks a lot,
Bernard


On 9/5/08, Bryn M. Reeves <breeves@redhat.com> wrote:
>
> -----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-----
>
> _______________________________________________
> linux-lvm mailing list
> linux-lvm@redhat.com
> https://www.redhat.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
>

[-- Attachment #2: Type: text/html, Size: 3598 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-05 14:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-05 13:55 [linux-lvm] swap tagged as lvm2 Bernard Fay
2008-09-05 14:01 ` Bryn M. Reeves
2008-09-05 14:26   ` Bernard Fay

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.