mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-18 10:21:01 +03:00
b9373170e3
Turning the multihost property on requires that a hostid be set to allow ZFS to determine when a foreign system is attemping to import a pool. The error message instructing the user to set a hostid refers to genhostid(1). Genhostid(1) is not available on SUSE Linux. This commit adds a script modeled after genhostid(1) for those users. Zgenhostid checks for an /etc/hostid file; if it does not exist, it creates one and stores a value. If the user has provided a hostid as an argument, that value is used. Otherwise, a random hostid is generated and stored. This differs from the CENTOS 6/7 versions of genhostid, which overwrite the /etc/hostid file even though their manpages state otherwise. A man page for zgenhostid is added. The one for genhostid is in (1), but I put zgenhostid in (8) because I believe it's more appropriate. The mmp tests are modified to use zgenhostid to set the hostid instead of using the spl_hostid module parameter. zgenhostid will not replace an existing /etc/hostid file, so new mmp_clear_hostid calls are required. Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov> Reviewed-by: Andreas Dilger <andreas.dilger@intel.com> Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Olaf Faaland <faaland1@llnl.gov> Closes #6358 Closes #6379
166 lines
2.0 KiB
INI
166 lines
2.0 KiB
INI
#
|
|
# These variables are used by zfs-tests.sh to constrain which utilities
|
|
# may be used by the suite. The suite will create a directory which is
|
|
# the only element of $PATH and create symlinks from that dir to the
|
|
# binaries listed below.
|
|
#
|
|
# Please keep the contents of each variable sorted for ease of reading
|
|
# and maintenance.
|
|
#
|
|
export SYSTEM_FILES='arp
|
|
awk
|
|
attr
|
|
basename
|
|
bc
|
|
blockdev
|
|
bunzip2
|
|
bzcat
|
|
cat
|
|
chattr
|
|
chgrp
|
|
chmod
|
|
chown
|
|
cksum
|
|
cmp
|
|
cp
|
|
cpio
|
|
cut
|
|
date
|
|
dd
|
|
df
|
|
diff
|
|
dirname
|
|
dmesg
|
|
du
|
|
echo
|
|
egrep
|
|
exportfs
|
|
expr
|
|
false
|
|
fdisk
|
|
file
|
|
find
|
|
fio
|
|
getconf
|
|
getent
|
|
getfacl
|
|
getfattr
|
|
grep
|
|
groupadd
|
|
groupdel
|
|
groupmod
|
|
gunzip
|
|
gzip
|
|
head
|
|
hostid
|
|
hostname
|
|
id
|
|
iostat
|
|
kill
|
|
ksh
|
|
ln
|
|
logname
|
|
losetup
|
|
ls
|
|
lsblk
|
|
lsmod
|
|
lsscsi
|
|
md5sum
|
|
mkdir
|
|
mknod
|
|
mkswap
|
|
mktemp
|
|
modprobe
|
|
mount
|
|
mpstat
|
|
mv
|
|
net
|
|
nproc
|
|
openssl
|
|
parted
|
|
pax
|
|
pgrep
|
|
ping
|
|
pkill
|
|
printf
|
|
ps
|
|
pwd
|
|
python
|
|
quotaon
|
|
readlink
|
|
rm
|
|
rmdir
|
|
sed
|
|
seq
|
|
setenforce
|
|
setfacl
|
|
setfattr
|
|
sh
|
|
sha256sum
|
|
shuf
|
|
sleep
|
|
sort
|
|
stat
|
|
strings
|
|
su
|
|
sudo
|
|
sum
|
|
swapoff
|
|
swapon
|
|
sync
|
|
tail
|
|
tar
|
|
timeout
|
|
touch
|
|
tr
|
|
true
|
|
truncate
|
|
udevadm
|
|
umask
|
|
umount
|
|
uname
|
|
useradd
|
|
userdel
|
|
usermod
|
|
uuidgen
|
|
vmstat
|
|
wait
|
|
wc
|
|
which
|
|
xargs'
|
|
|
|
export ZFS_FILES='zdb
|
|
zfs
|
|
zhack
|
|
zinject
|
|
zpool
|
|
ztest
|
|
zpios
|
|
raidz_test
|
|
arc_summary.py
|
|
arcstat.py
|
|
dbufstat.py
|
|
zed
|
|
zgenhostid
|
|
zstreamdump'
|
|
|
|
export ZFSTEST_FILES='chg_usr_exec
|
|
devname2devid
|
|
dir_rd_update
|
|
file_check
|
|
file_trunc
|
|
file_write
|
|
largest_file
|
|
mkbusy
|
|
mkfile
|
|
mkfiles
|
|
mktree
|
|
mmap_exec
|
|
mmapwrite
|
|
randfree_file
|
|
readmmap
|
|
rename_dir
|
|
rm_lnkcnt_zero_file
|
|
threadsappend
|
|
xattrtest'
|