Linux LVM users
 help / color / mirror / Atom feed
* [linux-lvm] can't create snapshot on FC2
@ 2004-06-06 14:45 Yedidia Klein
  2004-06-06 15:05 ` Alasdair G Kergon
  0 siblings, 1 reply; 4+ messages in thread
From: Yedidia Klein @ 2004-06-06 14:45 UTC (permalink / raw)
  To: linux-lvm

Hi list,

I'm trying to create snapshot on lvm2 rinning on a fresh Fedora Core 2 
linux machine
kernel 2.6.5-1 lvm versions (pvdisplay --version output)
  LVM version:     2.00.15 (2004-04-19)
  Library version: 1.00.14-ioctl (2004-04-06)
  Driver version:  4.1.0

I did the followings:
-- snip --
pvcreate /dev/sdb
vgcreate extdisk /dev/sdb
lvcreate -L500g -npart1 extdisk
mke2fs -j /dev/extdisk/part1
-- snap --
till here everything was fine - I could mount the partition and use it 
w/o any problem...
then I unmounted the partition and tried to create a snapshot using this 
syntax :
lvcreate -L50g -s -n userssnap /dev/extdisk/part1
then I got this:
  device-mapper ioctl cmd 9 failed: Invalid argument
  Couldn't load device 'extdisk-userssnap'.
  Problem reactivating origin part1

and then I could not mount the partiton again (the mount command just 
hang..)

here is my lvdisplay output:
-- snip --
  --- Logical volume ---
  LV Name                /dev/extdisk/part1
  VG Name                extdisk
  LV UUID                NNuptN-60Hx-B403-c1uc-FVp6-Kr03-AqJ8CE
  LV Write Access        read/write
  LV snapshot status     source of
                         /dev/extdisk/userssnap [INACTIVE]
  LV Status              suspended
  # open                 0
  LV Size                500.00 GB
  Current LE             128000
  Segments               1
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           253:1

  --- Logical volume ---
  LV Name                /dev/extdisk/userssnap
  VG Name                extdisk
  LV UUID                gU4N1Y-0CWf-F6Oo-fRuZ-EpAX-fRFg-pgtAn4
  LV Write Access        read/write
  LV snapshot status     INACTIVE destination for /dev/extdisk/part1
  LV Status              available
  # open                 0
  LV Size                500.00 GB
  Current LE             128000
  Segments               1
  Snapshot chunk size    8.00 KB
  Allocated to snapshot  100.00%
  Allocation             next free (default)
  Read ahead sectors     0
  Block device           253:4
-- snap --

any idea how to debug it / how to create a snapshot ??

thanks

--Yedidia Klein
Jerusalem College of Technology
Computing Center

^ permalink raw reply	[flat|nested] 4+ messages in thread
* Re: [linux-lvm] can't create snapshot on FC2
@ 2004-06-07 14:53 darren.miller
  0 siblings, 0 replies; 4+ messages in thread
From: darren.miller @ 2004-06-07 14:53 UTC (permalink / raw)
  To: LVM general discussion and development





Yes I am using it in production.

However I am also using a SGI XFS Development Kernel from their CVS, which
meant that I only added in parts specifically required for snapshots and
nothing else.  some of which I had to manually put in from the .rej files.

But it's all working great.

Daz
==============================================================================

Darren Miller
Principal Systems Support Engineer
Microsoft Certified Professional
SCO Advanced Certified Engineer
Infomation Systems Department (Core Server Support)
Philips Semiconductors,Milbrook Industrial Estate,Southampton,SO15
0DJ,England
Direct Dial In: +44 (0) 2380 312681


|---------+---------------------------->
|         |                            |
|         |                            |
|         |                            |
|         |                            |
|         |                            |
|         |    Yedidia Klein           |
|         |    <yedidia@jct.ac.il>     |
|         |                            |
|         |    Sent by:                |
|         |    linux-lvm-bounces@redhat|
|         |    .com                    |
|         |                            |
|         |    07/06/2004 15:25        |
|         |    Please respond to LVM   |
|         |    general discussion and  |
|         |    development             |
|         |                            |
|---------+---------------------------->
  >----------------------------------------------------------------------------------------------------------------------|
  |                                                                                                                      |
  |           To:   LVM general discussion and development <linux-lvm@redhat.com>                                        |
  |           cc:   (bcc: Darren Miller/SOU/SC/PHILIPS)                                                                  |
  |           Subject:    Re: [linux-lvm] can't create snapshot on FC2                                                   |
  |                                                                                                                      |
  |           Classification:                                                                                            |
  |                                                                                                                      |
  |                                                                                                                      |
  >----------------------------------------------------------------------------------------------------------------------|




Alasdair G Kergon wrote:

>On Sun, Jun 06, 2004 at 05:45:22PM +0300, Yedidia Klein wrote:
>
>
>>I'm trying to create snapshot on lvm2 rinning on a fresh Fedora Core 2
>>linux machine
>>
>>
>
>Fedora doesn't include kernel support for snapshots/mirrors yet.
>
>To use them you'd need to patch your kernel.
>  http://sources.redhat.com/dm/
>
>Alasdair
>
>
tnx,
Is anyone using lvm2 snapshot in productions ?
I would like to use it w/ a storage system - is it ready for production ??

--Yedidia Klein
_______________________________________________
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/

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

end of thread, other threads:[~2004-06-07 14:55 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-06-06 14:45 [linux-lvm] can't create snapshot on FC2 Yedidia Klein
2004-06-06 15:05 ` Alasdair G Kergon
2004-06-07 14:25   ` Yedidia Klein
  -- strict thread matches above, loose matches on Subject: below --
2004-06-07 14:53 darren.miller

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