I am trying to upgrade my laptop hard drive, and want to use Live-upgrade. What I have done so far is: 1. Moved the old drive to an external enclosure 2. Made it bootable (At this point I had to overcome the first obstacle - due to ZFS storing the disk device path in the ZFS structure it refused to automatically mount the root file system. The work-around involved booting to safe mode and mounting the zfs file systems, then rebooting. Note previously I had to re-do this even when moving the disk from one USB port to another. The disk is now portable at least between USB ports, seemingly after zpool upgrade to v11) 3. Installed the new drive into the laptop. 4. Partitioned it using Solaris/fdisk. Oops. At this point I had to overcome the second obstacle - the system failed to find the root pool. The eventual solution (work arround) was to boot from a live CD and wipe the partition table from the internal disk. 5. Trying to create a partition table on the disk again resulted in format telling me the disk type is unknown. A partial work-arround was to temporarily put the whole disk under zfs control and then destroying the pool. This resulted in an EFI label being created on the disk. From here it was possible to delete the EFI partition and create new partitions, but Solaris does not properly recognize the primary partitions created. The desired outcome of the partitioning is: fdisk P1 = Solaris2 (oxbf) to be used as ZFS root fdisk P2 = XXXX (to be used as ZFS data pool) fdisk P3 = NTFS... Still debating whether I want to have a copy of Windows consuming disk space... I still have to finish Far Cry some time. fdisk P4 = Extended partition, will be sub-partitioned for Linux. The best I''ve been able to do so far is to use Linux to create P1 and P2 above with neither made active. If either is made active, I can no longer boot from the external disk (grub fails to find the root). But Linux did not properly create the partition table. AVAILABLE DISK SELECTIONS: 0. c0d0 <WDC WD25- WD-WXE508NW759-0001-232.89GB> /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0) 1. c2t0d0 <DEFAULT cyl 2688 alt 2 hd 255 sec 63> /pci at 0,0/pci1179,1 at 1d,7/storage at 5/disk at 0,0 Specify disk (enter its number)[0]: selecting c0d0 NO Alt slice No defect list found [disk formatted, no defect list found] Entering the FDISK menu, I see Total disk size is 30401 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Solaris2 0 4256 4257 14 2 EFI 4256 26140 21885 72 SELECT ONE OF THE FOLLOWING: 1. Create a partition 2. Specify the active partition 3. Delete a partition 4. Change between Solaris and Solaris2 Partition IDs 5. Exit (update disk configuration and exit) 6. Cancel (exit without updating disk configuration) Enter Selection: Going to the partition menu, I try to create a Slice 0 of the entire disk: partition> mod Select partitioning base: 0. Current partition table (original) 1. All Free Hog Choose base (enter number) [0]? 1 Part Tag Flag First Sector Size Last Sector 0 unassigned wm 0 0 0 1 unassigned wm 0 0 0 2 unassigned wm 0 0 0 3 unassigned wm 0 0 0 4 unassigned wm 0 0 0 5 unassigned wm 0 0 0 6 unassigned wm 0 0 0 8 reserved wm 0 0 0 Do you wish to continue creating a new partition table based on above table[yes]? 0 `0'' is not expected. Do you wish to continue creating a new partition table based on above table[yes]? yes Free Hog partition[6]? 0 Enter size of partition 1 [0b, 33e, 0mb, 0gb, 0tb]: 0 Enter size of partition 2 [0b, 33e, 0mb, 0gb, 0tb]: 0 Enter size of partition 3 [0b, 33e, 0mb, 0gb, 0tb]: 0 Enter size of partition 4 [0b, 33e, 0mb, 0gb, 0tb]: 0 Enter size of partition 5 [0b, 33e, 0mb, 0gb, 0tb]: 0 Enter size of partition 6 [0b, 33e, 0mb, 0gb, 0tb]: 0 Enter size of partition 7 [0b, 33e, 0mb, 0gb, 0tb]: 0 Part Tag Flag First Sector Size Last Sector 0 usr wm 34 232.88GB 488379741 1 unassigned wm 0 0 0 2 unassigned wm 0 0 0 3 unassigned wm 0 0 0 4 unassigned wm 0 0 0 5 unassigned wm 0 0 0 6 unassigned wm 0 0 0 8 reserved wm 488379742 8.00MB 488396125 This has got me stumped. 1. Why does it create a slice zero spanning the entire physical disk, in stead of just the entire Soalris fdisk partition? 2. Why does Slice 2 not get created? 3. How do I get the Slice 8 and Slice 9 fixed (to blank out the bootblock and set up the alternatives/defects list) Note: I had this problem before using Linux to partition the disk. My planned next steps are (hopefully) Fix the partition table n1) Create data zpool in p2 slice n2) Boot linux and run Linux installer to allow it to create logical partitions in EXT partition and set up grub menu. n3) Copy grub menu entries to somewhere else for future reference n4) Boot back into Solaris n5) Create zpool on new disk P1 (Entire Solaris2 partition) n6) Run live upgrade to set up new BE on the new zpool n7) luactivate and reboot. n8) Add Entries for Linux to Grub and test. I expect to have several problems during this procedure. For example, the seemingly simple step n1 above currently fails, most likely due to the partitioning on the disk being screwed up as it stands. I am stuck at Item nr 5 - I need to get the partition table on the new disk sorted out. Any help would be appreciated! -- Any sufficiently advanced technology is indistinguishable from magic. Arthur C. Clarke Afrikaanse Stap Website: http://www.bloukous.co.za My blog: http://initialprogramload.blogspot.com ICQ = 193944626, YahooIM = johan_hartzenberg, GoogleTalk jhartzen at gmail.com, AIM = JohanHartzenberg -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20080805/7d275659/attachment.html>