<p dir="ltr">Looks like a dmraid setup.  Googling Linux isw found me a rebuild guide. </p>
<div class="gmail_quote">On 06/11/2012 9:05 AM, "Randy Schultz" <<a href="mailto:schulra@earlham.edu">schulra@earlham.edu</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey all,<br>
<br>
I have a system that somebody set up, reportedly during the RHEL install, to have the 2 on-board drives<br>
mirrored.  We lost the second drive.  I know how to do deal with this on a standard setup with 2 PV's, but it<br>
looks like there is only 1 PV and I cannot find any documentation on how to deal with this.<br>
<br>
The system has 2 drives partitioned this way:<br>
     ? fdisk -l<br>
<br>
     Disk /dev/sda: 1000.2 GB, 1000204886016 bytes<br>
     255 heads, 63 sectors/track, 121601 cylinders<br>
     Units = cylinders of 16065 * 512 = 8225280 bytes<br>
<br>
        Device Boot      Start         End      Blocks   Id  System<br>
     /dev/sda1   *           1          13      104391   83  Linux<br>
     /dev/sda2              14      121600   976647577+  8e  Linux LVM<br>
<br>
     Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes<br>
     255 heads, 63 sectors/track, 121601 cylinders<br>
     Units = cylinders of 16065 * 512 = 8225280 bytes<br>
<br>
        Device Boot      Start         End      Blocks   Id  System<br>
     /dev/sdb1   *           1          13      104391   83  Linux<br>
     /dev/sdb2              14      121600   976647577+  8e  Linux LVM<br>
<br>
<br>
The fstab mounts things as:<br>
     ? cat /etc/fstab<br>
     /dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1<br>
     /dev/VolGroup00/LogVol02 /var                    ext3    defaults        1 2<br>
     /dev/VolGroup00/LogVol03 /opt                    ext3    defaults        1 2<br>
     LABEL=/boot             /boot                   ext3    defaults        1 2<br>
     tmpfs                   /dev/shm                tmpfs   defaults        0 0<br>
     devpts                  /dev/pts                devpts  gid=5,mode=620  0 0<br>
     sysfs                   /sys                    sysfs   defaults        0 0<br>
     proc                    /proc                   proc    defaults        0 0<br>
     /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0<br>
<br>
<br>
giving these mountpoints:<br>
     ? df -h<br>
     Filesystem            Size  Used Avail Use% Mounted on<br>
     /dev/mapper/VolGroup00-<u></u>LogVol00<br>
                            24G  9.1G   14G  41% /<br>
     /dev/mapper/VolGroup00-<u></u>LogVol02<br>
                            24G  555M   22G   3% /var<br>
     /dev/mapper/VolGroup00-<u></u>LogVol03<br>
                           770G   45G  686G   7% /opt<br>
     /dev/mapper/isw_ccebcbejfi_<u></u>Volume0p1<br>
                            99M   26M   69M  28% /boot<br>
     tmpfs                  14G     0   14G   0% /dev/shm<br>
<br>
There are no md devices:<br>
     ? cat /proc/mdstat<br>
     Personalities :<br>
     unused devices: <none><br>
<br>
<br>
DMsetup shows:<br>
     ? dmsetup status<br>
     isw_ccebcbejfi_Volume0p2: 0 1953295155 linear<br>
     isw_ccebcbejfi_Volume0p1: 0 208782 linear<br>
     VolGroup00-LogVol03: 0 1666580480 linear<br>
     VolGroup00-LogVol02: 0 51183616 linear<br>
     VolGroup00-LogVol01: 0 184287232 linear<br>
     VolGroup00-LogVol00: 0 51183616 linear<br>
     isw_ccebcbejfi_Volume0: 0 1953519352 mirror 2 8:0 8:16 14905/14905 1 AR 1 core<br>
<br>
<br>
Here's where things get weird.  Pvscan shows only 1 device:<br>
     ? pvscan -v<br>
         Wiping cache of LVM-capable devices<br>
         Wiping internal VG cache<br>
         Walking through all physical volumes<br>
       PV /dev/mapper/isw_ccebcbejfi_<u></u>Volume0p2   VG VolGroup00   lvm2 [931.38 GB / 0    free]<br>
       Total: 1 [931.38 GB] / in use: 1 [931.38 GB] / in no VG: 0 [0   ]<br>
<br>
<br>
So, if I understand this correctly, sda2 and sdb2 were tied together somehow as a mirror, then this was<br>
presented to lvm as the PV.  Cool, but how do I swap out sdb?!<br>
<br>
--<br>
 Randy    (<a href="mailto:schulra@earlham.edu" target="_blank">schulra@earlham.edu</a>)      765.983.1283         <*><br>
<br>
nosce te ipsum<br>
<br>
______________________________<u></u>_________________<br>
linux-lvm mailing list<br>
<a href="mailto:linux-lvm@redhat.com" target="_blank">linux-lvm@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/linux-lvm" target="_blank">https://www.redhat.com/<u></u>mailman/listinfo/linux-lvm</a><br>
read the LVM HOW-TO at <a href="http://tldp.org/HOWTO/LVM-HOWTO/" target="_blank">http://tldp.org/HOWTO/LVM-<u></u>HOWTO/</a><br>
</blockquote></div>