Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What to do after the Solaris host is accidentally powered off?

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly describes how to deal with Solaris host unexpected power failure, the text is very detailed, has a certain reference value, interested friends must read!

Solaris abnormal shutdown causes file system problems. After power-on and startup, the system cannot repair itself. It will automatically start to single-user mode, which will cause your/export/home(or other) directory to be invisible, but it does not disappear. It is just not hooked up. You need to manually do fsck operation, or you can manually hook up the directory to try:

1. After the startup stops, press the prompt to enter the root password to log in.

2.# mount /export/home(or other directory)

3. Or simply execute the following command to repair

# fsck -y

Solaris fsck command detailed explanation

Fsck inspects file systems and repairs damaged file systems.

The syntax for fsck is as follows:

fsck (-F fstype) (-v) (-m) (-special…)

fsck (-F fstype) (-v) (-y|Y|n|N)

(-o fstype options) (special…)

Of which:

-F fstype : Indicates the type of file system being checked

-v : Returns the completed command line, but does not run

-y| Y: Yes to all questions

-n| N: No to all questions

-m: Checks file system, does not repair file system,

Displays if the file system is checked to be mountable

ufs fsck : sanity check : /dev/rdsk/c0t0d0s0 okay.

-o: file system type options, options separated by commas,

The two most common options are:

P: preen mode

F: Force check mode, this option ignores file system status flags.

1)Remove a directory entry with no associated files Answer Yes or Y to delete the directory entry

2)Reconnect an allocated but inaccessible file

"RECONNECT?" to fsck "Answer Yes, that is, connect the I node to the lost+found directory, and the file name is the I node number.

3)Number of connections adjust Answer Yes or Y to correct the number of connections

4)Free block table inconsistent answer Yes or Y to correct super block

Most of the questions asked by fsck can be answered with Yes, so in practice, you can use the " -y" option to execute the command to check and repair the hard disk.

The above is "Solaris host unexpected power after how to deal with" all the contents of this article, thank you for reading! Hope to share the content to help everyone, more relevant knowledge, welcome to pay attention to the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report