Re: swap tagged as lvm2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux