All of lore.kernel.org
 help / color / mirror / Atom feed
From: Marian Csontos <mcsontos@redhat.com>
To: LVM general discussion and development <linux-lvm@redhat.com>
Subject: Re: [linux-lvm] unable to lvcreate _new_ LVs on existing VG with existing LVs and plenty of room?
Date: Wed, 08 Apr 2015 15:54:35 +0200	[thread overview]
Message-ID: <5525331B.20604@redhat.com> (raw)
In-Reply-To: <1428468634.31919.250585153.41525C63@webmail.messagingengine.com>

On 04/08/2015 06:50 AM, lyndat3@your-mail.com wrote:
> Hi,
>
> I'm unable to create a new LV on an existing VG with LVs.
>
> I'm on
>
> 	uname -rm
> 		3.19.3-1.gf10e7fc-default x86_64

Is it a home-brewed kernel? Have you tried with a different one?


>
> 	lvm version
> 		LVM version:     2.02.98(2) (2012-10-15)
> 		Library version: 1.03.01 (2011-10-15)
> 		Driver version:  4.29.0

This looks like you might have a mismatch of device-mapper and LVM.

Where did you get that device-mapper from? I am not aware of any 1.03.01 
version.

>
> I have a VG with lots ov available space
>
> 	vgs
> 		VG      #PV #LV #SN Attr   VSize   VFree
> 		VG0       1   7   0 wz--n- 930.19g 855.19g
>
> It's already got LVs on it
>
> 	lvs
> 		LV             VG      Attr      LSize  Pool Origin Data%  Move Log Cpy%Sync Convert
> 		LV_ROOT        VG0     -wi-ao--- 20.00g
> 		LV_HOME        VG0     -wi-ao--- 40.00g
> 		LV_SWAP        VG0     -wi-ao---  2.00g
> 		...
>
> Time's passed.  Now, when I attempt to create a new LV on the VG, if fails with
>
> 	lvcreate -L 30G   -n LV_TEST   /dev/VG0
> 		/dev/md1: lseek 18446744071795900416 failed: Invalid argument

18446744071795900416 - this is an interesting number, actually it is 
2**64 - 1825 * 2**20. Looks like some integer overflow.

Run the command with -vvvv and attach the output, along with metadata 
(/etc/lvm/backup/VG0), please.

Run the command under strace and post the output, please.

>
> and in syslog I see
>
> 	Apr 07 21:34:21 xen01 kernel:  md1: unknown partition table

This looks like a MD issue. Is this some hardware raid?

>
> The VG's on a RAID1 array.
>
> 	pvs
> 		PV         VG      Fmt  Attr PSize   PFree
> 		/dev/md1   VG0     lvm2 a--  930.19g 855.19g
>
> 	cat /proc/mdstat
> 		...
> 		md1 : active raid1 sdg4[0] sdh4[1]
> 		      975404544 blocks super 1.0 [2/2] [UU]
> 		      bitmap: 0/8 pages [0KB], 65536KB chunk
> 		...
>
> consisting of two Linux-RAID partitions on a gpt disk
>
> 	sgdisk -p /dev/sdg
> 		Disk /dev/sdg: 1953525168 sectors, 931.5 GiB
> 		Logical sector size: 512 bytes
> 		Disk identifier (GUID): ...
> 		Partition table holds up to 128 entries
> 		First usable sector is 34, last usable sector is 1953525134
> 		Partitions will be aligned on 2048-sector boundaries
> 		Total free space is 2015 sectors (1007.5 KiB)
>
> 		Number  Start (sector)    End (sector)  Size       Code  Name
> 		   1            2048            4095   1024.0 KiB  EF02  BIOS Boot Partition
> 		   2            4096          618495   300.0 MiB   EF00  EFI System Partition
> 		   3          618496         2715646   1024.0 MiB  FD00  RAID for /boot
> 		   4         2715648      1953525134   930.2 GiB   FD00  RAID for LVMs
>
> 	sgdisk -p /dev/sdh
> 		Disk /dev/sdh: 1953525168 sectors, 931.5 GiB
> 		Logical sector size: 512 bytes
> 		Disk identifier (GUID): ...
> 		Partition table holds up to 128 entries
> 		First usable sector is 34, last usable sector is 1953525134
> 		Partitions will be aligned on 2048-sector boundaries
> 		Total free space is 2015 sectors (1007.5 KiB)
>
> 		Number  Start (sector)    End (sector)  Size       Code  Name
> 		   1            2048            4095   1024.0 KiB  EF02  BIOS Boot Partition
> 		   2            4096          618495   300.0 MiB   EF00  EFI System Partition
> 		   3          618496         2715646   1024.0 MiB  FD00  RAID for /boot
> 		   4         2715648      1953525134   930.2 GiB   FD00  RAID for LVMs
>
> The RAID's healthy, the system boots, and I can see/use all the existing LVs on the VG/PV.
>
> I just can't create new LVs anymore.
>
> Any suggestions at to problem & fix?
>
> LT
>
> _______________________________________________
> 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/
>

  reply	other threads:[~2015-04-08 13:54 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-08  4:50 [linux-lvm] unable to lvcreate _new_ LVs on existing VG with existing LVs and plenty of room? lyndat3
2015-04-08 13:54 ` Marian Csontos [this message]
2015-04-08 15:16   ` lyndat3
2015-04-08 15:53     ` Dave Stevens
2015-04-08 16:25       ` lyndat3
2015-04-08 17:05     ` Alasdair G Kergon

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=5525331B.20604@redhat.com \
    --to=mcsontos@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 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.