[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [linux-lvm] restore of parts of a logical volume group



On Wed, Apr 24, 2002 at 10:05:16AM +0200, Gesine Schäfer-Reimers wrote:
> My question is: How can I restore one or more logical volumes in a big
> volume group with the constellation (system filesystems and "private
> filesystems") described later?
> 
> I have one logical volume group named quant. This is placed in a physical
> volume that is a partition in a RAID 5 system on SUSE Linux 7.2 with Kernel
> 2.4. 
> The quant volume group is divided into a lot of logical volumes. Some of
> them hold the filesystems /home /opt /tmp /var and the swap system. The
> other volumes have no file systems since they serve as a medium for informix
> database data. These database-logical-volumes are bound to raw devices.
> 
> I tried to do a restore of one of the "private" logical volumes but it
> failed since I cannot down the volume group because of the file systems
> mentioned above (it was denied by the system) and on a running volume group
> there is no possibility to access the device since it is in use.

Gesine,

if you mean restore on one of your raw devices bound to a logical volume
used as an informix database device, you need to shutdown the database
and run the restore. Sure you need to restore all logical volumes which
make up the informix database you want to restore or you end up with
and inconsistent database anyway.

If this doesn't help, please provide the steps and their output you took
which lead to the problem.

> 
> Is there a possibility to handle that or to devide the volume group into two
> parts (that for the system file systems and another one for the data)?

Yes, you can do that using pvmove/vgsplit.

This is a *major* configuration change, so you should plan for system
downtime to do it:

- use pvmove to put logical volumes holding /home, /opt etc. onto seperate
 physical volumes from the ones holding your Informix databse logical volumes

- use vgsplit to split volume group quant into 2 volume groups; one will 
  stay named quant and the one holding the split of physical volumes will
  get a new name

See the manual pages for pvmove, vgsplit and our LVM HowTo
on www.sistina.com for further details.

> 
> _______________________________________________
> linux-lvm mailing list
> linux-lvm sistina com
> http://lists.sistina.com/mailman/listinfo/linux-lvm
> read the LVM HOW-TO at http://www.sistina.com/lvm/Pages/howto.html

-- 

Regards,
Heinz    -- The LVM Guy --

*** Software bugs are stupid.
    Nevertheless it needs not so stupid people to solve them ***

=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-

Heinz Mauelshagen                                 Sistina Software Inc.
Senior Consultant/Developer                       Am Sonnenhang 11
                                                  56242 Marienrachdorf
                                                  Germany
Mauelshagen Sistina com                           +49 2626 141200
                                                       FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]