From f290d597aa7607e711432db61e747d5167941b38 Mon Sep 17 00:00:00 2001 From: Andreas Dilger Date: Fri, 15 Nov 2024 16:18:44 -0700 Subject: [PATCH] LUDOC-11 admin: copy more files to new MGT When copying the MGS config files to a new MGT, there are more files to be copied today than there were in the past. Reformat the sections so that there is only one block for those commands instead of one per line. Signed-off-by: Andreas Dilger Change-Id: I933db03a30785659efedc82a9206428cf81af631 Reviewed-on: https://review.whamcloud.com/c/doc/manual/+/57048 Tested-by: jenkins Reviewed-by: Ellis Wilson --- LustreMaintenance.xml | 45 +++++++++++++++++++++++++++++---------------- 1 file changed, 29 insertions(+), 16 deletions(-) diff --git a/LustreMaintenance.xml b/LustreMaintenance.xml index 34a95a1..f6bce01 100644 --- a/LustreMaintenance.xml +++ b/LustreMaintenance.xml @@ -862,34 +862,47 @@ Changing the Address of a Failover Node Stop the MDS. Unmount the MDT - umount -f /dev/mdt_device - - - Create the MGS. - mds# mkfs.lustre --mgs --device-size=size /dev/mgs_device - - - Copy the configuration data from MDT disk to the new MGS disk. - mds# mount -t ldiskfs -o ro /dev/mdt_device /mdt_mount_point - mds# mount -t ldiskfs -o rw /dev/mgs_device /mgs_mount_point - mds# cp -r /mdt_mount_point/CONFIGS/filesystem_name-* /mgs_mount_point/CONFIGS/. - mds# umount /mgs_mount_point - mds# umount /mdt_mount_point + +mds# umount -f /dev/mdt_device + + + + Create the MGT filesystem. + +mds# mkfs.lustre --mgs /dev/mgt_device + + + + Copy the configuration data from MDT disk to the new MGT disk. + +mds# mount -t ldiskfs -o ro /dev/mdt_device /mdt_mount_point +mds# mount -t ldiskfs -o rw /dev/mgt_device /mgt_mount_point +mds# cp -av /mdt_mount_point/CONFIGS/filesystem_name-* /mgt_mount_point/CONFIGS/ +mds# cp -av /mdt_mount_point/CONFIGS/{params,nodemap,sptlrpc}* /mgt_mount_point/CONFIGS/ +mds# umount /mgt_mount_point +mds# umount /mdt_mount_point + See for alternative method. Start the MGS. - mgs# mount -t lustre /dev/mgs_device /mgs_mount_point + +mgs# mount -t lustre /dev/mgt_device /mgt_mount_point + Check to make sure it knows about all your file system mgs:/root# lctl get_param mgs.MGS.filesystems Remove the MGS option from the MDT, and set the new MGS nid. - mds# tunefs.lustre --nomgs --mgsnode=new_mgs_nid /dev/mdt-device + +mds# tunefs.lustre --nomgs --mgsnode=new_mgs_nid /dev/mdt-device + Start the MDT. - mds# mount -t lustre /dev/mdt_device /mdt_mount_point + +mds# mount -t lustre /dev/mdt_device /mdt_mount_point + Check to make sure the MGS configuration looks right: mgs# lctl get_param mgs.MGS.live.filesystem_name -- 1.8.3.1