1755022 Members
5084 Online
108828 Solutions
New Discussion юеВ

Another HD.(HP-UX 11.0)

 
SOLVED
Go to solution
presage112
Advisor

Another HD.(HP-UX 11.0)

I have another hard disk that contains data on it ,I added it as a secondary harddisk and want to get it is data with no loss ,how can I set up the volume group and the LV ,so I don't lose the data.



Regards.
3 REPLIES 3
Franky_1
Respected Contributor

Re: Another HD.(HP-UX 11.0)

Hi,

you can create the LV's with the "-p" option
(permission)

For example

lvcreate -p r (read only) ...

Franky
Don't worry be happy
Denver Osborn
Honored Contributor
Solution

Re: Another HD.(HP-UX 11.0)

Im not sure I understand your question... was this disk taken from another system where it was used by LVM, and now you've attached it to another system and want to access the data from the disk... is this what you're asking?

If so... import the vg, then mount the filesystems...

# mkdir /dev/vgtmp
# mknod /dev/vgtmp/group c 64 0x0?0000
(where 0x0?0000 is unused #... look at ll /dev/*/group)
# vgimport -v /dev/vgtmp /dev/dsk/cXtXdX
(where cXtXdX is the dev of your added disk)

If all goes well w/ the import, activate the VG and mount the filesystems...

# vgchange -a y /dev/vgtmp
# vgdisplay /dev/vgtmp

# fstyp /dev/vgtmp/rlvol?
# mount -F /dev/vgtmp/lvol? /tmp_mnt


Hope this helps,
-denver
presage112
Advisor

Re: Another HD.(HP-UX 11.0)

Thanks both for the reply,,

Denver,
Yes the HD is taken from another LVM system and it is a bootable HD,but I couldn't boot from it ,so I thought of moving it to a live system.

I will try you solutioin and let you know thanks.