Re: trying to restore data after Harddisk breakdown

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

 



On Sun, Apr 27, 2003 at 11:58:52AM +0200, Kai Iskratsch wrote:
> Im Using now kernel 2.4.20 and device-mapper + lvm checked out from cvs 
> yesterday night.
> (Compilation was not that easy,  i had to make some changes for 
> device-mapper

It's normally safer to use a packaged release (or checkout against a
label corresponding to a release): it's dangerous to assume what's at
the head of CVS at any instant is going to work properly.


>         pv0 {
>             device = "/dev/hdg1"    # Hint only
> 
>             pe_count = 29310    # 114.492 Gigabytes
 
>         pv1 {
>             device = "/dev/hdf1"    # Hint only
>             pe_count = 19078    # 74.5234 Gigabytes
 
>     logical_volumes {
>         MP3 {
>                     "pv0", 0
 
>         DATA {
>                     "pv0", 15360
 
>         VIDEO {
>             segment1 {
>                     "pv0", 20480
>             segment2 {
>                     "Missing", 0

> -----------------------------------------------
> first this says that the 120GB disk is my PV0 and the 80 GB is my PV1, 
> second it says that my 2 working LVs are entirely on the 120 GB 
Yes, that's what the metadata says.

And VIDEO was split between all three disks.

> and I only need to add the new PV and  replace all the Missing 
> Segments by one on the new PV?

If you want to try to salvage something from VIDEO, yes.

Otherwise if you just want to remove VIDEO, use vgreduce --removemissing (but
read the man page first: run with --test to check it's going to do what
you want it to).
 
Alasdair
-- 
agk@uk.sistina.com

_______________________________________________
linux-lvm mailing list
linux-lvm@sistina.com
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/

[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux