Skip to contentSkip to conversation

how to create snapshots

DISCUSSION Stefan Priebe - Profihost AG 2 participants 3 messages Nov 21, 2012 – Nov 22, 2012

lore
Share & tools
lore
#0 lore raw

Hello list,

i tried to create a snapshot of my disk vm-113-disk-1:

[: ~]# rbd -p kvmpool1 ls
vm-113-disk-1

[: ~]# rbd -p kvmpool1 snap create BACKUP vm-113-disk-1
rbd: extraneous parameter vm-113-disk-1

[: ~]# rbd -p kvmpool1 snap create vm-113-disk-1 BACKUP
rbd: extraneous parameter BACKUP

What's wrong here?

Stefan

#1 lore raw

Hi,

Quoted 7 lines · Stefan Priebe - Profihost AG

Hello list,

i tried to create a snapshot of my disk vm-113-disk-1:

[: ~]# rbd -p kvmpool1 ls
vm-113-disk-1

Quoted 7 lines

[: ~]# rbd -p kvmpool1 snap create BACKUP vm-113-disk-1
rbd: extraneous parameter vm-113-disk-1

[: ~]# rbd -p kvmpool1 snap create vm-113-disk-1 BACKUP
rbd: extraneous parameter BACKUP

What's wrong here?

Use:

$ rbd -p kvmpool1 snap create --image vm-113-disk-1 BACKUP

"rbd -h" also tells:

<image-name>, <snap-name> are [pool/]name[@snap], or you may specify individual pieces of names with -p/--pool, --image, and/or --snap.

Never tried it, but you might be able to use:

$ rbd -p kvmpool1 snap create vm-113-disk-1@BACKUP

I don't have access to a running Ceph cluster now to verify this.

Wido

Quoted 6 lines

Stefan
--
To unsubscribe from this list: send the line "unsubscribe ceph-devel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html

#2 lore raw

Hi,

Am 21.11.2012 15:29, schrieb Wido den Hollander:

Quoted 4 lines

Use:

$ rbd -p kvmpool1 snap create --image vm-113-disk-1 BACKUP
Quoted 8 lines

"rbd -h" also tells:

<image-name>, <snap-name> are [pool/]name[@snap], or you may specify individual pieces of names with -p/--pool, --image, and/or --snap.

Never tried it, but you might be able to use:

$ rbd -p kvmpool1 snap create vm-113-disk-1@BACKUP

This does not work but:
rbd snap create kvmpool1/vm-113-disk-1@BACKUP

works fine. Thanks!

Stefan