[{"data":1,"prerenderedAt":289},["ShallowReactive",2],{"Categories":3,"NavIndexCategoriesCountFooter":203,"content-\u002F2006\u002F04\u002F18\u002Frescuing-a-dead-lvm-install\u002F":204},[4,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,68,70,71,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202],{"category":5},"System Administration",{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},"Software Development",{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":27},{"category":27},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":5},{"category":27},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":27},{"category":27},{"category":67},"Drones & RC",{"category":69},"DIY Projects",{"category":67},{"category":72},"Photography",{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":69},{"category":67},{"category":69},{"category":69},{"category":67},{"category":67},{"category":72},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":5},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":5},{"category":67},{"category":67},{"category":72},{"category":72},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":67},{"category":72},{"category":67},{"category":138},"3D Printing - Laser Cutting - CNC",{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":138},{"category":5},{"category":138},{"category":27},{"category":27},{"category":138},{"category":138},{"category":72},{"category":158},"Photography,3D Printing - Laser Cutting - CNC",{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":5},{"category":67},{"category":5},{"category":5},{"category":27},{"category":27},{"category":27},{"category":27},{"category":27},{"category":69},{"category":27},{"category":27},{"category":27},{"category":27},{"category":181},"Home Assistant",{"category":181},{"category":72},{"category":27},{"category":27},{"category":72},{"category":138},{"category":5},{"category":72},{"category":72},{"category":138},{"category":27},{"category":181},{"category":181},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},{"category":72},191,{"id":205,"title":206,"body":207,"category":5,"date":276,"description":213,"embedImage":277,"extension":278,"image":277,"intro":277,"meta":279,"navigation":280,"path":281,"seo":282,"series":277,"sitemap":283,"stem":284,"tags":285,"__hash__":288},"content\u002F2006\u002F04\u002F18\u002Frescuing-a-dead-lvm-install.md","Rescuing a dead lvm install",{"type":208,"value":209,"toc":273},"minimark",[210,214,217,220,231,234,237,240,243,249,252,258,261,267,270],[211,212,213],"p",{},"One of my machines has an lvm2 volume group spread across three disks. One died - here's how I rescued some of the data",[211,215,216],{},"Very luckily - the dead disk contained one whole logical volume - used for media storage. This meant that all the other logical volumes were there - but - lvm wouldn't start.",[211,218,219],{},"If I'd found out about it in time then this should have been enough:",[221,222,227],"pre",{"className":223,"code":225,"language":226},[224],"language-text","vgreduce --removemissing vg0\n","text",[228,229,225],"code",{"__ignoreMap":230},"",[211,232,233],{},"However - by the time I found that the system was in a worse state (wouldn't boot even to single user mode).",[211,235,236],{},"So - here's how I got the data off using knoppix.",[211,238,239],{},"Boot to knoppix then switch to a tty.",[211,241,242],{},"The device mapper module is present - but not lvm - let's sort that out",[221,244,247],{"className":245,"code":246,"language":226},[224],"modprobe dm_mod\napt-get update\napt-get install lvm2\n",[228,248,246],{"__ignoreMap":230},[211,250,251],{},"Now we can start using it. Let's get the tool symlinks in place",[221,253,256],{"className":254,"code":255,"language":226},[224],"cd \u002Fsbin\nln -s lvmiopversion vgscan\nln -s lvmoipversion vgchange\n",[228,257,255],{"__ignoreMap":230},[211,259,260],{},"Now we can look at the data",[221,262,265],{"className":263,"code":264,"language":226},[224],"vgscan\nvgchange -a y\ncd \u002Fmnt\nmkdir home\nmount -t xfs \u002Fdev\u002Fmapper\u002Fvg0-home home\n",[228,266,264],{"__ignoreMap":230},[211,268,269],{},"Notes - I've got xfs logical volumes. All the volumes that were not on the dead disk are mountable. I had already run the vgreduce command before this point.",[211,271,272],{},"My thanks to Klaus Pieper and the debian-users mailing list for this one :) A life saver.",{"title":230,"searchDepth":274,"depth":274,"links":275},2,[],"2006-04-18 18:59:44 +0200",null,"md",{},true,"\u002F2006\u002F04\u002F18\u002Frescuing-a-dead-lvm-install",{"title":206,"description":213},{"loc":281},"2006\u002F04\u002F18\u002Frescuing-a-dead-lvm-install",[286,287],"debian","lvm2","qWWss9aSRJqHBYvYw2cJsjLAsw6INhBYQmya7GEPGCY",1775293016325]