You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!

Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.

If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.

Having a problem logging in? Please visit this page to clear all LQ-related cookies.

Introduction to Linux - A Hands on Guide

This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.

sda has 2 primary partitions, sda1 300MB /boot ext4, sda2 rest of drive as the first VG in LV with full encryption (LUKS). The VG is subdivided with 9 LVs including the first of 2 swap files, swap01 which is additionally encrypted.
sdb has 1 primary partition setup as a 2nd VG and LUKS, using the full 500GB I had created 3 LVs, again one is swap02 and also additionally encrypted.
sdc has 1 primary partition setup as a 3rd VG and LUKS and 1 LV using the full 500GB of the drive.

I had decided that I wanted to move VG3 to a new 1TB. I removed /dev/sdc from LVM (vgremove, lvremove, and pvremove) leaving it as just a LUKS volume. My intent is to reuse it by expanding VG2 to use both sdb and sdc. The 1TB (WD1001FALS) is sdd and the 500GB that was sdd now is sde on a different host adapter. For some reason, all of a sudden sdb and sdc seem to have flip-flopped. What I have now is:

I have tried sapping the cables around, but only the BIOS sees the change, F12 still puts the 630AS drive as sdb and the 410AS drive as sdc. What gives? I don't want to attempt the expanding of the LUKS/LVM VG2 from what was sdb to include sdc if it's backwards.

The problem is with the drive that I removed from LVM. However I just did a swap again where the 2nd drive is switched with the 3rd drive and this time on the bootup the drives show up they way I need them to. So I have no idea what is happening. Also in LVM dm-0 is gone dm-1 is /dev/sdd1, dm-2 is /dev/sda2, and dm-3 is /dev/sdb1.