system-administration

Configure LDAP Users with NFS Home Directories and autofs

Configure OpenLDAP users with NFS home directories using SSSD and autofs on RHEL, Rocky Linux, AlmaLinux, Oracle Linux, and CentOS Stream.

Deepak Prasad14 min read
storage

Migrate an Existing LVM Root Filesystem to LUKS Online

Migrate an already-installed Ubuntu LVM root volume group onto a new LUKS2 physical volume with pvmove, then configure crypttab with initramfs, regenerate the initramfs, and update GRUB for boot-time unlock.

Deepak Prasad16 min read
storage

Enroll TPM2, FIDO2, and Recovery Keys on LUKS2 with systemd-cryptenroll

Use systemd-cryptenroll on LUKS2 volumes to add TPM2, FIDO2, PKCS#11, and recovery-key unlock methods, store token metadata in the LUKS2 JSON area, and wire boot unlock through crypttab.

Deepak Prasad10 min read
storage

How to Resize a LUKS Partition (Extend or Shrink) in Linux

Extend or shrink a LUKS2 ext4 volume on Linux: grow the partition first, run cryptsetup resize on the mapper, then resize2fs; for shrink, reverse the order with offline resize2fs and --size in 512-byte sectors.

Deepak Prasad11 min read
storage

How to Open and Unlock a LUKS Disk on Another Linux Machine

Unlock and mount a LUKS USB or moved disk on another Linux host: cryptsetup open by device, UUID=, or /dev/disk/by-uuid, ext4 or LVM inside LUKS, read-only rescue mount, and close the mapper.

Deepak Prasad11 min read
storage

Network-Bound Disk Encryption with Clevis and Tang on Linux

Configure LUKS NBDE with Clevis and Tang on RHEL/CentOS: two-VM lab with Tang server, LUKS root client, dracut rebuild, and video—boot without typing a passphrase when Tang is reachable.

Deepak Prasad13 min read
storage

How to Auto Mount and Unlock LUKS Encrypted Partitions at Boot

Configure crypttab and fstab to unlock and mount a secondary LUKS data partition at boot on Ubuntu or Debian.

Deepak Prasad15 min read
storage

How to Back Up and Restore a LUKS Header in Linux

Back up and restore a LUKS2 header with cryptsetup luksHeaderBackup and luksHeaderRestore, use a detached header file, and understand when a header copy cannot recover a forgotten passphrase.

Deepak Prasad10 min read
storage

Change LUKS Passphrase, Volume Key, and Cipher on Linux

Rotate LUKS passphrases and key slots, change cipher or volume key with cryptsetup reencrypt on LUKS2, and back up the header before destructive operations.

Deepak Prasad12 min read
storage

How to Encrypt a Disk Partition with LUKS in Linux

Encrypt a new Linux disk partition with LUKS2 using cryptsetup: partition the disk, run luksFormat, open the mapper, create ext4 on /dev/mapper, and mount the volume.

Deepak Prasad10 min read
storage

How to List Disks and Check Disk Type in Linux

Learn how to list disks in Linux and check disk type, HDD or SSD status, transport interface, model, serial number, partition table, and filesystem details with tested lsblk, sysfs, udevadm, lspci, lshw, fdisk, parted, …

Deepak Prasad11 min read
storage

How to clone or backup Linux partition using fsarchiver

Steps to backup partition in LInux, clone your partition or hard drive, logical volume using fsarchiver Exclude files and directories encrypt backup

Deepak Prasad9 min read
storage

2 easy methods to extend/shrink resize primary partition in Linux

Resize primary partition shrink and extend non lvm root, boot and other primary partition, change size of partition using unallocated free space fdisk & parted

Deepak Prasad17 min read
storage

How to configure iSCSI target on Ubuntu

In this tutorial I will share the steps to create iSCSI target using Ubuntu 22.04 VM installed on Oracle VirtualBox.

Deepak Prasad8 min read
storage

Advanced Tips to Improve Disk IO Performance in Linux

