Re: Does solaris require disks to be zeroed before using

From: David A.Lethe (davidATsantools.com)
Date: 09/24/04


Date: Fri, 24 Sep 2004 14:10:48 -0500

On 23 Sep 2004 22:31:46 GMT, Scott Howard <scott@hunterlink.net.au>
wrote:

>David A.Lethe <davidATsantools.com> wrote:
>> This is causing some issues at our company, and we can't get any
>> definitive answers. Is there any requirement, or even best-practices
>> policies that SCSI and/or fibre channel disk drives need to have all
>> zeros written to them before partitioning and building a file system
>> on them?
>
>In a word, no.
>
>Solaris will never attempt to read a block of data which it hasn't
>previously written something to.
>
> Scott

Not true, and this explains the whole point of the question.

Example .. .when you run the format command. Obviously it doesn't
write before reading, or every time you ran it, it would blow the
partitions away ;)

This brings up the reason for the question to begin with. The test
suites don't wipe the disks clean, and we had what might have been a
zillion-to-one shot where fdisk (on LINUX) exited with an invalid
partition error when the sysadmin tried to partition things.

After I figured out problem wasn't hardware related, and using dd to
blow the first few MB of the disk away, we have to deal with problem
prevention ... do we adjust testing utilties to insure that all or
part of the disk is zeroed before we let people use the disks.



Relevant Pages

  • Re: The danger of dishonest disk drives (WAS:Re: Need to remove a ghost file, but cant because it do
    ... E.g. if the file system is atomic transaction oriented, ... admin was able to effect a shutdown where disks synced (not just push ... jfs drive wasn't able to be mounted. ... I have formatted a partition with JFS on my hard-disk. ...
    (Debian-User)
  • Re: bugged sysinstall, bsdlabel, zfs, gmirror - recept for disaster :)
    ... So after a thirty minutes I had a plan, and my server had 4 disks ... gmirror - raidz environment. ... mount point for every partition in slice. ... offset to use (the end of the previous partition plus one, ...
    (freebsd-stable)
  • bugged sysinstall, bsdlabel, zfs, gmirror - recept for disaster :)
    ... Yesterday I've decided that's about time to test zfs functionality on my home server PC. ... A couple of weeks ago I bought new desktop PC, so I had a bunch of PATA disks from old one ... Problem with labels created with sysinstal, is that it aks for a mount point for every partition in slice. ... So I've added gmirror to loader.conf ...
    (freebsd-stable)
  • Re: RAID & /boot
    ... First, although GRUB can't boot from a RAID partition, LILO can. ... Second, Linux does RAID on partitions, not whole disks. ... so you should probably plan to plug in an extra IDE controller card. ... Sometimes Linux tries to shuffle the /dev names for the drives when ...
    (alt.os.linux.suse)
  • SUMMARY: Re: SAN 3310 Multiple LUNs Not Visible on Solaris 9 Host
    ... My disks show up as: ... > connected on the primary controller, and currently has a single Logical ... > Partition: 0 ... > Lun: 0 ...
    (SunManagers)

Quantcast