Operating System - HP-UX
1833696 Members
3234 Online
110062 Solutions
New Discussion

Re: difference in lvol index

 
Hamid Mohammadi
New Member

difference in lvol index

Hi;
I am trying to do cold installtion of 10.20 in the a HP 9000/810/D280 server because the root disk has crashed.There is a backup that has been created by a application running in windows. when the installtion i finished it is difference betwenn logical volume in the server and in the backup file. in the server you see /tmp(lvol6),/opt(lvol5) and /home(lvol4). In the backup the fs is /tmp(lvol4), /opt(lvol6) and /home(lvol5).this diffrences cause that restore is not possible. I could not find any option to change lvol index when installin 10.20.

Regards
6 REPLIES 6
Simon Hargrave
Honored Contributor

Re: difference in lvol index

You don't mention what backup software you are using (eg Netbackup etc), however from a backup/restore perspective it shouldn't matter what lvol numbers you have. The restore should simply restore to /opt, /home etc regardless of the actual logical volume.

/opt could quite happily be mounted on /dev/vg00/blowfish and still be restored to. The lvolX is merely a reference.
Devender Khatana
Honored Contributor

Re: difference in lvol index

Hi,

The naming should not cause any problem is restoration except that you have enough size for particular file system because the backup software is only considered with the mount point and not the LVOL name.

Still while installing OS you can select file systems assigned to particular mount points. This is possible through file system options in the initial window where you resize these volumes in both cases either while installing through CD's or through ignite.

HTH,
Devender
Impossible itself mentions "I m possible"
RAC_1
Honored Contributor

Re: difference in lvol index

You can rename lvols as you want. But wy to do that?? Restore to different location and copy the file wherever required.
There is no substitute to HARDWORK
Robert-Jan Goossens
Honored Contributor

Re: difference in lvol index

Hi,

Yes it is possible to rename the lvol's. Just be shure to check if you have mirrored them.

/tmp(lvol6) --> /tmp(lvol4)
/opt(lvol5) --> /opt(lvol6)
/home(lvol4) -> /home(lvol5)

# shutdown -h -y now
boot your server into single user mode.
# mount /usr
# mv /dev/vg00/lvol4 /dev/vg00/lvol10
# mv /dev/vg00/rlvol4 /dev/vg00/rlvol10
# mv /dev/vg00/lvol6 /dev/vg00/lvol4
# mv /dev/vg00/rlvol6 /dev/vg00/rlvol4
# mv /dev/vg00/lvol5 /dev/vg00/lvol6
# mv /dev/vg00/rlvol5 /dev/vg00/rlvol6
# mv /dev/vg00/lvol10 /dev/vg00/lvol5
# mv /dev/vg00/rlvol10 /dev/vg00/rlvol5

Change the /etc/fstab

and mount your filesystems.
# mount -a
# shutdown -r -y now

Regards,
Robert-Jan
Hamid Mohammadi
New Member

Re: difference in lvol index

Hi ,
Thanks a lot for your answers.
Some more information:
I am replacing the old root disk(9G)with a new one(18 G)
The bakup software is BrightStore ARCserve. Befor asking for help I installed 10.20 two times.I did not change lvol using mv command an tray to restore but some error message about fs i full cames up. the restore software hade restorde the /opt files in /tmp and vice versa!!!
In next time i changed lvol using mv and start restoring but it was intrrupted. it has som problem to write some file,could not find anything in the logfile.
hope this information could be some help.
Regards

Thayanidhi
Honored Contributor

Re: difference in lvol index

I generally prefer the below when I need to restore root.

After reinstalling the OS, restore all the file systems excluding /etc/fstab /dev/vg00
This will retain the current lv->fs map.

After that edit /etc/fstab accordingly.

Regds
TT
Attitude (not aptitude) determines altitude.