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.

1 Answer
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
EXPERT
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions