format and pkginfo -l question

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers format and pkginfo -l question
# 1  
Old 03-02-2001
I have a Solaris 2.6 box flagging an "Error block: 308918" in the messages file when I execute a pkginfo -l. pkginfo with no flags returns no errors. I think I need to use format to mark this block and then restore the database used by pkginfo for backup. Any advice/input welcome.
# 2  
Old 03-03-2001
Perhaps try a few FSCKs on the file system and see if that helps. If you have a defect on the disk you can do as you suggest and tag the errors. Disk space is so cheap, if you have defects on the disk, you might consider getting a new disk and replacing the bad one. I don't tolerate any errors on disks because losing a disk ruins my day.

I'm not fully understanding if you have a file system error or a disk flaw. It sounds like you believe the disk has a flaw. Well, if you do, then you may be safer in replacing it. Others may have a better suggestion. I always replace disks with surface flaws..... My Zero Tolerance for Disk Errors Policy Smilie

On the other hand, if the error is in the file system, you can repair this. So, the key is finding out (for sure) if you have a disk flaw or a file system error.
# 3  
Old 03-05-2001
Thanks Neo. I do beleive that it is a bad sector on the disk itself and not a file system error. Over the weekend I brought it down and marked the secotr as bad. This cleaned up the entries in the messages file but I still don't know if I can recover the pkginfo data. The problem with replacing the disk is that it is the root disk on a server which needs to be up 100% of the time. We have a hard time rebooting it much less swapping the disk and installing the OS etc.
Thanks again.
# 4  
Old 03-06-2001
If you get a new disk with similar geometry, then the next time the system goes down, install the disk. Then, when you have time, do a dd (disk to disk) copy and competely mirror the root disk unto the new disk. (or do this just before a reboot). Afterwards, swap the new disk (freshly made with dd), with the original root disk. If you do this at 'targets of opportunities' when either down or rebooting, then the transition to an error-free disk can be made without being too intrusive.

I'm sorry I'm not much more help on the disk error. They make me nervous and I see them as a warning sign for future failures. My apologies for disk-paranoia Smilie About the error in your pkgtool distro, you might try just copying the entire directory with cp -rP (or something like that) and then move the old directory to an archive; then move the tree made with cp -rP (or whatever works for your system) back. You might get lucky and the disk error will remain in the archive tree and the new tree will be error free. This is a shot in the dark, but sometimes these wild-arse-guesses get lucky and solve obscure problems.

# 5  
Old 03-06-2001
Hey no need to apologize for anything. I appreciate the fact that you share your knowledge/experience! I will try that next time I reboot the system. In the mean time I would like to try to fix the pkginfo table as we can't remove any packages. We have regular backups (monthly full dumps and Legato). I think I should be able to restore the file(s). This is there error I get when I exectute the pkginfo -l
# pkginfo -l wuftpd
pkginfo: ERROR: bad entry read in contents file
pathname: /kernel/strmod/hwc
problem: unable to read mode/owner/group

When I look at the modified and touch dates on /kernel/strmod/hwc they are very old??? I am confused and not sure how to proceed.

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. UNIX for Beginners Questions & Answers

Format Question

Hello friends i have a file that outputs like this: lineA lineB lineC I would like it to format it like this as output: 'lineA','lineB','lineC' Can you help? Thank you (2 Replies)
Discussion started by: DallasT
2 Replies

2. Solaris

Host name in front of pkginfo output

hello all I am trying to create a comma seperated file of the pkginfo command. The follwoing works pretty well. pkginfo -l | egrep '(BASEDIR|NAME|VERSION)' | awk '{print}' ORS=', ' however, there are two issues. 1, For some reason it does not load into excel properly. It loads as... (7 Replies)
Discussion started by: busi386
7 Replies

3. Solaris

pkgadd, pkginfo, ssh not working

Got a feeling someone has been fiddling around or something has got corrupt but I'm getting the following errors now:- -bash-3.00# pkginfo pkginfo: fatal: open failed: No such file or directory Killed -bash-3.00# and also ssh:- -bash-3.00# ssh ssh:... (5 Replies)
Discussion started by: psychocandy
5 Replies

4. AIX

BMC package and ingeneral all packages in AIX (Similar to pkginfo in Linux)

Hi , I want to know is there any command in AIX similar to pkginfo ? that shows details of all packages installed and we can grep whatever we need to check? Thanks Rafi (2 Replies)
Discussion started by: rafi49
2 Replies

5. Solaris

grep help with pkginfo

im looking for a way to eliminate the packages from SUN when i do a pkginfo. thought this would work, but no luck. pkginfo | grep what am i doing wrong? Thanks (2 Replies)
Discussion started by: jrich523
2 Replies

6. UNIX for Advanced & Expert Users

rpm and pkginfo question

Can the root hide some of the results of the above commands from a regular user? i.e. $>rpm and $>sudo rpm will give different results (1 Reply)
Discussion started by: noam128
1 Replies

7. Solaris

Disk Format Question

Wondering if anyone could tell about how long it will take to perform 3 passes on a 72 GB disk? I have a Sun V240 and will have to format all 4. Thanks. (1 Reply)
Discussion started by: buckhtr77
1 Replies

8. Solaris

difference between pkginfo and pkgchk command

can anyone explain me the difference between pkginfo and pkgchk command in solaris. Both are used to display the package details, then what is the difference between both. (5 Replies)
Discussion started by: rogerben
5 Replies

9. Shell Programming and Scripting

Date format question

I have a string that looks like this: 2008 04 09 18 45 30 0 I would like to convert it to a date format like this: Wed Apr 09 18:45:30.000 GMT 2008 I have been searching all over and can't find anything to help me. I am using ksh on a sun solaris unix machine. Thank you. Allyson (2 Replies)
Discussion started by: ajgwin
2 Replies

10. UNIX for Dummies Questions & Answers

Format question

I'm trying to format a hard drive. It asks me for the disk type, which is not there for my drive. So I choose other and it says "Enter number of data cylinders". Where do I get this information from? (5 Replies)
Discussion started by: shorty
5 Replies
Login or Register to Ask a Question