Disk crash , LVM and ext2... (bis)
(yesterday I wrote to [email protected], but it seems that it wasn't the good place for my problem as nobody answer me :o| )
My problem, is that I set a VG over 3 IDE disk, and that the first one crashed. I started writing a tool to recover my data but this tool need to only read the data that belong to the Ext2 filesystem. Originally, there were 4 LV in the VG. Would I be able to access the remaining data of LVs ? And how could I do that ?
I added the output of vgscan, pvdisplay and pvdata.
Thanks a lot.
-=( manu )=-
vgscan -- ERROR "vg_read_with_pv_and_lv(): current PV" can't get data of volume group "main" from physical volume(s) vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
--- Physical volume ---
PV Name /dev/hdb1 VG Name main PV Size 37.27 GB [78165297 secs] / NOT usable 32.18 MB [LVM: 128 KB] PV# 3 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 32768 Total PE 1191 Free PE 0 Allocated PE 1191 PV UUID qfTbN9-v2rh-jxrq-gbRj-V6hs-H7CJ-RkuuJU
--- Physical volume ---
PV Name /dev/hdc1 VG Name main PV Size 74.53 GB [156301425 secs] / NOT usable 32.18 MB [LVM: 133 KB] PV# 4 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 32768 Total PE 2383 Free PE 0 Allocated PE 2383 PV UUID B6eh7L-kvSq-aiOg-aYxM-Cn6t-d5yA-ysvY1n
--- Physical volume ---
PV Name /dev/hdb1 VG Name main PV Size 37.27 GB [78165297 secs] / NOT usable 32.18 MB [LVM: 128 KB] PV# 3 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 32768 Total PE 1191 Free PE 0 Allocated PE 1191 PV UUID qfTbN9-v2rh-jxrq-gbRj-V6hs-H7CJ-RkuuJU
--- Volume group ---
VG Name
VG Access read/write VG Status NOT available/resizable VG # 0 MAX LV 255 Cur LV 4 Open LV 0 MAX LV Size 2 TB Max PV 255 Cur PV 4 Act PV 4 VG Size 124.03 GB PE Size 32 MB Total PE 3969 Alloc PE / Size 3969 / 124.03 GB Free PE / Size 0 / 0 VG UUID gAUFoR-WAoN-zftw-H0z5-pb1D-w4nK-dSAvvr
--- List of logical volumes ---
pvdata -- logical volume "/dev/main/lv_usr" at offset 0
pvdata -- logical volume "/dev/main/lv_home" at offset 1
pvdata -- logical volume "/dev/main/lv_tmp" at offset 2
pvdata -- logical volume "/dev/main/lv_var" at offset 3
pvdata -- logical volume struct at offset 4 is empty pvdata -- logical volume struct at offset 5 is empty pvdata -- logical volume struct at offset 6 is empty pvdata -- logical volume struct at offset 7 is empty pvdata -- logical volume struct at offset 8 is empty pvdata -- logical volume struct at offset 9 is empty pvdata -- logical volume struct at offset 10 is empty pvdata -- logical volume struct at offset 11 is empty pvdata -- logical volume struct at offset 12 is empty pvdata -- logical volume struct at offset 13 is empty pvdata -- logical volume struct at offset 14 is empty pvdata -- logical volume struct at offset 15 is empty pvdata -- logical volume struct at offset 16 is empty pvdata -- logical volume struct at offset 17 is empty pvdata -- logical volume struct at offset 18 is empty pvdata -- logical volume struct at offset 19 is empty pvdata -- logical volume struct at offset 20 is empty pvdata -- logical volume struct at offset 21 is empty pvdata -- logical volume struct at offset 22 is empty pvdata -- logical volume struct at offset 23 is empty pvdata -- logical volume struct at offset 24 is empty pvdata -- logical volume struct at offset 25 is empty pvdata -- logical volume struct at offset 26 is empty pvdata -- logical volume struct at offset 27 is empty pvdata -- logical volume struct at offset 28 is empty pvdata -- logical volume struct at offset 29 is empty pvdata -- logical volume struct at offset 30 is empty pvdata -- logical volume struct at offset 31 is empty pvdata -- logical volume struct at offset 32 is empty pvdata -- logical volume struct at offset 33 is empty pvdata -- logical volume struct at offset 34 is empty pvdata -- logical volume struct at offset 35 is empty pvdata -- logical volume struct at offset 36 is empty pvdata -- logical volume struct at offset 37 is empty pvdata -- logical volume struct at offset 38 is empty pvdata -- logical volume struct at offset 39 is empty pvdata -- logical volume struct at offset 40 is empty pvdata -- logical volume struct at offset 41 is empty pvdata -- logical volume struct at offset 42 is empty pvdata -- logical volume struct at offset 43 is empty pvdata -- logical volume struct at offset 44 is empty pvdata -- logical volume struct at offset 45 is empty pvdata -- logical volume struct at offset 46 is empty pvdata -- logical volume struct at offset 47 is empty pvdata -- logical volume struct at offset 48 is empty pvdata -- logical volume struct at offset 49 is empty pvdata -- logical volume struct at offset 50 is empty pvdata -- logical volume struct at offset 51 is empty pvdata -- logical volume struct at offset 52 is empty pvdata -- logical volume struct at offset 53 is empty pvdata -- logical volume struct at offset 54 is empty pvdata -- logical volume struct at offset 55 is empty pvdata -- logical volume struct at offset 56 is empty pvdata -- logical volume struct at offset 57 is empty pvdata -- logical volume struct at offset 58 is empty pvdata -- logical volume struct at offset 59 is empty pvdata -- logical volume struct at offset 60 is empty pvdata -- logical volume struct at offset 61 is empty pvdata -- logical volume struct at offset 62 is empty pvdata -- logical volume struct at offset 63 is empty pvdata -- logical volume struct at offset 64 is empty pvdata -- logical volume struct at offset 65 is empty pvdata -- logical volume struct at offset 66 is empty pvdata -- logical volume struct at offset 67 is empty pvdata -- logical volume struct at offset 68 is empty pvdata -- logical volume struct at offset 69 is empty pvdata -- logical volume struct at offset 70 is empty pvdata -- logical volume struct at offset 71 is empty pvdata -- logical volume struct at offset 72 is empty pvdata -- logical volume struct at offset 73 is empty pvdata -- logical volume struct at offset 74 is empty pvdata -- logical volume struct at offset 75 is empty pvdata -- logical volume struct at offset 76 is empty pvdata -- logical volume struct at offset 77 is empty pvdata -- logical volume struct at offset 78 is empty pvdata -- logical volume struct at offset 79 is empty pvdata -- logical volume struct at offset 80 is empty pvdata -- logical volume struct at offset 81 is empty pvdata -- logical volume struct at offset 82 is empty pvdata -- logical volume struct at offset 83 is empty pvdata -- logical volume struct at offset 84 is empty pvdata -- logical volume struct at offset 85 is empty pvdata -- logical volume struct at offset 86 is empty pvdata -- logical volume struct at offset 87 is empty pvdata -- logical volume struct at offset 88 is empty pvdata -- logical volume struct at offset 89 is empty pvdata -- logical volume struct at offset 90 is empty pvdata -- logical volume struct at offset 91 is empty pvdata -- logical volume struct at offset 92 is empty pvdata -- logical volume struct at offset 93 is empty pvdata -- logical volume struct at offset 94 is empty pvdata -- logical volume struct at offset 95 is empty pvdata -- logical volume struct at offset 96 is empty pvdata -- logical volume struct at offset 97 is empty pvdata -- logical volume struct at offset 98 is empty pvdata -- logical volume struct at offset 99 is empty
pvdata -- logical volume struct at offset 100 is empty pvdata -- logical volume struct at offset 101 is empty pvdata -- logical volume struct at offset 102 is empty pvdata -- logical volume struct at offset 103 is empty pvdata -- logical volume struct at offset 104 is empty pvdata -- logical volume struct at offset 105 is empty pvdata -- logical volume struct at offset 106 is empty pvdata -- logical volume struct at offset 107 is empty pvdata -- logical volume struct at offset 108 is empty pvdata -- logical volume struct at offset 109 is empty pvdata -- logical volume struct at offset 110 is empty pvdata -- logical volume struct at offset 111 is empty pvdata -- logical volume struct at offset 112 is empty pvdata -- logical volume struct at offset 113 is empty pvdata -- logical volume struct at offset 114 is empty pvdata -- logical volume struct at offset 115 is empty pvdata -- logical volume struct at offset 116 is empty pvdata -- logical volume struct at offset 117 is empty pvdata -- logical volume struct at offset 118 is empty pvdata -- logical volume struct at offset 119 is empty pvdata -- logical volume struct at offset 120 is empty pvdata -- logical volume struct at offset 121 is empty pvdata -- logical volume struct at offset 122 is empty pvdata -- logical volume struct at offset 123 is empty pvdata -- logical volume struct at offset 124 is empty pvdata -- logical volume struct at offset 125 is empty pvdata -- logical volume struct at offset 126 is empty pvdata -- logical volume struct at offset 127 is empty pvdata -- logical volume struct at offset 128 is empty pvdata -- logical volume struct at offset 129 is empty pvdata -- logical volume struct at offset 130 is empty pvdata -- logical volume struct at offset 131 is empty pvdata -- logical volume struct at offset 132 is empty pvdata -- logical volume struct at offset 133 is empty pvdata -- logical volume struct at offset 134 is empty pvdata -- logical volume struct at offset 135 is empty pvdata -- logical volume struct at offset 136 is empty pvdata -- logical volume struct at offset 137 is empty pvdata -- logical volume struct at offset 138 is empty pvdata -- logical volume struct at offset 139 is empty pvdata -- logical volume struct at offset 140 is empty pvdata -- logical volume struct at offset 141 is empty pvdata -- logical volume struct at offset 142 is empty pvdata -- logical volume struct at offset 143 is empty pvdata -- logical volume struct at offset 144 is empty pvdata -- logical volume struct at offset 145 is empty pvdata -- logical volume struct at offset 146 is empty pvdata -- logical volume struct at offset 147 is empty pvdata -- logical volume struct at offset 148 is empty pvdata -- logical volume struct at offset 149 is empty pvdata -- logical volume struct at offset 150 is empty pvdata -- logical volume struct at offset 151 is empty pvdata -- logical volume struct at offset 152 is empty pvdata -- logical volume struct at offset 153 is empty pvdata -- logical volume struct at offset 154 is empty pvdata -- logical volume struct at offset 155 is empty pvdata -- logical volume struct at offset 156 is empty pvdata -- logical volume struct at offset 157 is empty pvdata -- logical volume struct at offset 158 is empty pvdata -- logical volume struct at offset 159 is empty pvdata -- logical volume struct at offset 160 is empty pvdata -- logical volume struct at offset 161 is empty pvdata -- logical volume struct at offset 162 is empty pvdata -- logical volume struct at offset 163 is empty pvdata -- logical volume struct at offset 164 is empty pvdata -- logical volume struct at offset 165 is empty pvdata -- logical volume struct at offset 166 is empty pvdata -- logical volume struct at offset 167 is empty pvdata -- logical volume struct at offset 168 is empty pvdata -- logical volume struct at offset 169 is empty pvdata -- logical volume struct at offset 170 is empty pvdata -- logical volume struct at offset 171 is empty pvdata -- logical volume struct at offset 172 is empty pvdata -- logical volume struct at offset 173 is empty pvdata -- logical volume struct at offset 174 is empty pvdata -- logical volume struct at offset 175 is empty pvdata -- logical volume struct at offset 176 is empty pvdata -- logical volume struct at offset 177 is empty pvdata -- logical volume struct at offset 178 is empty pvdata -- logical volume struct at offset 179 is empty pvdata -- logical volume struct at offset 180 is empty pvdata -- logical volume struct at offset 181 is empty pvdata -- logical volume struct at offset 182 is empty pvdata -- logical volume struct at offset 183 is empty pvdata -- logical volume struct at offset 184 is empty pvdata -- logical volume struct at offset 185 is empty pvdata -- logical volume struct at offset 186 is empty pvdata -- logical volume struct at offset 187 is empty pvdata -- logical volume struct at offset 188 is empty pvdata -- logical volume struct at offset 189 is empty pvdata -- logical volume struct at offset 190 is empty pvdata -- logical volume struct at offset 191 is empty pvdata -- logical volume struct at offset 192 is empty pvdata -- logical volume struct at offset 193 is empty pvdata -- logical volume struct at offset 194 is empty pvdata -- logical volume struct at offset 195 is empty pvdata -- logical volume struct at offset 196 is empty pvdata -- logical volume struct at offset 197 is empty pvdata -- logical volume struct at offset 198 is empty pvdata -- logical volume struct at offset 199 is empty pvdata -- logical volume struct at offset 200 is empty pvdata -- logical volume struct at offset 201 is empty pvdata -- logical volume struct at offset 202 is empty pvdata -- logical volume struct at offset 203 is empty pvdata -- logical volume struct at offset 204 is empty pvdata -- logical volume struct at offset 205 is empty pvdata -- logical volume struct at offset 206 is empty pvdata -- logical volume struct at offset 207 is empty pvdata -- logical volume struct at offset 208 is empty pvdata -- logical volume struct at offset 209 is empty pvdata -- logical volume struct at offset 210 is empty pvdata -- logical volume struct at offset 211 is empty pvdata -- logical volume struct at offset 212 is empty pvdata -- logical volume struct at offset 213 is empty pvdata -- logical volume struct at offset 214 is empty pvdata -- logical volume struct at offset 215 is empty pvdata -- logical volume struct at offset 216 is empty pvdata -- logical volume struct at offset 217 is empty pvdata -- logical volume struct at offset 218 is empty pvdata -- logical volume struct at offset 219 is empty pvdata -- logical volume struct at offset 220 is empty pvdata -- logical volume struct at offset 221 is empty pvdata -- logical volume struct at offset 222 is empty pvdata -- logical volume struct at offset 223 is empty pvdata -- logical volume struct at offset 224 is empty pvdata -- logical volume struct at offset 225 is empty pvdata -- logical volume struct at offset 226 is empty pvdata -- logical volume struct at offset 227 is empty pvdata -- logical volume struct at offset 228 is empty pvdata -- logical volume struct at offset 229 is empty pvdata -- logical volume struct at offset 230 is empty pvdata -- logical volume struct at offset 231 is empty pvdata -- logical volume struct at offset 232 is empty pvdata -- logical volume struct at offset 233 is empty pvdata -- logical volume struct at offset 234 is empty pvdata -- logical volume struct at offset 235 is empty pvdata -- logical volume struct at offset 236 is empty pvdata -- logical volume struct at offset 237 is empty pvdata -- logical volume struct at offset 238 is empty pvdata -- logical volume struct at offset 239 is empty pvdata -- logical volume struct at offset 240 is empty pvdata -- logical volume struct at offset 241 is empty pvdata -- logical volume struct at offset 242 is empty pvdata -- logical volume struct at offset 243 is empty pvdata -- logical volume struct at offset 244 is empty pvdata -- logical volume struct at offset 245 is empty pvdata -- logical volume struct at offset 246 is empty pvdata -- logical volume struct at offset 247 is empty pvdata -- logical volume struct at offset 248 is empty pvdata -- logical volume struct at offset 249 is empty pvdata -- logical volume struct at offset 250 is empty pvdata -- logical volume struct at offset 251 is empty pvdata -- logical volume struct at offset 252 is empty pvdata -- logical volume struct at offset 253 is empty pvdata -- logical volume struct at offset 254 is empty --- List of physical volume UUIDs ---
001: somhX2-hx5K-zyfL-B9Qj-hloN-CY37-RPIRn9 002: 39vmzn-njSN-UXXk-yWYv-h8yu-Xjh1-4Um32W 003: qfTbN9-v2rh-jxrq-gbRj-V6hs-H7CJ-RkuuJU 004: B6eh7L-kvSq-aiOg-aYxM-Cn6t-d5yA-ysvY1n
--- Physical volume ---
PV Name /dev/hdc1 VG Name main PV Size 74.53 GB [156301425 secs] / NOT usable 32.18 MB [LVM: 133 KB] PV# 4 PV Status NOT available Allocatable yes (but full) Cur LV 1 PE Size (KByte) 32768 Total PE 2383 Free PE 0 Allocated PE 2383 PV UUID B6eh7L-kvSq-aiOg-aYxM-Cn6t-d5yA-ysvY1n
--- Volume group ---
VG Name
VG Access read/write VG Status NOT available/resizable VG # 0 MAX LV 255 Cur LV 4 Open LV 0 MAX LV Size 2 TB Max PV 255 Cur PV 4 Act PV 4 VG Size 124.03 GB PE Size 32 MB Total PE 3969 Alloc PE / Size 3969 / 124.03 GB Free PE / Size 0 / 0 VG UUID gAUFoR-WAoN-zftw-H0z5-pb1D-w4nK-dSAvvr
--- List of logical volumes ---
pvdata -- logical volume "/dev/main/lv_usr" at offset 0
pvdata -- logical volume "/dev/main/lv_home" at offset 1
pvdata -- logical volume "/dev/main/lv_tmp" at offset 2
pvdata -- logical volume "/dev/main/lv_var" at offset 3
pvdata -- logical volume struct at offset 4 is empty pvdata -- logical volume struct at offset 5 is empty pvdata -- logical volume struct at offset 6 is empty pvdata -- logical volume struct at offset 7 is empty pvdata -- logical volume struct at offset 8 is empty pvdata -- logical volume struct at offset 9 is empty pvdata -- logical volume struct at offset 10 is empty pvdata -- logical volume struct at offset 11 is empty pvdata -- logical volume struct at offset 12 is empty pvdata -- logical volume struct at offset 13 is empty pvdata -- logical volume struct at offset 14 is empty pvdata -- logical volume struct at offset 15 is empty pvdata -- logical volume struct at offset 16 is empty pvdata -- logical volume struct at offset 17 is empty pvdata -- logical volume struct at offset 18 is empty pvdata -- logical volume struct at offset 19 is empty pvdata -- logical volume struct at offset 20 is empty pvdata -- logical volume struct at offset 21 is empty pvdata -- logical volume struct at offset 22 is empty pvdata -- logical volume struct at offset 23 is empty pvdata -- logical volume struct at offset 24 is empty pvdata -- logical volume struct at offset 25 is empty pvdata -- logical volume struct at offset 26 is empty pvdata -- logical volume struct at offset 27 is empty pvdata -- logical volume struct at offset 28 is empty pvdata -- logical volume struct at offset 29 is empty pvdata -- logical volume struct at offset 30 is empty pvdata -- logical volume struct at offset 31 is empty pvdata -- logical volume struct at offset 32 is empty pvdata -- logical volume struct at offset 33 is empty pvdata -- logical volume struct at offset 34 is empty pvdata -- logical volume struct at offset 35 is empty pvdata -- logical volume struct at offset 36 is empty pvdata -- logical volume struct at offset 37 is empty pvdata -- logical volume struct at offset 38 is empty pvdata -- logical volume struct at offset 39 is empty pvdata -- logical volume struct at offset 40 is empty pvdata -- logical volume struct at offset 41 is empty pvdata -- logical volume struct at offset 42 is empty pvdata -- logical volume struct at offset 43 is empty pvdata -- logical volume struct at offset 44 is empty pvdata -- logical volume struct at offset 45 is empty pvdata -- logical volume struct at offset 46 is empty pvdata -- logical volume struct at offset 47 is empty pvdata -- logical volume struct at offset 48 is empty pvdata -- logical volume struct at offset 49 is empty pvdata -- logical volume struct at offset 50 is empty pvdata -- logical volume struct at offset 51 is empty pvdata -- logical volume struct at offset 52 is empty pvdata -- logical volume struct at offset 53 is empty pvdata -- logical volume struct at offset 54 is empty pvdata -- logical volume struct at offset 55 is empty pvdata -- logical volume struct at offset 56 is empty pvdata -- logical volume struct at offset 57 is empty pvdata -- logical volume struct at offset 58 is empty pvdata -- logical volume struct at offset 59 is empty pvdata -- logical volume struct at offset 60 is empty pvdata -- logical volume struct at offset 61 is empty pvdata -- logical volume struct at offset 62 is empty pvdata -- logical volume struct at offset 63 is empty pvdata -- logical volume struct at offset 64 is empty pvdata -- logical volume struct at offset 65 is empty pvdata -- logical volume struct at offset 66 is empty pvdata -- logical volume struct at offset 67 is empty pvdata -- logical volume struct at offset 68 is empty pvdata -- logical volume struct at offset 69 is empty pvdata -- logical volume struct at offset 70 is empty pvdata -- logical volume struct at offset 71 is empty pvdata -- logical volume struct at offset 72 is empty pvdata -- logical volume struct at offset 73 is empty pvdata -- logical volume struct at offset 74 is empty pvdata -- logical volume struct at offset 75 is empty pvdata -- logical volume struct at offset 76 is empty pvdata -- logical volume struct at offset 77 is empty pvdata -- logical volume struct at offset 78 is empty pvdata -- logical volume struct at offset 79 is empty pvdata -- logical volume struct at offset 80 is empty pvdata -- logical volume struct at offset 81 is empty pvdata -- logical volume struct at offset 82 is empty pvdata -- logical volume struct at offset 83 is empty pvdata -- logical volume struct at offset 84 is empty pvdata -- logical volume struct at offset 85 is empty pvdata -- logical volume struct at offset 86 is empty pvdata -- logical volume struct at offset 87 is empty pvdata -- logical volume struct at offset 88 is empty pvdata -- logical volume struct at offset 89 is empty pvdata -- logical volume struct at offset 90 is empty pvdata -- logical volume struct at offset 91 is empty pvdata -- logical volume struct at offset 92 is empty pvdata -- logical volume struct at offset 93 is empty pvdata -- logical volume struct at offset 94 is empty pvdata -- logical volume struct at offset 95 is empty pvdata -- logical volume struct at offset 96 is empty pvdata -- logical volume struct at offset 97 is empty pvdata -- logical volume struct at offset 98 is empty pvdata -- logical volume struct at offset 99 is empty
pvdata -- logical volume struct at offset 100 is empty pvdata -- logical volume struct at offset 101 is empty pvdata -- logical volume struct at offset 102 is empty pvdata -- logical volume struct at offset 103 is empty pvdata -- logical volume struct at offset 104 is empty pvdata -- logical volume struct at offset 105 is empty pvdata -- logical volume struct at offset 106 is empty pvdata -- logical volume struct at offset 107 is empty pvdata -- logical volume struct at offset 108 is empty pvdata -- logical volume struct at offset 109 is empty pvdata -- logical volume struct at offset 110 is empty pvdata -- logical volume struct at offset 111 is empty pvdata -- logical volume struct at offset 112 is empty pvdata -- logical volume struct at offset 113 is empty pvdata -- logical volume struct at offset 114 is empty pvdata -- logical volume struct at offset 115 is empty pvdata -- logical volume struct at offset 116 is empty pvdata -- logical volume struct at offset 117 is empty pvdata -- logical volume struct at offset 118 is empty pvdata -- logical volume struct at offset 119 is empty pvdata -- logical volume struct at offset 120 is empty pvdata -- logical volume struct at offset 121 is empty pvdata -- logical volume struct at offset 122 is empty pvdata -- logical volume struct at offset 123 is empty pvdata -- logical volume struct at offset 124 is empty pvdata -- logical volume struct at offset 125 is empty pvdata -- logical volume struct at offset 126 is empty pvdata -- logical volume struct at offset 127 is empty pvdata -- logical volume struct at offset 128 is empty pvdata -- logical volume struct at offset 129 is empty pvdata -- logical volume struct at offset 130 is empty pvdata -- logical volume struct at offset 131 is empty pvdata -- logical volume struct at offset 132 is empty pvdata -- logical volume struct at offset 133 is empty pvdata -- logical volume struct at offset 134 is empty pvdata -- logical volume struct at offset 135 is empty pvdata -- logical volume struct at offset 136 is empty pvdata -- logical volume struct at offset 137 is empty pvdata -- logical volume struct at offset 138 is empty pvdata -- logical volume struct at offset 139 is empty pvdata -- logical volume struct at offset 140 is empty pvdata -- logical volume struct at offset 141 is empty pvdata -- logical volume struct at offset 142 is empty pvdata -- logical volume struct at offset 143 is empty pvdata -- logical volume struct at offset 144 is empty pvdata -- logical volume struct at offset 145 is empty pvdata -- logical volume struct at offset 146 is empty pvdata -- logical volume struct at offset 147 is empty pvdata -- logical volume struct at offset 148 is empty pvdata -- logical volume struct at offset 149 is empty pvdata -- logical volume struct at offset 150 is empty pvdata -- logical volume struct at offset 151 is empty pvdata -- logical volume struct at offset 152 is empty pvdata -- logical volume struct at offset 153 is empty pvdata -- logical volume struct at offset 154 is empty pvdata -- logical volume struct at offset 155 is empty pvdata -- logical volume struct at offset 156 is empty pvdata -- logical volume struct at offset 157 is empty pvdata -- logical volume struct at offset 158 is empty pvdata -- logical volume struct at offset 159 is empty pvdata -- logical volume struct at offset 160 is empty pvdata -- logical volume struct at offset 161 is empty pvdata -- logical volume struct at offset 162 is empty pvdata -- logical volume struct at offset 163 is empty pvdata -- logical volume struct at offset 164 is empty pvdata -- logical volume struct at offset 165 is empty pvdata -- logical volume struct at offset 166 is empty pvdata -- logical volume struct at offset 167 is empty pvdata -- logical volume struct at offset 168 is empty pvdata -- logical volume struct at offset 169 is empty pvdata -- logical volume struct at offset 170 is empty pvdata -- logical volume struct at offset 171 is empty pvdata -- logical volume struct at offset 172 is empty pvdata -- logical volume struct at offset 173 is empty pvdata -- logical volume struct at offset 174 is empty pvdata -- logical volume struct at offset 175 is empty pvdata -- logical volume struct at offset 176 is empty pvdata -- logical volume struct at offset 177 is empty pvdata -- logical volume struct at offset 178 is empty pvdata -- logical volume struct at offset 179 is empty pvdata -- logical volume struct at offset 180 is empty pvdata -- logical volume struct at offset 181 is empty pvdata -- logical volume struct at offset 182 is empty pvdata -- logical volume struct at offset 183 is empty pvdata -- logical volume struct at offset 184 is empty pvdata -- logical volume struct at offset 185 is empty pvdata -- logical volume struct at offset 186 is empty pvdata -- logical volume struct at offset 187 is empty pvdata -- logical volume struct at offset 188 is empty pvdata -- logical volume struct at offset 189 is empty pvdata -- logical volume struct at offset 190 is empty pvdata -- logical volume struct at offset 191 is empty pvdata -- logical volume struct at offset 192 is empty pvdata -- logical volume struct at offset 193 is empty pvdata -- logical volume struct at offset 194 is empty pvdata -- logical volume struct at offset 195 is empty pvdata -- logical volume struct at offset 196 is empty pvdata -- logical volume struct at offset 197 is empty pvdata -- logical volume struct at offset 198 is empty pvdata -- logical volume struct at offset 199 is empty pvdata -- logical volume struct at offset 200 is empty pvdata -- logical volume struct at offset 201 is empty pvdata -- logical volume struct at offset 202 is empty pvdata -- logical volume struct at offset 203 is empty pvdata -- logical volume struct at offset 204 is empty pvdata -- logical volume struct at offset 205 is empty pvdata -- logical volume struct at offset 206 is empty pvdata -- logical volume struct at offset 207 is empty pvdata -- logical volume struct at offset 208 is empty pvdata -- logical volume struct at offset 209 is empty pvdata -- logical volume struct at offset 210 is empty pvdata -- logical volume struct at offset 211 is empty pvdata -- logical volume struct at offset 212 is empty pvdata -- logical volume struct at offset 213 is empty pvdata -- logical volume struct at offset 214 is empty pvdata -- logical volume struct at offset 215 is empty pvdata -- logical volume struct at offset 216 is empty pvdata -- logical volume struct at offset 217 is empty pvdata -- logical volume struct at offset 218 is empty pvdata -- logical volume struct at offset 219 is empty pvdata -- logical volume struct at offset 220 is empty pvdata -- logical volume struct at offset 221 is empty pvdata -- logical volume struct at offset 222 is empty pvdata -- logical volume struct at offset 223 is empty pvdata -- logical volume struct at offset 224 is empty pvdata -- logical volume struct at offset 225 is empty pvdata -- logical volume struct at offset 226 is empty pvdata -- logical volume struct at offset 227 is empty pvdata -- logical volume struct at offset 228 is empty pvdata -- logical volume struct at offset 229 is empty pvdata -- logical volume struct at offset 230 is empty pvdata -- logical volume struct at offset 231 is empty pvdata -- logical volume struct at offset 232 is empty pvdata -- logical volume struct at offset 233 is empty pvdata -- logical volume struct at offset 234 is empty pvdata -- logical volume struct at offset 235 is empty pvdata -- logical volume struct at offset 236 is empty pvdata -- logical volume struct at offset 237 is empty pvdata -- logical volume struct at offset 238 is empty pvdata -- logical volume struct at offset 239 is empty pvdata -- logical volume struct at offset 240 is empty pvdata -- logical volume struct at offset 241 is empty pvdata -- logical volume struct at offset 242 is empty pvdata -- logical volume struct at offset 243 is empty pvdata -- logical volume struct at offset 244 is empty pvdata -- logical volume struct at offset 245 is empty pvdata -- logical volume struct at offset 246 is empty pvdata -- logical volume struct at offset 247 is empty pvdata -- logical volume struct at offset 248 is empty pvdata -- logical volume struct at offset 249 is empty pvdata -- logical volume struct at offset 250 is empty pvdata -- logical volume struct at offset 251 is empty pvdata -- logical volume struct at offset 252 is empty pvdata -- logical volume struct at offset 253 is empty pvdata -- logical volume struct at offset 254 is empty --- List of physical volume UUIDs ---
001: somhX2-hx5K-zyfL-B9Qj-hloN-CY37-RPIRn9 002: 39vmzn-njSN-UXXk-yWYv-h8yu-Xjh1-4Um32W 003: qfTbN9-v2rh-jxrq-gbRj-V6hs-H7CJ-RkuuJU 004: B6eh7L-kvSq-aiOg-aYxM-Cn6t-d5yA-ysvY1n
Quoted 10 lines · Emmanuel Varagnat
(yesterday I wrote to [email protected], but it seems that it wasn't the good place for my problem as nobody answer me :o| )
My problem, is that I set a VG over 3 IDE disk, and that the first one crashed. I started writing a tool to recover my data but this tool need to only read the data that belong to the Ext2 filesystem. Originally, there were 4 LV in the VG. Would I be able to access the remaining data of LVs ? And how could I do that ?
I added the output of vgscan, pvdisplay and pvdata.
LVM1 can't retrieve data from a VG with a crashed PV (That's what your backups are for).
LVM2 can if you active the VG with the -P (--partial) flag. LVM2 can read LVM2 metadata.
patrick
Quoted 6 lines · Patrick Caulfield
LVM1 can't retrieve data from a VG with a crashed PV (That's what your backups are for).
LVM2 can if you active the VG with the -P (--partial) flag. LVM2 can read LVM2 metadata.
This system was on a Slackware 8.0, with a 2.4.18 kernel and LVM compiled by myself (can't remember the version).
I'm gonna take a look a this.
Thanks.
-=( manu )=-
Quoted 9 lines · Emmanuel Varagnat
Quoted 8 lines · Patrick Caulfield
LVM1 can't retrieve data from a VG with a crashed PV (That's what your backups
are for).LVM2 can if you active the VG with the -P (--partial) flag. LVM2 can read LVM2
metadata.
I meant, of course, that LVM2 can read LVM1 metadata :-)
Quoted 4 lines
This system was on a Slackware 8.0, with a 2.4.18 kernel and LVM compiled by myself (can't remember the version).
I'm gonna take a look a this.
Don't forget, you'll need the "device-mapper" kernel patches too. They work best with 2.4.19 kernels, there were VM problems with 2.4.18 ones.
Signature · 1 line
patrick
Quoted 3 lines · Patrick Caulfield
Don't forget, you'll need the "device-mapper" kernel patches too. They work best with 2.4.19 kernels, there were VM problems with 2.4.18 ones.
I played a bit with that, and it looks like when device-mapper can't access a zone it returns zeros.
What I did, is to create an LV over 4 or 5 partitions, format it, zeroed the first partition, do a 'vgscan -P' and try to read the block device (LV raw data). I supposed that this is the device-mapper that hide the missing informations by returning zeros. Is there a way to know (via ioctl for example) that a data is not available ? For my program, I need to know, what is readable and what is not readable.
I will also try evms, as E.Tews sugested.
Thanks
-=( manu )=-
PS: I do not have backup of my data because this is personal data (at home) and I thought it could be useful, as well as fun, to write this tool.
PPS: I first named this tool e2forensic, but my english isn't so good so could someone tell me if it make sense ?
PPPS: thank you for reading the message until there :o)
Quoted 5 lines · Emmanuel Varagnat
I played a bit with that, and it looks like when device-mapper can't access a zone it returns zeros.
What I did, is to create an LV over 4 or 5 partitions, format it, zeroed the first partition, do a 'vgscan -P' and try to read the block device (LV raw data). I supposed that this is the device-mapper that hide the missing informations by returning zeros. Is there a way to know (via ioctl for example) that a data is not available ? For my program, I need to know, what is readable and what is not readable.
Do you think the LV_BMAP ioctl command could tell me if a block is available or not into the LV ? Its purpose is to give the sector number and the drive of a logical block, isn't it ?
What I want from the LVM is to tell me if data returned by a read command can be trusted. If it returns me a lot of zeros is it because the block is not available or because the block effectivly contains zeros.
Thanks a lot.
-=( manu )=-
Quoted 12 lines · Emmanuel Varagnat
Quoted 10 lines · Emmanuel Varagnat
I played a bit with that, and it looks like when device-mapper can't access a zone it returns zeros.
What I did, is to create an LV over 4 or 5 partitions, format it, zeroed the first partition, do a 'vgscan -P' and try to read the block device (LV raw data).
I supposed that this is the device-mapper that hide the missing informations by returning zeros. Is there a way to know (via ioctl for example) that a data is not available ?
For my program, I need to know, what is readable and what is not readable.
Quoted 8 lines
Do you think the
LV_BMAPioctl command could tell me if a block is available or not into the LV ?
Its purpose is to give the sector number and the drive of a logical block, isn't it ?What I want from the LVM is to tell me if data returned by a read command can be trusted. If it returns me a lot of zeros is it because the block is not available or because the block effectivly contains zeros.
We don't support zeroing of the data in the error case so far and do return an io error to the application. Later we plan to as an option.
So today you get a read error if the block is not available and the data is not zeroed in memory. No need to (ab)use LV_BMAP.
If your application needs to distinguish those cases anyways, you would want to stay with 'io error returned'.
Quoted 11 lines
Thanks a lot.
-=( manu )=-
_______________________________________________
linux-lvm mailing list
[email protected]
http://lists.sistina.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
Signature · 15 lines
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
[email protected] +49 2626 141200
FAX 924446
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-Quoted 8 lines · Heinz J . Mauelshagen
We don't support zeroing of the data in the error case so far and do return an io error to the application. Later we plan to as an option.
So today you get a read error if the block is not available and the data is not zeroed in memory. No need to (ab)use
LV_BMAP.If your application needs to distinguish those cases anyways, you would want to stay with 'io error returned'.
Ok it works as I expected.
The error was coming from the fact that _I_ zeroed the partition to let the LVM utilties think that the PV isn't here. So the data returned was effectively coming from the partition. Instead I delete the partition, reboot and retest.
Thanks for taking time to answer.
-=( manu )=-