Solved

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

Posted on 2014-02-06
3
380 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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

When you do backups in the Solaris Operating System, the file system must be inactive. Otherwise, the output may be inconsistent. A file system is inactive when it's unmounted or it's write-locked by the operating system. Although the fssnap utility…
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…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
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.

760 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

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now