I won't to remove a filesystem /dev/vg01/lvo1 and copy the same to different vg ex:- /dev/vg02.
Pls give the required step to be followed to complete the said process
Things are not quite so easy as that. Every vg that is present on your system has certain disks (called physical volumes or pvs) assigned to it. Now, if the two vgs that you have (vg01 and vg02) are existing together, then they both have pvs assigned to them.
Now, if you remove the logical volume lvol1 from vg01, you do not remove the actual disks that lvol1 is residing on. And unless there are no other lvols present in vg01 (or unless you make very sure that other lvols are not occupying any portions of the disks that lvol1 was using) you cannot just remove physical volumes (pvs) from vg01 either.
So to proceed creating a lvol in vg02 from this point, you need to ensure that you have enough space present in vg02 to create a lvol that is the same size as the lvol that you removed from vg01.
I am giving the commands that can be used (assuming that enough space is present in vg02 ):
And for your knowledge, just run 'man lvm' from your HP-UX prompt.
We need more info about what the OP wants here. But he may want to create a lvol and a filestsyetm in it, then copy the data from the old filesystem to the new filesystem, and finally free up the old fs.
Or maybe he wants to move a pv from one vg to another. Or maybe he wants something else
Hello Folks,
I have an requirement, where i need to get total count of the file based on creation date with there filename selected pattern.
Filename: MobileProtocol.20171228T154200.157115.udr
I want to get the count of files created on each day based on a pattern find.
find . -type... (7 Replies)
Hey guys,
I'm attempting to migrate us to a new box. First problem I had was the change in architecture going from sun4u to sun4v, we have a Sun M5000 and are moving to a Fujitsu M10-4. I figured out how to make the flash archive work between architectures.
Now I appear to be running into an... (2 Replies)
Hi all
I want to know if suppose my global zone has UFS root file system & now I want to create non global zone with ZFS root file system. Is it possible.....If this is possible then how will I able to create zone based on ZFS root file system in global zone having UFS based root file system (5 Replies)
Hi,
I am quite new to Perl scripting and i need to create a .TXT file using perl, with fields (A,B,C,D,E), and this text file should be named with current file creation date "XYZ_CCYYMMDD.TXT" (i.e.XYZ_2011042514:33 PM).
Can anyone who has done this, please share their expertise on this... (5 Replies)
I want to gzip a file and append the creation date to the end of the file. How can I accomplish this task. Basically they are log files which need a creation date stamp appended to make sure they do not overwrite other log files.
-jack (3 Replies)
Hi friends,
In my case, there are serveral PCs running Linux in a LAN.
I would like to to mount the directory /A_river of machine-A to the file system of another machine machine-B so that I can access files in that directory.
I do not know how to do this. The situation is complicated by... (2 Replies)