System information

# mkdir /mnt/sda3
# mount -t ext3 /dev/sda3 /mnt/sda3
# mkdir /backup-files
# mount -t ext3 /dev/sda6 /backup-files
6. Restore the data.
# cd /mnt/sda1
# restore -rf /backup-files/sda1.dump
# cd /mnt/sda2
# restore -rf /backup-files/sda2.dump
# cd /mnt/sda3
# restore -rf /backup-files/sda3.dump
If you want to restore from a remote host or restore from a backup file on a remote host you
can use either ssh or rsh. You will need to configure a password-less login for the following
examples:
Login into 10.0.0.87, and restore sda1 from local sda1.dump file:
# ssh 10.0.0.87 "cd /mnt/sda1 & & cat /backup-files/sda1.dump |
restore -rf -"
Login into 10.0.0.87, and restore sda1 from a remote 10.66.0.124 sda1.dump file:
# ssh 10.0.0.87 "cd /mnt/sda1 & & RSH=/usr/bin/ssh restore -r -f
10.66.0.124:/tmp/sda1.dump"
7. Reboot.
6.6. Ot her Ext 4 File Syst em Ut ilit ies
Red Hat Enterprise Linux 6 also features other utilities for managing ext4 file systems:
e2f sck
Used to repair an ext4 file system. This tool checks and repairs an ext4 file system more
efficiently than ext3, thanks to updates in the ext4 disk structure.
e2lab el
Changes the label on an ext4 file system. This tool also works on ext2 and ext3 file systems.
q u o t a
Controls and reports on disk space (blocks) and file (inode) usage by users and groups on
an ext4 file system. For more information on using q uo ta, refer to man q uo ta and
Section 16.1, β€œ Configuring D isk Quotas” .
As demonstrated in Section 6.2, β€œ Mounting an Ext4 File System” , the tune2fs utility can also adjust
configurable file system parameters for ext2, ext3, and ext4 file systems. In addition, the following
tools are also useful in debugging and analyzing ext4 file systems:
d ebu g f s
Debugs ext2, ext3, or ext4 file systems.
Red Hat Ent erprise Lin ux 6 St orage Admin ist rat io n G uide
38