1833358 Members
3016 Online
110051 Solutions
New Discussion

Open lvol

 
Raymond R Walsh Jr
Occasional Contributor

Open lvol

I have a disk that had been the boot disk for a B2600 and I need it in a C3600 with all that had been on the original disk. The header shows that there are 9 lvol's present but none are open and therefore are not accessible. How do you open an lvol?
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: Open lvol

You mount it.

Assuming the vg is active (if not do a 'vgchange -a y vg??') just do:

# mount /dev/vg??/lvol? /mnt1
# mount /dev/vg??/lvol?+1 /mnt2
etc.....
Raymond R Walsh Jr
Occasional Contributor

Re: Open lvol

I tried the mount and get an error stating that there is no such directory or file.
Mel Burslan
Honored Contributor

Re: Open lvol

I am not sure if I understood you correctly but if you are only interested in recovering the contents of the old b2600 boot disk on an already running c3600, then, provided the old system is still available, put the disk back in:
Do a vgexport:
# vgexport -v -m /tmp/vg00.map vg00

copy vg00.map to new system
move disk into the new system
make sure ioscan sees it
run command
insf -H

then do a vgimport:

# vgimport -v -m /tmp/vg00.map vgXX /dev/dsk/


if you are trying to boot your c3600 from an old b2600 boot disk, then you need to boot the machine to lvm maintenance mode

interrupt autoboot in 10 sec.s wait time
say yes to interact with ipl question

at ISL> prompt

hpux -lm

when the system comes up

do a vgexport of vg00
do a vgimport of vg00

reboot and let it come up as it normally should. Provided the h/w architectures are not too far off, you may succeed.
________________________________
UNIX because I majored in cryptology...
Helen French
Honored Contributor

Re: Open lvol

Did you vgimport the disk? If not, create a new VG and import the disk to it. You need to activate the vg (vgchange -a y) after importing and then check the vg and lv status with 'vgdisplay' and 'lvdisplay' respectively.

If everything found okay, then create mount points (mkdir /dir) and then mount it with mount command. If you want to make it permanent, add the mount points in /etc/fstab file.
Life is a promise, fulfill it!
Sanjay_6
Honored Contributor

Re: Open lvol

Hi,

Once the vg is activated the lvs are active. Until that time the lvs are not accessible. If you want to use this disk and the lvs on it, do a vgscan or do a vgimport. Do man vgscan / vgimport for more help.

Hope this helps.

Regds
Raymond R Walsh Jr
Occasional Contributor

Re: Open lvol

Thank you for the responses, I will put them
to the test and reply with the results.

Regards