Marcus Sundman wrote: > Hi > > I've used format's "volname" command to give labels to my drives > according to their physical location. I did quite a lot of work > labeling all my drives (I couldn't figure out which controller got > which numbers so I had to disconnect drives one by one, and they're not > hotpluggable => lot's of reboots). However, when I created a zpool of > the drives all the labels vanished! Since I didn't write them down > elsewhere I have to do it all over. Except that now it won't let me: >> format> volname >> Unable to get current partition map. >> Cannot label disk while its partitions are in use as described. >> format> > > I get the same error message even if the device is offline (i.e., > "zpool offline <pool> <device>"). > > Am I doing something wrong, or is format just giving me the finger for > no reason?
format is using libdiskmgmt, which is designed to assist you with avoiding admin stuff-ups with already-allocated/ assigned/in use devices. I'm interested in what you did to figure out your drive locations - did you use cfgadm, fmtopo or sestopo to figure it out, or something closer to the hardware? What sort of hardware, btw? Oh, and if you gave the zpool create command the cXtYdZ name, then the labels will have been over-written with GPT (aka EFI) labels instead. James C. McPherson -- Senior Kernel Software Engineer, Solaris Sun Microsystems http://blogs.sun.com/jmcp http://www.jmcp.homeunix.com/blog _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss