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개 답변
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달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