linux-lvm.redhat.com archive mirror
 help / color / mirror / Atom feed
* [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk?
@ 2014-11-18 16:28 Oliver Rath
  2014-11-18 16:55 ` matthew patton
  0 siblings, 1 reply; 5+ messages in thread
From: Oliver Rath @ 2014-11-18 16:28 UTC (permalink / raw)
  To: LVM general discussion and development

Hi list,

I have an vg over multiple disks (ssd and standard disks) and a big
thinpool-volume inside. From thin thinpool i create a lot of snaps
(>200), which are normally explizit placed on the ssd (i can select the
pv-path on lvcreate).

Now, after a time some of these snaps i dont need on the fast device and
want to mv them to a slow pv (standard disk) as a kind of backup.

Ist it possible to "move" a lv from the ssd to a disk, if both devices
are part of my vg?

Tfh!
Oliver

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

* Re: [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk?
  2014-11-18 16:28 [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk? Oliver Rath
@ 2014-11-18 16:55 ` matthew patton
  2014-11-23 11:42   ` Oliver Rath
  2014-11-23 11:47   ` Oliver Rath
  0 siblings, 2 replies; 5+ messages in thread
From: matthew patton @ 2014-11-18 16:55 UTC (permalink / raw)
  To: LVM general discussion and development

I think 'lvconvert --replace /dev/<ssd> VG/LV /dev/<slow disk>'
will do what you want.

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

* Re: [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk?
  2014-11-18 16:55 ` matthew patton
@ 2014-11-23 11:42   ` Oliver Rath
  2014-11-23 11:47   ` Oliver Rath
  1 sibling, 0 replies; 5+ messages in thread
From: Oliver Rath @ 2014-11-23 11:42 UTC (permalink / raw)
  To: linux-lvm

Hi Matthew,

thank you for the hint! In the lvconvert-manpage they write:

"This option is only available  to  RAID  segment types (e.g.  raid1,
raid5, etc)"

So I assume this will not work with thinpool-devices, but using raid
with this trick is another good idea.

Tfh!
Oliver


Am 18.11.2014 um 17:55 schrieb matthew patton:
> I think 'lvconvert --replace /dev/<ssd> VG/LV /dev/<slow disk>'
> will do what you want.
>
> _______________________________________________
> 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] 5+ messages in thread

* Re: [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk?
  2014-11-18 16:55 ` matthew patton
  2014-11-23 11:42   ` Oliver Rath
@ 2014-11-23 11:47   ` Oliver Rath
  2014-11-27  9:27     ` Zdenek Kabelac
  1 sibling, 1 reply; 5+ messages in thread
From: Oliver Rath @ 2014-11-23 11:47 UTC (permalink / raw)
  To: linux-lvm

Hi Matthew,

i have to correct my last email: This works also with thinpool-lvs!
Better said: There was no error message executing  this command. Will
walk on this way for more reults. Maybe the lvconvert-manpage is outdated?

Tfh!
Oliver


Am 18.11.2014 um 17:55 schrieb matthew patton:
> I think 'lvconvert --replace /dev/<ssd> VG/LV /dev/<slow disk>'
> will do what you want.
>
> _______________________________________________
> 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] 5+ messages in thread

* Re: [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk?
  2014-11-23 11:47   ` Oliver Rath
@ 2014-11-27  9:27     ` Zdenek Kabelac
  0 siblings, 0 replies; 5+ messages in thread
From: Zdenek Kabelac @ 2014-11-27  9:27 UTC (permalink / raw)
  To: LVM general discussion and development, Oliver Rath

Dne 23.11.2014 v 12:47 Oliver Rath napsal(a):
> Hi Matthew,
>
> i have to correct my last email: This works also with thinpool-lvs!
> Better said: There was no error message executing  this command. Will
> walk on this way for more reults. Maybe the lvconvert-manpage is outdated?
>
> Tfh!
> Oliver

Hi


I'm somehow missing the point here.

Could you please show us  'lvs -a -o+seg_pe_ranges'

Normally when you make a thin volume snapshot, the snapshot is sharing your 
blocks within thin-pool.  So no space is allocated on any SSD for this.
(And you cannot specify which block will be used in a thin-pool)

If you would be using 'old-snapshot' which does allocate 'extra' space for COW 
block -then you would probably see horrible performance with 200 snapshots...

And finally - standard command for moving extents around in a VG is - 'pvmove'.


Regards

Zdenek

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

end of thread, other threads:[~2014-11-27  9:27 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-11-18 16:28 [linux-lvm] mixed ssd/disk szenario question: moving lv from ssd ->disk? Oliver Rath
2014-11-18 16:55 ` matthew patton
2014-11-23 11:42   ` Oliver Rath
2014-11-23 11:47   ` Oliver Rath
2014-11-27  9:27     ` Zdenek Kabelac

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).