tag:blogger.com,1999:blog-4755664707565425900.post1619126960250435675..comments2023-05-06T03:33:51.104-07:00Comments on Storage Meat: RedHat Linux BMR Boot Server in vSphereTerry Mhttp://www.blogger.com/profile/18368896550741168548noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-4755664707565425900.post-72591737734754947912010-10-20T06:01:27.025-07:002010-10-20T06:01:27.025-07:00Hello,
I had a problem while restoring OracleEL 5...Hello, <br />I had a problem while restoring OracleEL 5.4 64 bits from a redhat 5.5 64 bit SRT with netbackup 6.5.5 : <br />impossible to create lvm physical volume, volume group or logical volume, the error was : <br />ERROR : Unable to create /dev/sdxx as a LVM physical volume<br /><br />I don't know if this issue is resolved with the EEB for Symantec Bug ID 1999920, but I managed to identify and workaround the problem : <br /><br />the ramfs does not mount the sysfs (/sys) filesystem, but lvm needs it to work properly.<br />so to be able to restore LVM mountpoint, we need to mount it before formatting.<br /><br />we can either use the other console to manually do so or use an external script<br /><br />here is a script to load as external procedure while restoring a redhat5 with LVM.<br /><br />[root@master ~]# cat preformat.linux<br />#!/bin/bash<br /># mount sysfs (/sys) for restore of redhat 5<br /># sysfs is needed by lvm to recreate pv, vg and lv<br /><br />echo "executing preformat script"<br />if [ "X`mount | grep sysfs`" != "X" ]<br />then<br /> echo creating /sys<br /> mkdir -p /sys<br /> echo mounting sysfs<br /> mount -t sysfs sysfs /sys<br />fi<br /><br />exit 0<br />[root@master~]# bmrepadm -add preformat.linux<br />[Info] V-142-17 External Procedure preformat.linux added.<br />[root@master~]# bmrepadm -list<br />External Procedure Architecture<br />------------------ ------------<br />preformat.linux 5<br /><br />ThomasThomashttps://www.blogger.com/profile/04161539889798082360noreply@blogger.com