Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] Snapshot volume creation seg fault
@ 2004-09-14 20:07 Stanley Yue
  0 siblings, 0 replies; only message in thread
From: Stanley Yue @ 2004-09-14 20:07 UTC (permalink / raw)
  To: LVM general discussion and development

Hi all:

I have the following questions:

1)  Does LVM1/2 allow creation of striped snapshot volume? Or must
snapshot volume be created using the second lvcreate format (i.e. one
that doesn't allow specifying number of stripes/stripSize)?

lvcreate {-l/--extents LogicalExtentsNumber |
        -L/--size  LogicalVolumeSize[kKmMgGtT]}   [-c/--chunksize   ChunkSize]
       -s/--snapshot  -n/--name  SnapshotLogicalVolumeName OriginalLogicalVol-
       umePath [PhysicalVolumePath...]
 
I tried to create a snapshot volume using the following cmd line
(Notice the seg fault at the end):

[root@DAP-RHLNX1 common]# lvcreate -i2 -I4 -L4M -s -nsyueSnapVol
/dev/vg00-lvm1/syueVol
  device-mapper ioctl cmd 13 failed: Invalid argument
  device-mapper ioctl cmd 13 failed: Invalid argument
  Rounding up size to full physical extent 32.00 MB
  Rounding size (1 extents) up to stripe boundary size (2 extents)
Segmentation fault (core dumped)

This work however, 
[root@DAP-RHLNX1 common]# lvcreate -L4M -s -nsyueSnapVol /dev/vg00-lvm1/syueVol 
  device-mapper ioctl cmd 13 failed: Invalid argument
  device-mapper ioctl cmd 13 failed: Invalid argument
  Rounding up size to full physical extent 32.00 MB
  Logical volume "syueSnapVol" created
[root@DAP-RHLNX1 common]# 

2) I'm still confusesd as to why the device-mapper is returning
invalid argument for some operations:

[root@DAP-RHLNX1 common]# lvremove /dev/vg00-lvm1/syueSnapVol
  device-mapper ioctl cmd 13 failed: Invalid argument
  device-mapper ioctl cmd 13 failed: Invalid argument
  Logical volume "syueSnapVol" successfully removed

Are there any incompatibilites between the LVM/device-mapper version
that I'm using?

[root@DAP-RHLNX1 common]# vgscan --version
  LVM version:     2.00.22 (2004-09-03)
  Library version: 1.00.18-ioctl (2004-06-20)
  Driver version:  4.0.5

Thanks,

Stanley

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-09-14 20:08 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-09-14 20:07 [linux-lvm] Snapshot volume creation seg fault Stanley Yue

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox