ext3 filesystems will turn readonly when the disk is going bad - often because the pool of replacement disk blocks is exhausted - whatever - this is a bad sign.
Try running
on your disks - if they are newer ATA disks since 2006 I think. look into smartd to prevent this in the future.
Get a full backup of the disks NOW. Before the disk fails completely.
I am trying to resurrect an old UNIX server without any joy, I do not have much UNIX experience any I don't understand the messages I am receiving.
The system is telling me that it cannot go multi - user until the following file systems are checked //dev/rroot
It gives me the procedure
1)... (1 Reply)
I need to update a file that is on 50 different systems at once. In case of planned network outages I would like to overwrite or lock a monitoring script so that it doesn't send notifications.
I thought of using a script that ftp 's the updated file to all 50 systems, and then overwrites the... (11 Replies)
can someone tell me the basic steps needed to resize and existing filesystem that already has data on it?
thanks
I dont need to be pointed to a website so any real time real life advice or help will be wholly appreciated (4 Replies)
Hello guys,
I am new in Unix world.
I would like know, how Can I check which type of file system (GPFS, JFS) is on the AIX server. I have AIX 5.1.
Could you anyone advice me?
Thanks. (4 Replies)
I have been wondering how do Systems Administrators do the jump into Systems Engineering? Is it only a matter of time and experience or could I actually help myself get there?
Opinions? Books I could read?
Thanks a lot for your help! (0 Replies)
I have to copy 3 file systems from one machine to another on the same local network.
Total data is about 150gb. There is not enough free space on the source system to tar the files and then copy.
I have to do this remotely, no tape or dvd
I need to maintain permissions and ownership.
I have... (2 Replies)
Hello All,
i am a newbie and need some help when reading a csv file in a bourne shell script. I want to read 10 lines, then wait for a minute and then do a reading of another 10 lines and so on in the same way. I want to do this till the end of file.
Any inputs are appreciated
... (3 Replies)
Discussion started by: victor.s
3 Replies
LEARN ABOUT DEBIAN
addbadsec
addbadsec(1M) System Administration Commands addbadsec(1M)NAME
addbadsec - map out defective disk blocks
SYNOPSIS
addbadsec [-p] [ -a blkno [blkno...]] [-f filename] raw_device
DESCRIPTION
addbadsec is used by the system administrator to map out bad disk blocks. Normally, these blocks are identified during surface analysis,
but occasionally the disk subsystem reports unrecoverable data errors indicating a bad block. A block number reported in this way can be
fed directly into addbadsec, and the block will be remapped. addbadsec will first attempt hardware remapping. This is supported on SCSI
drives and takes place at the disk hardware level. If the target is an IDE drive, then software remapping is used. In order for software
remapping to succeed, the partition must contain an alternate slice and there must be room in this slice to perform the mapping.
It should be understood that bad blocks lead to data loss. Remapping a defective block does not repair a damaged file. If a bad block
occurs to a disk-resident file system structure such as a superblock, the entire slice might have to be recovered from a backup.
OPTIONS
The following options are supported:
-a Adds the specified blocks to the hardware or software map. If more than one block number is specified, the entire list should be
quoted and block numbers should be separated by white space.
-f Adds the specified blocks to the hardware or software map. The bad blocks are listed, one per line, in the specified file.
-p Causes addbadsec to print the current software map. The output shows the defective block and the assigned alternate. This option
cannot be used to print the hardware map.
OPERANDS
The following operand is supported:
raw_device The address of the disk drive (see FILES).
FILES
The raw device should be /dev/rdsk/c?[t?]d?p0. See disks(1M) for an explanation of SCSI and IDE device naming conventions.
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Architecture |x86 |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO disks(1M), diskscan(1M), fdisk(1M), fmthard(1M), format(1M), attributes(5)NOTES
The format(1M) utility is available to format, label, analyze, and repair SCSI disks. This utility is included with the addbadsec,
diskscan(1M), fdisk(1M), and fmthard(1M) commands available for x86. To format an IDE disk, use the DOS "format" utility; however, to
label, analyze, or repair IDE disks on x86 systems, use the Solaris format(1M) utility.
SunOS 5.10 24 Feb 1998 addbadsec(1M)