Project

General

Profile

Actions

Bug #59736

open

qa: add one test case for "kclient: ln: failed to create hard link 'file name': Read-only file system"

Added by Xiubo Li 12 months ago. Updated 10 months ago.

Status:
New
Priority:
Normal
Assignee:
Category:
-
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Regression:
No
Severity:
3 - minor
Reviewed:
Affected Versions:
ceph-qa-suite:
Component(FS):
Labels (FS):
Pull request ID:
Crash signature (v1):
Crash signature (v2):

Description

We need to add one test case for https://tracker.ceph.com/issues/59515.

[redhat@redhat-nfs-client ~]$ cat reproduce-nfs-hard-link-fail-fast.sh 

#!/bin/bash

mountpoint -q /mnt/ceph || {
    sudo mount /mnt/ceph || exit 1
}

[[ -d /mnt/ceph/nfs-test-fast ]] && {
    echo -n "cleaning up /mnt/ceph/nfs-test-fast ... " 
    rm -rf /mnt/ceph/nfs-test-fast
    echo "done" 
}

cmd=( mkdir -p /mnt/ceph/nfs-test-fast/A/B/C/{D..E} )
echo "executing '${cmd[@]}'" 
"${cmd[@]}" 

echo "creating files test1 and test2 in /mnt/ceph/nfs-test-fast/A/B/C/D" 
echo "$(date)" > "/mnt/ceph/nfs-test-fast/A/B/C/D/test1" 
echo "$(date)" > "/mnt/ceph/nfs-test-fast/A/B/C/D/test2" 

echo "creating hard link /mnt/ceph/nfs-test-fast/A/B/C/E/test1 to /mnt/ceph/nfs-test-fast/A/B/C/D/test1" 
ln "/mnt/ceph/nfs-test-fast/A/B/C/D/test1" "/mnt/ceph/nfs-test-fast/A/B/C/E/test1" 

echo "dropping caches on NFS server" 
ssh redhat-nfs-server-alma9 sudo ./drop-caches

echo "creating hard link /mnt/ceph/nfs-test-fast/A/B/C/E/test2 to /mnt/ceph/nfs-test-fast/A/B/C/D/test2" 
ln "/mnt/ceph/nfs-test-fast/A/B/C/D/test2" "/mnt/ceph/nfs-test-fast/A/B/C/E/test2" 

This is a simple reproduce script by Frank.

Maybe we need to setup a NFS to export the kclient.

Actions #1

Updated by Xiubo Li 12 months ago

  • Project changed from Linux kernel client to CephFS
Actions #2

Updated by Xiubo Li 10 months ago

  • Assignee set to Xiubo Li
Actions

Also available in: Atom PDF