<div dir="ltr">HA!<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, May 14, 2013 at 12:40 AM, Scott Castaline <span dir="ltr"><<a href="mailto:skotchman@gmail.com" target="_blank">skotchman@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">-----BEGIN PGP SIGNED MESSAGE-----<br>
Hash: SHA1<br>
<br>
</div>On non boot drives I don't partition them with either fdisk, gdisk, or<br>
parted. I just luksFormat /dev/sdb no sdb1, 2 or 3 (just like Scotty<br>
in TNG episode NCC1701 no A, B, c, or D). I only create LVs within the<br>
VG. Previous Fedora installers would do this, Fedora 18 didn't. I had<br>
physical partitions before encryption was done, so the installer works<br>
differently in Fedora 18 in more ways than just on the interface.<br>
<br>
Just before reading your response I had just rebooted with the entry<br>
for the problem LV uncommented and it seems to work fine now. If you<br>
pour enough Tommy Knockers down my throat this Thursday I might tell<br>
you what it was. I'm too embarrassed in a sober state to say it now.<br>
<div class="im"><br>
<br>
On 05/13/2013 11:50 PM, Jim Kinney wrote:<br>
> That seems overly complicated to me.<br>
><br>
> Just write random noise to all the drives then do a basic Fedora<br>
> install with a manual partition. Be sure to check the box "Encrypt<br>
> filesystem"<br>
><br>
> Now used sda1 for unencrypted boot. Use all the remaining space on<br>
> the drives to make a physical volume with. Then join all 3 to make<br>
> a single logical volume. That get encrypted. Split that volume<br>
> into swap, /, and /home and your done.<br>
><br>
> Or create a 3-way mirror of /boot across all 3 drives (assuming<br>
> all 3 drives are the same size this makes sense) then bond the<br>
> three into a PV, then encrypted VG and finally swap, /, and /home<br>
> partitions.<br>
><br>
> Check fedora bugzilla for anaconda bugs related to 3 drives. There<br>
> may be a problem.<br>
><br>
> Anaconda on RHEL6 has an issue with ext4 in that it has a total<br>
> filesize limit around 40TB. sucks when your making a 52TB<br>
> filesystem :-(. fortunately, XFS does NOT have that limitation so<br>
> the big partition is XFS.<br>
><br>
><br>
> On Mon, May 13, 2013 at 11:01 PM, Scott Castaline<br>
</div><div><div class="h5">> <<a href="mailto:skotchman@gmail.com">skotchman@gmail.com</a> <mailto:<a href="mailto:skotchman@gmail.com">skotchman@gmail.com</a>>> wrote:<br>
><br>
> So I recently lost a drive due to hits from my wife slamming the<br>
> door to the garage. How does that happen? Let's just say that my<br>
> computer is in the bonus room and was on a spot on the floor that<br>
> turned out to be right above the door that for some reason my wife<br>
> felt she had to slam in order for it to close. On windy days if<br>
> the back windows are open and the garage door is open this door<br>
> has slammed shut so hard that my monitor has jumped. Actually a<br>
> total of 3 drives had to be replaced. When I go the new drive I<br>
> decided to run badblocks on the rest of the drives to verify that<br>
> they were okay.<br>
><br>
> Now on to the on topic part. I like to encrypt the drives at the<br>
> device level and all drives are encrypted. So after running<br>
> badblocks on the new and old working drives I did the writing of<br>
> random bits to the drives (dd if=/dev/urandom of=/dev/sd?) My boot<br>
> drive was setup as the boot drive so using gdisk the first 2<br>
> partitions are clear (GUID 2MB Part. and 498MB /boot). The balance<br>
> of the drive is encrypted. On the LVM part I currently have 1<br>
> physical volume (PV) for each Volume Group (VG) and each VG has at<br>
> least 2 Logical Volumes (LV).<br>
><br>
> The steps I used to go from after doing the random pattern writen<br>
> to device are as follows:<br>
><br>
> 1. cryptsetup luksFormat /dev/sd? (sda3 in the case of the boot<br>
> drive otherwise it was with no partition specified.)<br>
><br>
> 2. cryptsetup luksOpen /dev/sd? VG_name (being somewhat uncreative<br>
> I used the same for the LUKS volume as the VG name, I couldn't find<br>
> anything that said that I couldn't or shouldn't).<br>
><br>
> 3. pvcreate /dev/mapper/LUKS-name (which as noted above is VG_0?<br>
><br>
> 4. vgcreate VG_0? /dev/mapper/VG_0?<br>
><br>
> 5. lvcreate -C y -L ?G /dev/mapper/VG_0? (I break up total swap<br>
> and spread it over all drives so there is a swap LV on each VG)<br>
><br>
> 6. lvcreate -L ???G (or -l +100%FREE when I was using the rest of<br>
> the VG for that LV) VG_0? -n (the LV name is essetially what it is<br>
> being used for ie: /root = root)<br>
><br>
> 7. Formatting: mkswap /dev/mapper/VG_0?-swap0? mkfs.ext4<br>
> /dev/mapper/VG_0?-LVname -L same as LVname<br>
><br>
> 8. mounting: swapon /dev/mapper/VG_0?-swap0? mount<br>
> /dev/mapper/VG_0?-LVname /path/of/mount<br>
><br>
> 9. Added the UUID (from blkid /dev/sd?) to crypttab mirroring the<br>
> previous entries for entry format for each UUID.<br>
><br>
> 10.Added mounting info for each LV in the fstab using defaults for<br>
> eack LV type (data or swap)<br>
><br>
> The first drive I could not get past the disk partitioning part of<br>
> anaconda on the Fedora 18 install, so I finally gave up and redid<br>
> it with the installer. I then had 2 more drives ready so I did the<br>
> above steps to those drives, but again I could not boot, so I<br>
> reinstalled again. This time I only had to format the system LVs<br>
> and not the data LVs like home etc. And all was happier than pigs<br>
> eatin' $**t. Things remained happy until the last 2 drives were<br>
> ready to be added.<br>
><br>
> I went through the same procedure as before, but this time I<br>
> noticed that it was actually hanging on the reboot after having<br>
> added them back in and restored from my backup what belonged on<br>
> each LV. It would hang after listing mounting all LVs except for<br>
> one. I then rebooted into safe mode from the DVD and commented out<br>
> the one LV that hadn't gotten mounted. All would boot fine and<br>
> then I was able to manually mount the one LV. I have not tried to<br>
> uncomment it out yet and reboot to see if it still hangs, but<br>
> thinking back it seemed that it was hanging before in the same<br>
> area on the last LV to be mounted.<br>
><br>
> Previously I had noticed that it was listing that it was "Starting<br>
> Monitoring of LVM2 mirroring, snapshots etc" (I didn't get the<br>
> rest). I also didn't do anything to it the previous time when I<br>
> had also rebooted into safe mode from DVD, so I'm not sure how it<br>
> booted that time. I did notice that the last LV from the last VG<br>
> did not get mounted. That VG had 3 LVs and in both cases the swap<br>
> LV did get added to total swap and in the case of the first time<br>
> the first LV on that VG did get mounted.<br>
><br>
> So, does anyone have any ideas as to what I missed on this setup.<br>
> Once I'm up and running and all mounted, everybody seems to be<br>
> happy and having a party.<br>
><br>
> So for the long dissertation, I hope I didn't put anyone to sleep.<br>
> If I did maybe Jim K. might have some extra java (the drinkable<br>
> type).<br>
><br>
</div></div>> Scott C. _______________________________________________ Ale<br>
> mailing list <a href="mailto:Ale@ale.org">Ale@ale.org</a> <mailto:<a href="mailto:Ale@ale.org">Ale@ale.org</a>><br>
<div class="im">> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a> See JOBS, ANNOUNCE and<br>
> SCHOOLS lists at <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
><br>
><br>
><br>
</div>> -- -- James P. Kinney III //// ////Every time you stop a school,<br>
<div class="im">> you will have to build a jail. What you gain at one end you lose<br>
> at the other. It's like feeding a dog on his own tail. It won't<br>
</div>> fatten the dog. - Speech 11/23/1900 Mark Twain ////<br>
> <a href="http://electjimkinney.org" target="_blank">http://electjimkinney.org</a> <a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
> ////<br>
<div class="im">><br>
><br>
> _______________________________________________ Ale mailing list<br>
> <a href="mailto:Ale@ale.org">Ale@ale.org</a> <a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a> See JOBS,<br>
> ANNOUNCE and SCHOOLS lists at <a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
><br>
<br>
</div><div class="im">-----BEGIN PGP SIGNATURE-----<br>
Version: GnuPG v1.4.13 (GNU/Linux)<br>
Comment: Using GnuPG with Thunderbird - <a href="http://www.enigmail.net/" target="_blank">http://www.enigmail.net/</a><br>
<br>
</div>iQIcBAEBAgAGBQJRkcBNAAoJEIefqZ0kni1drIYP/3Fao82LbbRuMO9OIADFGcJs<br>
+JfwdBeWMYptR4c+gOwX5UMTw0kNHn0uxizNeT7oQniPsI4okpcTGjlQbA/rJ6Gk<br>
bz0UgPpaBneNProiuI1lLLTw7JA6ggpS2d5gKca1yXezHMWNISz4K44SFjr7Mmm4<br>
jGrjMIFQ+3MxUu5i3t14v3oZG9dpkiGvV4JV0j7YWDaezdLMHXyquT4KyvXtYaDF<br>
IedqNQjgoKDRp88e7yT5xvn/oL3ii4jyouP2DyJVJNm81g+lI7NmH3V/Obbali7Y<br>
H7rB6a8JZ7BmxqSY+zf9SzWEGmRpAn3X2UCuS1RYW8S4atCm0BPvKIAmhayA5XXB<br>
+fI79ESSe/sbTRZpsZprHqsgpAptV3l0UjD+R1qB+UNWneHbh+ydanK/3WLb8GKt<br>
nhaeB5NpyYJJUzzmmDfjNYVC1MVTeBYrq0w4bI/bpfECPXHYmyEi/nTtq3MkHJ6S<br>
sbe5UGB1Glh3h2xW08DiLDzL+VkHVOgn1lZbwhwFurFOqcyo0oSK4tTNw+1ScBkt<br>
4u2eI3EMVdX5e48yYLpZM7JbI5Y+UdykjQF0e8w7Zl8SLmRCUFwvTZIAuFy2rO5t<br>
DRkZb3ZTT3zUJhSGXqpnazeyLG5LzgINQZ/W7/b+5w5TnW23mI1Z5Vc2lsge5IIu<br>
eBcMJZz2U+TlsZnqp5CO<br>
=fEyb<br>
<div class="HOEnZb"><div class="h5">-----END PGP SIGNATURE-----<br>
_______________________________________________<br>
Ale mailing list<br>
<a href="mailto:Ale@ale.org">Ale@ale.org</a><br>
<a href="http://mail.ale.org/mailman/listinfo/ale" target="_blank">http://mail.ale.org/mailman/listinfo/ale</a><br>
See JOBS, ANNOUNCE and SCHOOLS lists at<br>
<a href="http://mail.ale.org/mailman/listinfo" target="_blank">http://mail.ale.org/mailman/listinfo</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>-- <br>James P. Kinney III<br><i><i><i><i><br></i></i></i></i>Every time you stop a school, you will have to build a jail. What you
gain at one end you lose at the other. It's like feeding a dog on his
own tail. It won't fatten the dog.<br>
- Speech 11/23/1900 Mark Twain<br><i><i><i><i><br><a href="http://electjimkinney.org" target="_blank">http://electjimkinney.org</a><br><a href="http://heretothereideas.blogspot.com/" target="_blank">http://heretothereideas.blogspot.com/</a><br>
</i></i></i></i>
</div>