Masthan, Dudekula (STSD) wrote:
Hi All,
I opened a device ( in raw mode) and I filled the entire space (from 1
block to last block) with  some random data. While writing data, I am
seeing the following warning messages in dmesg buffer.
Jan 30 08:32:36 masthan scsi: [ID 107833 kern.warning] WARNING:
/scsi_vhci/[EMAIL PROTECTED] (ssd175):
Jan 30 08:32:36 masthan         Corrupt label; wrong magic number

Any idea on this ?
I thought my application is corrupting device structure (device
structure has disk label, partition table..etc).
In linux, the first block of the device has device structure. Do you
know the blocks which has device structure in solaris ?

You answered your own question - you said that you filled the entire
device from block 1 to the last block. In doing so you overwrote the
disk label.

Next time you want to test this device, make sure you skip at least
the first block.

cheers,
James C. McPherson
--
Solaris kernel software engineer, system admin and troubleshooter
              http://www.jmcp.homeunix.com/blog
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to