Solved

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

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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

This tech tip describes how to install the Solaris Operating System from a tape backup that was created using the Solaris flash archive utility. I have used this procedure on the Solaris 8 and 9 OS, and it shoudl also work well on the Solaris 10 rel…
Java performance on Solaris - Managing CPUs There are various resource controls in operating system which directly/indirectly influence the performance of application. one of the most important resource controls is "CPU".   In a multithreaded…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

838 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