Mount probleme /nfs4 /

hi,
I am a beginner, so the most mounts on my systems are working.

No i have a problem:
I have 3 hard disks.

hd_1 is mountet on /exp/hd_1_folder
hd_2 is mountet on /exp/hd_1_folder/hd_2_folder
hd_3 is mountet on /exp/hd_1_folder/hd_3_folder

now I try to mount the folder “/exp/hd_1_folder” to /hd_1_folder_root.

I have the problem:
in the folders “/exp/hd_1_folder/hd_2_folder” and “/exp/hd_1_folder/hd_3_folder” are files. (the mounts to the hard disks are available with df)
But in the Folders “/hd_1_folder_root/hd_2_folder” and “/hd_1_folder_root/hd_3_folder” this 2 folders are empty and are not mounted.

  1. is there a solution to fix this? aktual I use “ls -n”
  2. or is it always a problem to create a mount in another mount

thanks

kind regards Andreas

Hello and welcome to the openSUSE forums.
To begin with, you choose “other” as tag for your openSUSE version. Now we do know nothing, because you failed to describe what “other” is.

It is rather vague to me what you are describing. We love to see complete command and it’s output to see for our own on what facts your story is based.

So maybe commands like

fdisk -l
lsblk -f
cat /etc/fstba

will help to understand your situation.

And I have no idea what using ls -n has to do with your problem.

You also talk about “/nfs4 /” in your title, but any explanation about what you mean with this is missing in your description.

Maybe I understyand this question (but I am not sure). When you mount a file system on a directory (that thus will become a mount point) and that directory has files inside, then you will not see those files anymore, but you will see the files of the mounted file system (sounds rather logical to me). After you unmount the file system, those files will be visible again.

Ever beginners are supposed to show what they are doing. This is a working mount:

erlangen:~ # grep nfs /etc/fstab 
6700k:/home/karl /home_karl_6700k nfs4 rw,_netdev,x-systemd.automount,x-systemd.timeout=5,x-systemd.idle-timeout=10 0 0
erlangen:~ # 

What is yours?

Thanks.

/dev/mapper/hd_1 /exp/hd_1_folder xfs defaults 0 0
/dev/mapper/hd_2 /exp/hd_1_folder/hd_2_folder xfs defaults 0 0
/dev/mapper/hd_2 /exp/hd_1_folder/hd_3_folder xfs defaults 0 0

that is working, all contents in “/exp/hd_1_folder/”,“/exp/hd_1_folder/hd_2_folder” and “/exp/hd_1_folder/hd_3_folder” are available.

Sorry i mixed something, now i try to mount the main folder with the automounter,as follow:
/hd_1_folder -fstype=nfs4,rw hostname.net:/exp/hd_1_folder

/hd_1_folder content ist correkt
/hd_1_folder/hd_2_folder no content
/hd_1_folder/hd_3_folder no content

I hope this is a better description.

What about export?

6700k:~ # cat /etc/exports
/home/karl      *(ro,root_squash,sync,no_subtree_check)
6700k:~ # 

Not really. You show some lines without explaining where these lines come, so they cannot really be interpreted.

But assuming I guessed your problem correctly …

How to properly export and import NFS shares that have subdirectories as mount points also? - Unix & Linux Stack Exchange