PowerScale: Quando viene creato un alias NFS per una directory padre, le sottodirectory esportate vengono visualizzate in showmount -e dal lato client
Summary: Quando viene creato un alias NFS per una directory padre, le sottodirectory esportate vengono visualizzate in showmount -e dal lato client.
Symptoms
Far esportare la directory principale e la sottodirectory:
# isi nfs exports list ID Zone Paths Description -------------------------------------- 1 System /ifs/nfs 2 System /ifs/nfs/test -------------------------------------- Total: 2
Creare un alias per l'elemento padre:
# isi nfs aliases list Zone Name Path -------------------------- System /testAlias /ifs/nfs -------------------------- Total: 1
Showmount -e Dal client mostra che sono stati restituiti percorsi imprevisti:
[root@centos ~]# showmount -e x.x.x.x Export list for x.x.x.x: /testAlias/test x.x.x.x <<<<< subdirectory test is returned as part of the alias /testAlias x.x.x.x /ifs/nfs/test x.x.x.x /ifs/nfs x.x.x.x
Cause
Resolution
Per evitare che gli alias vengano visualizzati in showmount -e, disabilitare l'impostazione su PowerScale in modo che vengano restituiti solo percorsi completi. I client sarebbero comunque in grado di montare l'alias, ma ciò impedirebbe la restituzione di percorsi doppi che potrebbero causare confusione in alcuni ambienti.
Tenere presente che per rendere effettiva questa modifica è necessario riavviare NFS nel cluster.
Per disabilitare la restituzione dei percorsi con alias in showmount:
# isi_gconfig registry.Services.lwio.Parameters.Drivers.nfs.MountdAliasesInShowmountE=0
Riavviare NFS nel cluster (può essere eseguito nodo per nodo invece di essere eseguito con isi_for_array Se si preferisce:
# isi_for_array -s '/usr/likewise/bin/lwsm restart onefs_nfs'
Ora showmount -e Dal client mostra solo i percorsi completi e non più gli alias:
[root@centos ~]# showmount -e x.x.x.x Export list for x.x.x.x: /ifs/nfs/test x.x.x.x /ifs/nfs x.x.x.x