inode go from the practical operation, restore accidentally deleted files xfs

A, inode to go from real practice

1.ls -i inode can see the name of the file, stat 123.txt command can be seen permissions, inode number, hard links, three times the access time can be seen.
inode go from the practical operation, restore accidentally deleted files xfs
2. New Link to 123 text abc text, see the command with the stat 123.txt, number of hard links immediately changed to 2
inode go from the practical operation, restore accidentally deleted files xfs
consistent inode number 3. Text and hard links, namely hard link aliases (soft link text inode number two That is different)
inode go from the practical operation, restore accidentally deleted files xfs
4. View details 456 files, use the file command to see the text format, the directory form
inode go from the practical operation, restore accidentally deleted files xfs
5.df -i command to see all file system has a total of inode numbers, and inode numbers are available
inode go from the practical operation, restore accidentally deleted files xfs
6. Add a new sdb disk, giving it a partition sdb1 (20G all).
inode go from the practical operation, restore accidentally deleted files xfs

7. formatted disk
inode go from the practical operation, restore accidentally deleted files xfs
8. The new directory abc, abc next sdb1 mount
inode go from the practical operation, restore accidentally deleted files xfs
9. 10,485 new empty text at abc directory, which accounted for 10,485 empty text inode number
inode go from the practical operation, restore accidentally deleted files xfs
10. Check with df -hT, which accounts for empty text the 38M space
inode go from the practical operation, restore accidentally deleted files xfs

Second, restore accidentally deleted files

1. Screening rpm package, if not you need to install via yum
inode go from the practical operation, restore accidentally deleted files xfs
2.xfs file recovery, disk file system for backup
inode go from the practical operation, restore accidentally deleted files xfs
3. Enter interactive interface, has an input address backup and backup file or device name.
inode go from the practical operation, restore accidentally deleted files xfs
inode go from the practical operation, restore accidentally deleted files xfs
4. Analog delete files, text
inode go from the practical operation, restore accidentally deleted files xfs
5. restore runs
inode go from the practical operation, restore accidentally deleted files xfs
inode go from the practical operation, restore accidentally deleted files xfs
inode go from the practical operation, restore accidentally deleted files xfs

Conclusion: xfsdump backup tool also has a lot of restrictions
1. Only backup mounted file systems
2. You must use root privileges to operate
3. XFS file system can only back up
data after the backup only 4. Let xfsrestore analytical
the two file systems can not back up with the same UUID

Guess you like

Origin blog.51cto.com/14475593/2433496