Automatically label disks with new info and old partition?

From: Swider, Bucky (jswider@concordefs.com)
Date: Sat May 24 2003 - 10:01:41 EDT


Hi All, again sorry for the non-urgent query...I'm still trying to find a
good place where you guys hang out in an offline list...

Anyhow, I have a new array which enables me to expand luns (as presented to
solaris) on the fly. I am trying to devise a way for solaris to see the
updated geometry without interruption. Here's the outline:

1. Use a utility (?) to get the <updated> scsi disk info- the same info
that is had by 'auto configure' in format -e.
2. Use prtvtoc to get the current partion table
3. Build a temporary format.dat file with the new scsi geometry info from
<1>, and the partition data from <2>, except of course changing slice 2 to
extend to the increased cylinder range
4. Labeling the disk non-interactively using the info from this temporary
format.dat file.

I can interactively do most of this now...the only exposure is after I use
auto-configure and write the label. The partition table is then set back to
the default of s0, s1, s6. I then must manually repartition with the
previous values of all slices but s2.

I know solaris can see the updated geometry, because the EMC 'inq' program
gives me an updated size....I just need a way to glue all these steps
together to eliminate the exposure of having even momentarily an incorrect
partition table. Thanks!

Bucky
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:26:28 EDT