How to find metadata information of a file stored in Amazon FSx for Lustre via command line

0

Team, Would you please share the command line options or method to find the metadata (like created time, last accessed time, and modified time) etc... This needed in order to analyze the file and enable for long term retention etc.. Thanks. Also, from CloudWatch how can analyze the FSx for lustre access / file management logs also.

已提問 3 個月前檢視次數 188 次
1 個回答
1

You can check the metadata of files within the directory where your Amazon FSx file system is mounted using the stat /mnt/fsx/filename command. This command will provide detailed information about the file, including:

  File: example.txt
  Size: 1420            Blocks: 8          IO Block: 4096   regular file
Device: ca01h/51713d    Inode: 1087894     Links: 1
Access: (0644/-rw-r--r--)  Uid: ( 1001/   username)   Gid: ( 1002/   usersgroup)
Access: 2024-02-24 09:30:00.000000000 +0000
Modify: 2024-02-23 15:20:00.000000000 +0000
Change: 2024-02-23 15:20:00.000000000 +0000
 Birth: -

For instructions on using CloudWatch to monitor FSx for Lustre, visit the AWS documentation.

profile picture
專家
已回答 3 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南