|
@@ -53,8 +53,10 @@ index=junk sourcetype=_json "headers.Subject"="*rotatelogs.sh"
|
|
|
|
|
|
Error: 'rhel-7-server-rpms' does not match a valid repository ID. Use "subscription-manager repos --list" to see valid repositories.
|
|
|
|
|
|
+```
|
|
|
$subscription-manager repos --list
|
|
|
This system has no repositories available through subscriptions.
|
|
|
+```
|
|
|
|
|
|
## Expand AWS EBS (Not LVM)
|
|
|
|
|
@@ -74,11 +76,11 @@ xfs_growfs -d /opt
|
|
|
|
|
|
## Expand AWS EBS and LVM or XFS
|
|
|
|
|
|
-note, this is for legacy installs. New installs have separate EBS for each partition.
|
|
|
+note, this is for legacy installs or LCPs. New installs have separate EBS for each partition.
|
|
|
|
|
|
1. Expand drive in AWS (easy)
|
|
|
2. Expand partition
|
|
|
-What file system type is it? What partition number is it? For growpart command use the correct partition number. To find the partition number look at the output from the `lsblk` command. are there multiple partitions for the disk? The partition numbers start at 1. For example, this would be the second partition.
|
|
|
+What file system type is it? What partition number is it? For growpart command use the correct partition number. To find the partition number look at the output from the `lsblk` command. Are there multiple partitions for the disk? The partition numbers start at 1. For example, this would be the second partition.
|
|
|
```
|
|
|
nvme0n1 259:7 0 20G 0 disk
|
|
|
├─nvme0n1p1 259:8 0 1M 0 part
|
|
@@ -103,7 +105,7 @@ growpart /dev/xvda <partition number>
|
|
|
Because our servers are all copies of the same server the UUID of the LVM is the same across all the servers. To mount a EBS volume of a snapshot to the same server that the snapshot came from try these steps.
|
|
|
|
|
|
1. Create the EBS volume from the snapshot and attach to the EC2 instance.
|
|
|
-2. try to mount the drive. `mount /dev/xvdh3 /mnt/backup` probably will get error about LVM file type `mount: unknown filesystem type 'LVM2_member'`
|
|
|
+2. try to mount the drive. `mount /dev/xvdh3 /mnt/backup` probably will get error about LVM file type `mount: unknown filesystem type 'LVM2_member'` OR `mount: wrong fs type, bad option, bad superblock on /dev/nvme9n1`. If the drive doesn't use LVM, skip to step 10 to fix issues with XFS.
|
|
|
|
|
|
3. Try pvscan to see if duplicate UUID
|
|
|
```
|
|
@@ -146,9 +148,9 @@ mount: wrong fs type, bad option, bad superblock on /dev/mapper/recover-opt,
|
|
|
[288992.103137] XFS (dm-8): Filesystem has duplicate UUID c0027f10-6007-42d5-8680-7bbfb5f2e6dc - can't mount
|
|
|
```
|
|
|
|
|
|
-11. Repair the volume to prep for UUID change. `xfs_repair -L /dev/mapper/recover-opt`
|
|
|
+11. Repair the volume to prep for UUID change. `xfs_repair -L /dev/mapper/recover-opt` OR `xfs_repair -L /dev/nvme9n1`
|
|
|
|
|
|
-12. Change UUID `xfs_admin -U generate /dev/mapper/recover-opt`
|
|
|
+12. Change UUID `xfs_admin -U generate /dev/mapper/recover-opt` OR `xfs_admin -U generate /dev/nvme9n1`
|
|
|
|
|
|
13. Mount filesystem `mount /dev/mapper/recover-opt /mnt/backup/`
|
|
|
|