SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I have 3x2TB disks and I just bought fourth one. What would be steps to include new drive to existing array?
My setup is as follows (I think...):
1. Formatted all three drives to fd with fdisk
2. Created RAID5 array from these drives
3. Created LVM volume group from raid device
4. Created EXT4 filesystem for LVM volume group
5. Encrypted it with LUKS
This was some time ago and I did it with Fedora installer so I'm not 100% sure of those steps. Please correct me if I'm wrong.
Your outlined steps contradicts your question. The steps are for new array, lvm and file system. Adding a new device would require different steps. See this link for setting up and modify RAID volumes.
Yes I know that those steps are for creating a new array. I was just trying to tell you how I have made the existing array.
Thanks for the link. I have to read it as soon as possible. I was wondering if LUKS encryption needs additional steps. This may sound stupid but I have really very little idea how it works.
The link is a RAID wiki and should answer all your questions. What you should keep in mind that you will need to increase the size starting will the lowest layer (typically, this is the physical devices).
If your setup is RAID5->LVM->LUKS->EXT4 you would:
1. Grow the RAID by increasing the number of devices
2. Resize the PV to the new RAID size and subsequently the LV(s).
3. Resize LUKS to the new LV size
4. Resize Ext4 to the new LV/LUKS size
If you have the order of LUKS and LVM switched, then adjust the steps accordingly.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.