azurehpc/scripts/lfsmaster.sh

23 строки
737 B
Bash
Исходник Обычный вид История

2019-07-20 17:15:29 +03:00
#!/bin/bash
# arg: $1 = device (e.g. L=/dev/sdb Lv2=/dev/nvme0n1)
device=$1
# this will only install MDS on first node in a scaleset
if [ "$PSSH_NODENUM" = "0" ]; then
2019-07-20 17:15:29 +03:00
2020-07-10 14:10:50 +03:00
mkfs.lustre --fsname=LustreFS --mgs --mdt --mountfsoptions="user_xattr,errors=remount-ro" --backfstype=ldiskfs --reformat $device --index 0 || exit 1
2019-11-20 13:45:07 +03:00
mkdir /mnt/mgsmds
echo "$device /mnt/mgsmds lustre noatime,nodiratime,nobarrier 0 2" >> /etc/fstab
mount -a
2019-07-20 17:15:29 +03:00
# set up hsm
lctl set_param -P mdt.*-MDT0000.hsm_control=enabled
lctl set_param -P mdt.*-MDT0000.hsm.default_archive_id=1
lctl set_param mdt.*-MDT0000.hsm.max_requests=128
# allow any user and group ids to write
lctl set_param mdt.*-MDT0000.identity_upcall=NONE
fi