- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Use of Mediainit
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 02:32 AM
06-24-2002 02:32 AM
When should this command be used. I've never used it to install a new disk. What is the use of mediainit on tapes and what does it mean to partition a tape using the mediainit command
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 02:37 AM
06-24-2002 02:37 AM
Re: Use of Mediainit
The mediainit command can be used, if you have to send medias like disks or tapes to be veryfied and if the data on it shall not be viewable for anybody. This command formats media.
Allways stay on the bright side of life!
Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 02:42 AM
06-24-2002 02:42 AM
Re: Use of Mediainit
You shouldn't have to use medianit on disks these days as they are already formatted when they leave the suppliers shop
Plus - depending on the size of your disk - you could be waiting for quite a while for it to complete
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 02:48 AM
06-24-2002 02:48 AM
Re: Use of Mediainit
If you have a disk which develops a fault - ie. a bad block, then you use mediainit to do a low level format it on it (then you can pvcreate it and reuse it).
We use it when we get disks that cant be pvcreate'ed - when this produces an I/O error (or dd does). Then we mediainit them. If the mediainit fails the disk is dead - bin it, but most of the time mediainit works fine.
If you use foreign non-HP disks on your HP server then you usually mediainit them first to verify you can use them.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 04:13 AM
06-24-2002 04:13 AM
Solutionmediainit(1M) is from days long, long gone.
I.e. you also do *not* use it to 'solve' hard-disk I/O errors, nor for non-HP hard-disks.
See http://groups.google.com/groups?selm=a5ktas$d7l$1@support.neth.hp.com for a more complete explanation.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 04:48 AM
06-24-2002 04:48 AM
Re: Use of Mediainit
Frank - you completely contradict yourself. You say *never* use mediainit but in your link you advise not to use it and even say you use it for older disks.
Thats what we use it for - older disks. Ive never used it on a disk > 9GB and never had it screw up a drive. Using it on non-HP drives it works brilliantly - for example we had a bunch of Apple SE drives going spare so we tried, unsuccessfully, to pvcreate them, so we ran mediainit first, now we can pvcreate them and use them. Without using mediainit we couldnt have used them. Also, when we have disks that report I/O errors from the dd command, mediainit fixes them so we can use these disks rather than bin them.
Im afraid I dont agree with you.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 05:08 AM
06-24-2002 05:08 AM
Re: Use of Mediainit
If, for example for the Apple SE drives, you are talking about drives with a incorrect sector size, then you *can* indeed use mediainit to (try to) get them to 'work'. *However*, while doing so, you have made them much less reliable, for the reasons giving. If that is what you want, then by all means go ahead, but don't expect people to accept that as good advice.
As to disks reporting I/O errors: mediainit does *not* *fix*' these. It may *mask* them for a while, only to bite you in the future. Disks which report I/O errors have to be checked/fixed/replaced, *not* mediainit-ed.
> I'm afraid I dont agree with you.
I understand what you are saying, but as I say in my News article, your advice "hasn't hurt you *yet*! :-(".
For what it is worth, recently Bill Hassell gave, effectively, similar advice on (not using) mediainit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 05:39 AM
06-24-2002 05:39 AM
Re: Use of Mediainit
Thanks for the feedback. Ive used mediainit tons of times on disks with are dead with I/O errors when I do a test dd on them, mediainit fixes rhem every time. To me thats the difference between throwing away a disk or reusing it - a big difference.
Can you point me to where Bill recommended not to use mediainit ?
Cheers,
Stefan
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:11 AM
06-24-2002 06:11 AM
Re: Use of Mediainit
I think the most recent one is not really Bill Hassell not recommending it, but Sanjay doing so and Bill not contradicting (but expanding on it):
http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0xd4ac3a7b3682d611abdb0090277a778c,00.html
The (ITRC Forums) search engine gives some other hits for "Bill Hassell mediainit", but, for me these give dead URLs, even for the one I mention in this post (i.e. that one only worked once).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:26 AM
06-24-2002 06:26 AM
Re: Use of Mediainit
Sanjay says its not advisable - not Bill. But Sanjay doesnt explain his reasoning why not to use it on modern drives. Bill did not backup his advise not to use it.
Bill says mediainit actually just asks modern drives to format themselves - he doesnt say not to use it or even advise not to use it.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:42 AM
06-24-2002 06:42 AM
Re: Use of Mediainit
I think I got the gist. AVOID using mediainit especially on new disks. If you want to play around and revive a disk that should be in the bin, then there is nothing to lose by using mediainit.
Thanks guys
Good Day
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 06:44 AM
06-24-2002 06:44 AM
Re: Use of Mediainit
Yes, I know what Sanjay/Bill wrote. The point is that Sanjay's advice matches mine and that Bill did not correct Sanjay. Don't you think he would have if he disagreed with it?
Same for my News article. Bill also posts frequently in that group and rest assured that he will correct someone if they are wrong *and* dangerous.
I would have liked to give 'better' references to ITRC Forums postings from Bill, but as I wrote, the ITRC Forums search engine gives dead URLs to me (I can't even post anymore after that and have to start from scratch). Feel free to do similar searches. Mine gave about six or so hits.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 07:12 AM
06-24-2002 07:12 AM
Re: Use of Mediainit
The process of mediainit has been a firmware task since the early 90's, that is, the mediainit program does not actually do anything except start the process on the disk, then waits (for hours, days for 72Gb and higher) for the disk to say it's done.
When you use LVM to carve up the disk and bad block relocation is turned on, any attempt to write on a bad block will cause an automatic relocation to take place. You'll get an errno 5 (I/O error) trying to read the block. fsck will *NEVER* fix a bad block as it is strictly a tool to straighten out tangled directories. To fix a read error on the disk, you must rewrite the data in that block.
Note that mediainit will also do this but it will take a (very) long time.
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-24-2002 02:32 PM
06-24-2002 02:32 PM
Re: Use of Mediainit
We don't need to use the mediainit for the new drives. It takes a lots of time to format the drives.