VGIMPORTCLONE(8) System Manager's Manual VGIMPORTCLONE(8)NAME
vgimportclone - import and rename duplicated volume group (e.g. a hardware snapshot)
SYNOPSIS
vgimportclone [-n|--basevgname VolumeGroupName] [-i|--import] PhysicalVolume [PhysicalVolume...]
DESCRIPTION
vgimportclone is used to import a duplicated VG (e.g. hardware snapshot). Duplicate VG(s) and PV(s) are not able to be used until they are
made to coexist with the origin VG(s) and PV(s). vgimportclone renames the VG associated with the specified PV(s) and changes the associ-
ated VG and PV UUIDs.
OPTIONS
See lvm for common options.
-n|--basevgname VolumeGroupName
By default the snapshot VG will be renamed to the original name plus a numeric suffix to avoid duplicate naming (e.g. 'test_vg'
would be renamed to 'test_vg1'). This option will override the base VG name that is used for all VG renames. If a VG already
exists with the specified name a numeric suffix will be added (like the previous example) to make it unique.
-i|--import
Import exported Volume Groups. Otherwise VGs that have been exported will not be changed (nor will their associated PVs).
ENVIRONMENT VARIABLES
LVM_BINARY
The LVM2 binary to use. Defaults to "lvm".
EXAMPLES
The origin VG vg00 has origin PVs /dev/sda and /dev/sdb and the respective snapshot PVs are /dev/sdc and /dev/sdd. To rename the VG asso-
ciated with /dev/sdc and /dev/sdd from vg00 to vg00_snap (and to change associated VG and PV UUIDs) do:
vgimportclone --basevgname vg00_snap /dev/sdc /dev/sdd
SEE ALSO lvm(8)Red Hat, Inc. LVM TOOLS 2.02.95(2) (2012-03-06) VGIMPORTCLONE(8)
Check Out this Related Man Page
VGIMPORTCLONE(8) System Manager's Manual VGIMPORTCLONE(8)NAME
vgimportclone - import and rename duplicated volume group (e.g. a hardware snapshot)
SYNOPSIS
vgimportclone [-n|--basevgname VolumeGroupName] [-i|--import] PhysicalVolume [PhysicalVolume...]
DESCRIPTION
vgimportclone is used to import a duplicated VG (e.g. hardware snapshot). Duplicate VG(s) and PV(s) are not able to be used until they are
made to coexist with the origin VG(s) and PV(s). vgimportclone renames the VG associated with the specified PV(s) and changes the associ-
ated VG and PV UUIDs.
OPTIONS
See lvm for common options.
-n|--basevgname VolumeGroupName
By default the snapshot VG will be renamed to the original name plus a numeric suffix to avoid duplicate naming (e.g. 'test_vg'
would be renamed to 'test_vg1'). This option will override the base VG name that is used for all VG renames. If a VG already
exists with the specified name a numeric suffix will be added (like the previous example) to make it unique.
-i|--import
Import exported Volume Groups. Otherwise VGs that have been exported will not be changed (nor will their associated PVs).
ENVIRONMENT VARIABLES
LVM_BINARY
The LVM2 binary to use. Defaults to "lvm".
EXAMPLES
The origin VG vg00 has origin PVs /dev/sda and /dev/sdb and the respective snapshot PVs are /dev/sdc and /dev/sdd. To rename the VG asso-
ciated with /dev/sdc and /dev/sdd from vg00 to vg00_snap (and to change associated VG and PV UUIDs) do:
vgimportclone --basevgname vg00_snap /dev/sdc /dev/sdd
SEE ALSO lvm(8)Red Hat, Inc. LVM TOOLS 2.02.95(2) (2012-03-06) VGIMPORTCLONE(8)
hi
i have 3 lines like this.......
jjjj | jjjj |jjjjj
sadasd |sadasd |sadasd
dddd | sd|sdd
how can i remove the spaces?
Thanks and Regards
Vivek.S (3 Replies)
When I give lsvg command
It says no VGs found
When I give lspv,it gives a listing of all PVs corresponding to their respective VGs i.e. rootvg,uservg,etc.
But when I give lspv hdisk0
It says rootvg not found in Configuration Manager Database.
thanks
Manu (3 Replies)
Hello all,
Please guide me through this procedure. I am newbie.
current status of my lvm is as following.
/dev/myvg/lvm1 5 GB mounted /data
/dev/myvg/lvm1_snap1 5 GB mounted /data_backup
Now i want to extend the lvm it self with sanpshot then how should i go for it.
... (1 Reply)
Hi,
I have following set up on Open suse 11
vgdisplay
pvdisplay
lvdisplay
I would like to remove these disks /dev/sdb and /dev/sdc from LVM and do not use them for anything..
Can anyone please help me with this ? (1 Reply)
Hello dear friends, We have VG filevg which consists of 2 PVs when I rechecked the VG there is no Pagingspace LV.. The VG is usually Highly loaded because much reads and writes.. Is this a must to create Paging space on the specified LV? (2 Replies)
Hi,
I have two files
File1 Contents:
abc
dcf
sdc
File2 Contents:
dcf
sdc
erg
Now my program should return the contents existing in File1 but not in File2. In this case output shoud be "abc" as abc is not available in File 2. It should not return "erg" by saying it is... (4 Replies)
given this:
# ls -1 /dev/sd
/dev/sdb
/dev/sdc
/dev/sdd
/dev/sde
/dev/sdf
returns a list of devices I want to use as input for some other operations. So ...
# ls -1 /dev/sd | awk '{FS="/"; print $3 }'
sdc
sdd
sde
sdf
#
Where I should get sdb, I get a blank line ...... (4 Replies)
Hi,
Someone please analyse the following o/p of fdisk -l and tell me what it means for /dev/sda, /dev/sdb, /dev/sdc ....
Disk /dev/sda: 53.6 GB, 53687091200 bytes
255 heads, 63 sectors/track, 6527 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start ... (5 Replies)
Hi
A mismatch occurred on my system (Debian, Sid). I've got 3 disks sda, b, c.
Unfortunately, when I was adding a third disk (sdc) it all finished so that both sdb and sdc now have a boot flag. So, the first thing I would like to find out is which disk the system now boots from: sdb or sdc? In... (0 Replies)
Hi ,
i need to check the file , if 2 duplicated Values then rename the second duplicated value and save it on the same file, if 3 duplicated Values then rename the Second and Thired and save it on the same file , SOME TIME THERE IS NO DUPLICATE , as below
3100.2.142.11=360 ... (2 Replies)
Dear All
I needed to clone my disk to another hard drive . I did it as the following :
#dd if=/dev/sdb of=/dev/sdc
But after a while, the procedure ended with the "writing to /dev/sdc
input/output error" message.
Can you please let me know how can I overcome this as the fdisk now returns as "... (1 Reply)
We have 3PVs, now we want to migrate it to new 2PVs.
OLD PVS
hdisk1 ---- /u01
hdisk2 ------ /u01
hdisk 3 ----- /u02, /u01
new PVs
hdisk4 ---- Free
hdisk5 ---- Free
I check man, it doesn't say anything about offline/online thing, do i need downtime to migrate pv ? also, what i... (6 Replies)
A backup/clone script of ours was recently ran. It normally only clones the rpool and renames in rpoolA. Something must've changed as it found another one of our pools that it shouldn't have. It exported that pool unbeknownst to us. Later on when a coworker realized the other pool was missing he... (2 Replies)