Skip to content

Instantly share code, notes, and snippets.

View ashiwanikumar's full-sized avatar
🎯
Focusing

Ashiwani Kumar ashiwanikumar

🎯
Focusing
View GitHub Profile
@ashiwanikumar
ashiwanikumar / Complete Guide on Extending LVM with a New Disk and Reconfiguring OS Disk.md
Created July 12, 2024 18:37
Complete Guide on Extending LVM with a New Disk and Reconfiguring OS Disk

Complete Guide on Extending LVM with a New Disk and Reconfiguring OS Disk


Step 1: Scan for New Disks

To detect newly added disks without rebooting, use the following command:

echo "- - -" > /sys/class/scsi_host/host32/scan

Replace host32 with the appropriate host number if different on your system.

@ashiwanikumar
ashiwanikumar / server-update-report.md
Last active October 5, 2023 09:22
Scheduled Server Updates & Get Report from Email

Updating a File:

1. Create a new file named "autoupdate" under /etc/cron.daily/:

Use the vim text editor to create the file:

sudo vim /etc/cron.daily/autoupdate
@ashiwanikumar
ashiwanikumar / ec2-express.md
Created May 13, 2023 11:04 — forked from dPacc/ec2-express.md
EC2 - ExpressJS Server Setup with Custom Domain