2022-01-28 13:20:28

by Anna Schumaker

[permalink] [raw]
Subject: Re: ERROR: sysfs is not mounted (Add a tool for using the new sysfs files)

Hi Rahul,


> From: Rahul Rathore <[email protected]>
> Sent: Thursday, January 27, 2022 12:05 PM
> To: Schumaker, Anna <[email protected]>
> Cc: [email protected] <[email protected]>; David Wysochanski <[email protected]>
> Subject: ERROR: sysfs is not mounted (Add a tool for using the new sysfs files)
> ?
> NetApp Security WARNING: This is an external email. Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
>
>
> Hi Anna,
>
> Hope you are doing well.
>
> I was trying to run the tool. I am getting the below error.
>
> [root@rrathore-upstream-sysfs nfs-utils]# ./tools/rpcctl/rpcctl.py
> ERROR: sysfs is not mounted??????????????????????????????????????????????????? <-------------------------------------
> [root@rrathore-upstream-sysfs nfs-utils]# cat /proc/self/mounts | grep -i sysfs
> sysfs /sys sysfs rw,seclabel,nosuid,nodev,noexec,relatime 0 0

Oh, I see what it's doing. The beginning of the line is "sys" on my system and not sysfs:

anna@gouda ~ % cat /proc/self/mounts | grep -i sysfs
sys /sys sysfs rw,nosuid,nodev,noexec,relatime 0 0

I could probably check the fstype column for sysfs instead

Thanks,
Anna

> [root@rrathore-upstream-sysfs nfs-utils]#
> [root@rrathore-upstream-sysfs nfs-utils]# uname -a
> Linux rrathore-upstream-sysfs.example.com 5.14.10-300.fc35.x86_64 #1 SMP Thu Oct 7 20:48:44 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
> [root@rrathore-upstream-sysfs nfs-utils]#
>
> It is throwing an error even if sysfs is mounted.
>
> Please can look into it.
>
> --
> Thanks & Regards,
> Rahul Rathore
>
>