Explore comprehensive strategies to improve disk IO performance, from optimizing kernel parameters to leveraging virtualization tools. Unlock the full potential of your system and achieve faster, more efficient disk …

Deepak Prasad17 min read
storage

Create & Manage Striped Logical Volume Linux [Step-by-Step]

How to create striped logical volume, How to convert striped to linear logical volume and vice versa, How to extend the size of existing striped logical volume

Deepak Prasad13 min read
storage

Step-by-Step Tutorial: Configure Hybrid Software RAID 10 in Linux

Steps to configure hybrid software raid 10 (1+0) in Linux with examples. Hybrid RAID 1+0 results from the combination of RAID-0 and RAID-1 Array in Linux.

Deepak Prasad8 min read
storage

Create Mirrored Logical Volume in Linux [Step-by-Step]

LVM supports mirrored volumes. A mirror maintains identical copies of data on different devices. LVM ensures that data written to an underlying physical volume is mirrored onto a separate physical volume.

Deepak Prasad10 min read
storage

Manage Logical Volume in Linux - One STOP Solution

The Logical Volume Manager is a collection of one or more physical devices called Volume Group (VG), each physical device on the VG called a Physical Volume (PV)

Deepak Prasad18 min read
storage

Step-by-Step Tutorial: Configure software Linear RAID 0 in Linux

Steps to configure software raid with linear raid which is similar with RAID 0 but in Linear RAID the data is stored in linear format instead of stripping

Deepak Prasad11 min read
storage

Step-by-Step Tutorial: Configure Software RAID 0 in Linux

Steps to configure software raid 0 with examples in linux. With RAID 0 there is no data redundancy as the data is stored in strips but this has better speed.

Deepak Prasad4 min read
storage

Step-by-Step Tutorial: Configure Software RAID 1 in Linux

Steps to configure software raid 1 mirroring in linux with and without spare disk with examples in RHEL, CentOS and other Linux distros using mdadm (see [mdadm command](/mdadm-command-in-linux/)).

Deepak Prasad9 min read
storage

How to mount filesystem in certain order one after the other in CentOS/RHEL

Mount filesystem in certain order during reboot one after the other using systemd unit file or /etc/fstab using RequiresMountsFor x-systemd.requires- mounts-for

Deepak Prasad9 min read
storage

Linux lvm snapshot backup and restore tutorial RHEL/CentOS 7/8

Step by step guide linux lvm snapshot backup and restore with examples RHEL/CentOS 7/8. Create, merge, extend, remove LVM snapshot. backup root file system

Deepak Prasad18 min read
storage

Beginners guide to how LVM works in Linux (architecture)

LVM stands for Logical Volume Manager which is made up of Physical Volume, Volume Group ad Logical Volume. It can be easily extended or even reduced at times

Deepak Prasad12 min read
storage

Step-by-Step Tutorial: Configure Software RAID 4 in Linux

Step by Step Guide to configure software raid 4 in Linux using examples. RAID-4 stripes block-sized chunks of data across each drive in the array marked as ..

Deepak Prasad5 min read
storage

How to create filesystem on a Linux partition or logical volume

Steps to create filesystem on a linux partition of on a logical volume using mkfs. Create mount point and mount the filesystem to access and store the data.

Deepak Prasad5 min read
storage

5 easy steps to resize root LVM partition in RHEL/CentOS 7/8 Linux

Steps to resize root LVM partition. Increase or decrease root logical volume partition size with examples in RHEL/CentOS 7/8 Linux. Extend or shrink root LVM

Deepak Prasad8 min read
storage

How to configure iSCSI target and initiator on CentOS/RHEL 7/8 Linux

How to configure iscsi target and initiator multipath SAN on CentOS / RHEL 7 Linux. Configure iscsi target with targetcli and initiator with iscsiadm

Deepak Prasad8 min read
storage

Tutorial: What is GlusterFS shared storage and types of volumes

What is GlusterFS Tutorial Replication Types of Volumes. Distributed Volume Replicated Volume. RHEL CentOS 8 glusterfs shared storage. gluster file system linux

Deepak Prasad6 min read