Problem with LVs
I'm having a strange problem, and I haven't found any help in the regular places so far.
I have a VG, data_vg, with three LVs (data, games, and winex). After doing some disk-related work (not involving the PV on which data_vg resides), I found that one of the filesystems (data) contained the content of another (winex) instead. /dev/data_vg looks like this:
brw-r----- 1 root root 58, 6 Dec 31 1969 data brw-r----- 1 root root 58, 7 Dec 31 1969 games crw-r----- 1 root root 109, 3 Dec 31 1969 group brw-r----- 1 root root 58, 7 Dec 31 1969 lvol2 brw-r----- 1 root root 58, 6 Dec 31 1969 winex
The minor device number for data and winex is the same. I'm hoping that the blocks belonging to LV data are still intact on the PV. I need to figure out how to get LV data pointing back to where it should be. Any help toward that end will be GREATLY appreciated.
Signature · 9 lines
--Michael ------------------------------------------------------------------------------- Michael Hill <>< Isaiah 9:6 | michael AT mhill DOT net | # find / -name '*[Bb][Aa][Ss][Ee]*' \ Aerospace/Software Engineer | > -user your -print | xargs chown us:cats http://www.qadas.com/~msh/ | ---In a marketplace (like the one of ideas), not everything has equal value!--- Did you ever notice that everybody in favor of abortion has already been born?!
Quoted 1 line · Michael Hill
The minor device number for data and winex is the same. I'm hoping that
vgscan -f
L.
Signature · 6 lines
Luca Berra -- [email protected] Communication Media & Services S.r.l. /"\ \ / ASCII RIBBON CAMPAIGN X AGAINST HTML MAIL / \
Quoted 3 lines · Luca Berra
Quoted 1 line · Michael Hill
The minor device number for data and winex is the same. I'm hoping that
vgscan -f
Okay, thanks. Of course, it wasn't that simple; I spent about an hour and a half bouncing between single-user and recovery CD, to no avail. No matter what I did, the data LV stubbornly retained the same minor device no. as the winex LV.
It wasn't until I booted from recovery CD, mounted the root part'n, and looked in /dev/*_vg that I had an idea. data_vg had just a "data" entry (not counting "group"), instead of the three that it has when LVM is up and running. I thought maybe that entry, since it clearly remained on disk between boots, was interfering when vgscan is run at boot. So I deleted it. At the next reboot, data_vg didn't come up. So *then* I ran vgscan -f , and finally I had different minor device nos. for the LVs in data_vg! Another reboot, and I was back in business.
Thanks for telling me the command to run, Luca.
Signature · 9 lines
--Michael ------------------------------------------------------------------------------- Michael Hill <>< Isaiah 9:6 | michael AT mhill DOT net | # find / -name '*[Bb][Aa][Ss][Ee]*' \ Aerospace/Software Engineer | > -user your -print | xargs chown us:cats http://www.qadas.com/~msh/ | ---In a marketplace (like the one of ideas), not everything has equal value!--- Did you ever notice that everybody in favor of abortion has already been born?!