# wget -e "http_proxy=https://10.0.0.1:10001" https://eternalcenter.com/test.rpm
(补充:这里以通过代理 https://10.0.0.1:10001 下载 https://eternalcenter.com/ 网址上的 test.rpm 软件包为例)
# wget -e "http_proxy=https://10.0.0.1:10001" https://eternalcenter.com/test.rpm
(补充:这里以通过代理 https://10.0.0.1:10001 下载 https://eternalcenter.com/ 网址上的 test.rpm 软件包为例)
(注意:当进入 RHEL 的救援模式时,如果遇到了有 ”Skip to shell“ 的选项,则选择此选项)
sh-4.2# mdadm --assemble --scan
sh-4.2# lvm vgchange -ay
sh-4.2# e2fsck -fvy /dev/mapper/<volume group>-<logical volume>
(注意:在进行此操作前建议先备份数据)
sh-4.2# e2fsck -fvy /dev/<disk device>
(注意:在进行此操作前建议先备份数据)
sh-4.2# e2fsck -fvy /dev/<disk device partition>
(注意:在进行此操作前建议先备份数据)
sh-4.2# e2fsck -fvy /dev/<md device>
(注意:在进行此操作前建议先备份数据)
sh-4.2# exit
如果是修复 EXT 格式的文件系统的话,将步骤三种的以下命令:
sh-4.2# e2fsck -fvy /dev/mapper/<volume group>-<logical volume>
sh-4.2# e2fsck -fvy /dev/<disk device>
sh-4.2# e2fsck -fvy /dev/<disk device partition>
sh-4.2# e2fsck -fvy /dev/<md device>
修改成:
sh-4.2# xfs_repair /dev/mapper/<volume group>-<logical volume>
sh-4.2# xfs_repair /dev/<disk device>
sh-4.2# xfs_repair /dev/<disk device partition>
sh-4.2# xfs_repair /dev/<md device>
(
注意:
1) 在进行此操作前建议先备份数据
2) 如果直接使用 xfs_reqaire 命令无效,可以加上 -L 参数,但是使用 -L 参数前一定要提前备份数据:
sh-4.2# xfs_repair -L /dev/mapper/<volume group>-<logical volume>
sh-4.2# xfs_repair -L /dev/<disk device>
sh-4.2# xfs_repair -L /dev/<disk device partition>
sh-4.2# xfs_repair -L /dev/<md device>
)
参考文献:
https://access.redhat.com/solutions/9541
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/managing_file_systems/checking-and-repairing-a-file-system_
https://docs.redhat.com/zh-cn/documentation/red_hat_enterprise_linux/8/html/managing_file_systems/checking-an-xfs-file-system-with-xfs-repair_checking-and-repairing-a-file-system
(注意:当进入 RHEL 的救援模式时,如果遇到了有 ”Skip to shell“ 的选项,则选择此选项)
sh-4.2# mdadm --assemble --scan
sh-4.2# lvm vgchange -ay
sh-4.2# xfs_repair /dev/mapper/<volume group>-<logical volume>
(
注意:
1) 在进行此操作前建议先备份数据
2) 如果直接使用 xfs_reqaire 命令无效,可以加上 -L 参数,但是使用 -L 参数前一定要提前备份数据:
sh-4.2# xfs_repair -L /dev/mapper/<volume group>-<logical volume>
)
sh-4.2# xfs_repair /dev/<disk device>
(
注意:
1) 在进行此操作前建议先备份数据
2) 如果直接使用 xfs_reqaire 命令无效,可以加上 -L 参数,但是使用 -L 参数前一定要提前备份数据:
sh-4.2# xfs_repair -L /dev/<disk device>
)
sh-4.2# xfs_repair /dev/<disk device partition>
(
注意:
1) 在进行此操作前建议先备份数据
2) 如果直接使用 xfs_reqaire 命令无效,可以加上 -L 参数,但是使用 -L 参数前一定要提前备份数据:
sh-4.2# xfs_repair -L /dev/<disk device partition>
)
sh-4.2# xfs_repair /dev/<md device>
(
注意:
1) 在进行此操作前建议先备份数据
2) 如果直接使用 xfs_reqaire 命令无效,可以加上 -L 参数,但是使用 -L 参数前一定要提前备份数据:
sh-4.2# xfs_repair -L /dev/<md device>
)
sh-4.2# exit
如果是修复 EXT 格式的文件系统的话,将步骤三种的以下命令:
sh-4.2# xfs_repair /dev/mapper/<volume group>-<logical volume>
sh-4.2# xfs_repair /dev/<disk device>
sh-4.2# xfs_repair /dev/<disk device partition>
sh-4.2# xfs_repair /dev/<md device>
修改成:
sh-4.2# e2fsck -fvy /dev/mapper/<volume group>-<logical volume>
sh-4.2# e2fsck -fvy /dev/<disk device>
sh-4.2# e2fsck -fvy /dev/<disk device partition>
sh-4.2# e2fsck -fvy /dev/<md device>
https://access.redhat.com/solutions/9541
https://docs.redhat.com/en/documentation/red_hat_enterprise_linux/10/html/managing_file_systems/checking-and-repairing-a-file-system_
https://docs.redhat.com/zh-cn/documentation/red_hat_enterprise_linux/8/html/managing_file_systems/checking-an-xfs-file-system-with-xfs-repair_checking-and-repairing-a-file-system
> at
PAM failure: Authentication service cannot retrieve authentication info
This user which inputted at command did not have password so there is no record relate to it in /etc/shadow file.
And at command need check the record in the file /etc/shadow.
If at command can not find the user's record in /etc/shadow, it output this error code.
And password to the suer:
> passwd
# scp eternalcenter.com:/home/mingyuzhu/test.txt .
scp: Connection closed
# scp -O eternalcenter.com:/home/mingyuzhu/test.txt .