Operating System - HP-UX
1838134 Members
4448 Online
110124 Solutions
New Discussion

Re: Ignite, how to exclude raw device

 
SOLVED
Go to solution
Thomas Lee_1
Advisor

Ignite, how to exclude raw device

Just attend to my current job.

When implement ignite to existing HPUX box, found that there are using raw device for DB.

Known that ignite cannot handle raw device, and make_tape_recovery complaint there are un-known file system to those raw device LV.

So how can I handle this case to exclude those raw device, after running "make_tape_recovery -p"?

Thomas
8 REPLIES 8
siva0123
Trusted Contributor

Re: Ignite, how to exclude raw device

Hi ,

Ignite by default will be creating a image of vg00 only ..do you have a raw device LV in vg00??

Thanks,
Siva
Thomas Lee_1
Advisor

Re: Ignite, how to exclude raw device

Siva,

Yes you are rite, as the system just hand-over to me, I have no idea to it's history.

But you are rite, there raw device in vg00. So now would like to exclude them when doing make_tape_recovery.

As there are pently (raw device I mean), would like to know if there is automatic way (eg. scripts...) or any manual I should perform myself? Thx alot.

Thomas
Steven E. Protter
Exalted Contributor

Re: Ignite, how to exclude raw device

Shalom,

Best thing to do is to is have the raw devices in their own volume groups and use the exclude=vg01 command parameter in make_tape_recovery to exclude the entire volume group.

If this is not possible exclude statements should be possible for the logical volume names of the raw devices themselves. Exact syntax will have to come from the man pages.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Thomas Lee_1
Advisor

Re: Ignite, how to exclude raw device

Hi All,

So that's means, for my current task I need to :
1. include the entire vg00
2. exclude undesired mount point
3. exclude all the raw device

Ok, but I would like to streamline the process,
how do I identify all the raw device from vg00 with script? Or please kindly the command line is already many thx~~

Thomas
Bernhard Mueller
Honored Contributor
Solution

Re: Ignite, how to exclude raw device

Thomas,

you can run fstyp on all the lvols, depending on your naming e.g.
ls /dev/vg*/lv* | while read lv ; do
echo "$lv \c" ; fstyp $lv
done

Regards,
Bernhard
Thomas Lee_1
Advisor

Re: Ignite, how to exclude raw device

Thx all of your help.

So my solution is, include all the VGs, and exclude other unnecessary mount point.

Why I include all the VGs is, would like make_tape_recovery help me to restore the LV definition of raw device LV, am I rite? For the data within the raw device, we are depends of another backup agent.

As I dun have enough resources to have restore test, pls help to identify if I go into the rite way?

Thomas
Bernhard Mueller
Honored Contributor

Re: Ignite, how to exclude raw device

Thomas,

it is correct that for all VGs included in make_*_recovery the PVs of those VGs will be "LVM-reinitialized" i.e. pvcreate, vgcreate, lvcreate and if applicable newfs will be run.

The raw volume data will have to be restored from another backup, ignite cannot handle this.

Usually you would rather include only the root VG and exclude *everything* from the Ignite image except the standard UX filesystems.

However, if the other way suits your needs it is possible.

Regards,
Bernhard
Thomas Lee_1
Advisor

Re: Ignite, how to exclude raw device

Thx all of you and my problem is solved.