Operating System - HP-UX
1834462 Members
3309 Online
110067 Solutions
New Discussion

Importing HFS disk to VG00 as logical volume

 
Juuso Siniketo
Advisor

Importing HFS disk to VG00 as logical volume

Hi,

Is there a way to import a disk (whole-disk HFS) to existing volume group as a logical volume without losing any data and not using any backups/restores?

Thanks,

-juuso
Remember to rebel against authorities, kids!
2 REPLIES 2
Andrey Ivanov
New Member

Re: Importing HFS disk to VG00 as logical volume

Hi!
So, as I understood, you are using The Whole Disk Approach. If it is, I think where is no way to import your data to LVM Volume Group without copying data.
You need create Logical Volume in your Volume Group, and then copy all data.

But, of course, if you have LVM structure on your disk, its possible to import logical volume to another LVM structure.

Denver Osborn
Honored Contributor

Re: Importing HFS disk to VG00 as logical volume

You would have to pvcreate the disk before adding it to the volume group with vgextend. There isn't a way you could "import" the disk as an lvol. You'd have to backup the data, pvcreate, vgextend, lvcreate and newfs... then restore from backup.