Solved

How to move or copy a logical volume from one volume group to another vg on linux

Posted on 2014-02-06
3
382 Views
Last Modified: 2014-02-10
I am trying to move or copy an existing lv from one vg to another vg. what procedure should be the proper for this task.
0
Comment
Question by:sams20
  • 2
3 Comments
 
LVL 8

Accepted Solution

by:
Pepe2323 earned 500 total points
ID: 39841068
Hey

Not sure if this will answer your question, but what i will do is create a new logical volume on the VG you want it definitely;  mount it in a temporal mount point and copy all information, using tar

original LV mount point example   = /app
Temporally lv mount point = /app2

cd /app
tar cvf - *|(cd /app2; tar vfx -) this will copy all info with rights and everything


Regards.
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39841320
which distro ?
0
 
LVL 13

Expert Comment

by:Sandy
ID: 39847244
Does tar work for whole FS ? I Don't think so

TY/SA
0

Featured Post

Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Installing FreeBSD… FreeBSD is a darling of an operating system. The stability and usability make it a clear choice for servers and desktops (for the cunning). Savvy?  The Ports collection makes available every popular FOSS application and packag…
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question