[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lmi-commits] [lmi] master fb137fb 1/2: Add instructions for migrating f
From: |
Greg Chicares |
Subject: |
[lmi-commits] [lmi] master fb137fb 1/2: Add instructions for migrating from ext4 to xfs |
Date: |
Mon, 18 May 2020 17:59:16 -0400 (EDT) |
branch: master
commit fb137fb8ac00a95f50fea9a60dc0d585fccd6684
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>
Add instructions for migrating from ext4 to xfs
A particular corporate redhat server mandates xfs only, except
presumably for its boot partition.
---
install_redhat.sh | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/install_redhat.sh b/install_redhat.sh
index abd6d7c..e7acf93 100755
--- a/install_redhat.sh
+++ b/install_redhat.sh
@@ -71,6 +71,16 @@ umount /srv/chroot
# echo "LABEL=lmi /srv/chroot ext4 defaults 0 0" >> /etc/fstab
# partprobe
# mount -a
+# To change from ext4 to xfs, unmount and...
+# mkfs.xfs -f -L lmi /dev/sdb1
+# after which
+# blkid /dev/sdb1
+# should show
+# /dev/sdb2: LABEL="lmi" ... TYPE="xfs"
+# Then do:
+# echo "LABEL=lmi /srv/chroot xfs defaults 0 0" >> /etc/fstab
+# removing any former /srv/chroot line.
+#
# Here, explicitly remount /srv/chroot because it was umounted above:
mount LABEL=lmi /srv/chroot
findmnt /srv/chroot