I finally decided to get rid of my Windows XP partition as I rarely used it except to fire it up to install OS updates and virus signatures. I had some trouble locating information on how to do this so I thought I'd document it here.
My system is Toshiba Tecra M9. It had four partitions on it. Partition 1 - NTFS Windows XP OS (Drive C:) Partition 2 - NTFS Windows data partition (D:) Partition 3 - FAT32 Partition 4 - Solaris2 Partition 1 and 2 where laid down by my company's standard OS install. I had shrunk these using QTparted to enable me to install OpenSolaris. Partition 3 was setup to have a common file system mountable by OpenSolaris and Windows. There may be ways to do this with NTFS now, but this was a legacy from older Solaris installs. Partition 4 is my OpenSolaris ZFS install Step 1) Backuped up all my data from Partition 3, and any files I needed from Partition 1 and 2. I also had a current snapshot of my OpenSolaris partition (Partition 4). Step 2) Delete Partitions 1,2, and 3. I did this using fdisk option in format under Opensolaris. format -> Select Disk 0 (make note of the short drive name alias, mine was c4t0d0) You will receive a warning something like this; [disk formatted] /dev/dsk/c4t0d0s0 is part of active ZFS pool rpool. Please see zpool(1M) Then select fdisk from the FORMAT MENU You will see something like this; Total disk size is 14593 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 FAT32LBA x xxxx xxxx xx 2 FAT32LBA xxxx xxxx xxxx xx 3 Win95 FAT32 5481 8157 267 18 4 Active Solaris2 8158 14579 6422 44 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. Edit/View extended partitions 6. Exit (update disk configuration and exit) 7. Cancel (exit without updating disk configuration) Enter Selection: Delete the partitions 1, 2 and 3 (Don't forget to back them up before you do this) Using the fdisk menu create a new Solaris2 partition for use by ZFS. When you are done you should see something like this; Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== === 1 Solaris2 1 8157 8157 56 4 Active Solaris2 8158 14579 6422 44 Exit and update the disk configuration. Step 3) Create the ZFS pool First you can test if zpool will be successful in creating the pool by using the -n option; zpool create -n datapool c4t0d0p1 (I will make some notes about this disk name at the end) Should report something like; would create 'datapool' with the following layout: datapool c4t0d0p1 By default the zpool command will make a mount-point in your root "/" with the same name as your pool. If you don't want this you can change that in the create command (see the man page for details) Now issue the command without the -n option; zpool create datapool c4t0d0p1 Now check to see if it is there; zpool list It should report something like this; NAME SIZE ALLOC FREE CAP DEDUP HEALTH ALTROOT datapool 62G 30.7G 31.3G 49% 1.06x ONLINE - rpool 49G 43.4G 5.65G 88% 1.00x ONLINE - Step 4) Remember to take any of the mount parameters out of your /etc/vfstab file. You should be good to go at this point. ============================================== Notes about disk/partition naming; In my case the disk is called c4t0d0. So how did I come up with c4t0d0p1? The whole disk name is c4t0d0p0. Each partition is has the following naming convention; Partition 1 = c4t0d0p1 Partition 2 = c4t0d0p2 Partition 3 = c4t0d0p3 Partition 4 = c4t0d0p4 The fdisk command does not renumber the partitions when you delete partitions. So in the end I had Partition 1 and 4. Thanks to Srdjan Matovina for helping me sort this out, and as a second pair of eyes to make sure I did not delete the wrong partition. Ron -- This message posted from opensolaris.org _______________________________________________ zfs-discuss mailing list zfs-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/zfs-discuss