D
D
Denis Sh2014-10-02 15:08:07
linux
Denis Sh, 2014-10-02 15:08:07

Transferring an LVM volume from VG_GROUP1 to VG_GROUP2, is it possible?

Good afternoon, there are two LVM groups on the server
VG_GROUP1 slow disks
VG_GROUP2 fast disks
can I move an lvm volume from one group to another?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alex Chistyakov, 2014-10-02
@Deq56

Can. A volume is just a block device.
You can act in two ways: create a volume of the same size in the new location as in the old one, and copy the contents of the volume from the old location to the new one block by block using the dd command. Before doing this, you need to make sure that no one changes files on the volume in the old place.
The second option is to create a file system on a new volume and copy the files from the old location to the new one with the rsync command. In this case, the size of the new volume does not have to be equal to the size of the old volume.

D
Denis Sh, 2014-10-03
@Deq56

and means of LVM in any way?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question