Environment
- YugabyteDB - 2.x
Issue
The the course of investigation, the Yugabyte Support Team may request specific table or tablet files from specific node(s) for purposes of detailed analysis. This article is intended to provide a method of gathering this information.
Resolution
Prerequisite
Before retrieving the appropriate files be sure that the following have been determined:
- The specific node(s) which to retrieve the tablet information.
- This information can be obtained via the YugaByte Anywhere UI (YBA) via the Nodes link at the top of the main page.
- Either the table UUID or tablet UUID, depending on the breadth of the request (e.g. tablet or table).
- From the Nodes page, select the link labeled TServer on the corresponding row to open up the TServer UI.
- For table UUIDs navigate to the Tables menu on the left hand side.
- The resulting page will provide namespace, Table UUID, and additional information.
- For tablet UUIDs navigate to the Tablets menu on the left side.
- The resulting page will provide the Table UUID, Tablet UUID, and leader/follower locations.
- For table UUIDs navigate to the Tables menu on the left hand side.
- From the Nodes page, select the link labeled TServer on the corresponding row to open up the TServer UI.
UUID Information can be determined by way of the Yugabyte Anywhere UI, via the respective node/table/tablet views.
Steps
1. SSH as the yugabyte
user to the node which contains the tablet to be retrieved.
2. As the yugabyte
user, in a filesystem location with sufficient space, issue the following command to create an archive of related tablet information
sudo find <datadir> -iname "*<tablet>*" | xargs tar -cvzf <fs_location>/<tablet>_<YYYYMMDD>_tar.gz
Where:
Attribute | Definition |
<datadir> |
The filesystem location where tablet files are saved. The most common location will be:
|
*<tablet>* |
Tablet or Table UUID as determined earlier. NOTE: If gathering table information, the resulting archive may be significantly larger in size. |
<fs_location> |
The filesystem location on which to create the tar archive. |
<YYYMMDD> |
The current date (e.g. 20231212). |
3. Attach the resulting .tgz file to the corresponding Yugabyte Support Ticket.
Comments
0 comments
Please sign in to leave a comment.