I was able to create second Solaris partition by running #fdisk /dev/rdsk/c1t0d0p0 First was NTFS (40GB) Second was SNV76 installation (40 GB) Third has been created by me. Rebooted system.Double checked by fdisk that partition exists My intent is to run:- # zpool create pool c1t0d0???? Cannot find out device name in Solaris system. man fdisk,man format appears not enough for me. I am missing something Sorry, for stupid questions. What the device has been created by fdisk ? Is it posible to create zfs pool with third partition ? Linux guy (fdisk /dev/sda) This message posted from opensolaris.org
Hi Boris, When you create a Solaris2 Partition under x86, Solaris "sees" the partition as a disk that you can cut into slices. You can find a list of disks available via the "format" command. A slice is much like a partition but there is a difference; that''s most or all you really need to know to use them. Once you have found the new disk you can simply: zpool create pool c1t0d1 Let me know if you still find trouble. Thanks, -Tim Boris Derzhavets wrote:> I was able to create second Solaris partition by running > > #fdisk /dev/rdsk/c1t0d0p0 > > First was NTFS (40GB) > Second was SNV76 installation (40 GB) > Third has been created by me. > Rebooted system.Double checked > by fdisk that partition exists > My intent is to run:- > # zpool create pool c1t0d0???? > Cannot find out device name in Solaris system. > man fdisk,man format appears not enough for me. > I am missing something > > Sorry, for stupid questions. > What the device has been created by fdisk ? > Is it posible to create zfs pool with third partition ? > > Linux guy (fdisk /dev/sda) > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
On Wed, Nov 14, 2007 at 09:40:59AM -0800, Boris Derzhavets wrote:> I was able to create second Solaris partition by running > > #fdisk /dev/rdsk/c1t0d0p0I''m afraid that won''t do you much good. Solaris only works with one "Solaris" partition at a time (on any one disk). If you have free space that you want to play with, it should be within the existing partition (or be on another disk).> Is it posible to create zfs pool with third partition ?I doubt it, but I think it more of a general Solaris limitation than anything to do with ZFS specifically. -- Darren Dunham ddunham at taos.com Senior Technical Consultant TAOS http://www.taos.com/ Got some Dr Pepper? San Francisco, CA bay area < This line left intentionally blank to confuse you. >
On Wed, 2007-11-14 at 21:23 +0000, A Darren Dunham wrote:> On Wed, Nov 14, 2007 at 09:40:59AM -0800, Boris Derzhavets wrote: > > I was able to create second Solaris partition by running > > > > #fdisk /dev/rdsk/c1t0d0p0 > > I''m afraid that won''t do you much good. > > Solaris only works with one "Solaris" partition at a time (on any one > disk). If you have free space that you want to play with, it should be > within the existing partition (or be on another disk). > > > Is it posible to create zfs pool with third partition ? > > I doubt it, but I think it more of a general Solaris limitation than > anything to do with ZFS specifically.You can''t use another Solaris partition but you could use a different partition ID: Total disk size is 9729 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 IFS: NTFS 0 1043 1044 11 2 Linux native 1044 2348 1305 13 3 Active Solaris2 2349 4959 2611 27 4 Other OS 4960 9728 4769 49 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) Notice partition 4 is "Other OS" which is where I have my zfs pool: helios(2):> zpool status pool: lpool state: ONLINE status: The pool is formatted using an older on-disk format. The pool can still be used, but some features are unavailable. action: Upgrade the pool using ''zpool upgrade''. Once this is done, the pool will no longer be accessible on older software versions. scrub: none requested config: NAME STATE READ WRITE CKSUM lpool ONLINE 0 0 0 c0d0p4 ONLINE 0 0 0 errors: No known data errors So to create the pool in my case would be: zpool create lpool c0d0p4 -- Mike Dotson
Tim, I ran format before creating third partition by fdisk. Rebooted SNV76 and ran format again. It keeps showing two disks, which actually are two 160 GB SATA drives originally installed on the box. When i select "0" :- First drive is properly shown with one NTFS , one SNV76 partition. It is one half empty.Third partition (20 GB) has been already created by fdisk,but it''s not displayed When i select "1":- Second drive is properly shown with several Linux partition and no free space at all. Solaris Grub works as master loader with no problems. Thank you Boris This message posted from opensolaris.org
Thank you very much Mike for your feedback. Just one more question. I noticed five device under /dev/rdsk:- c1t0d0p0 c1t0d0p1 c1t0d0p2 c1t0d0p3 c1t0d0p4 been created by system immediately after installation completed. I believe it''s x86 limitation (no more then 4 primary partitions) If I''ve got your point right, in case when "Other OS" partition gets number 3. I am supposed to run:- # zpool create pool c1t0d0p3 Boris. This message posted from opensolaris.org
On Thu, 2007-11-15 at 05:25 -0800, Boris Derzhavets wrote:> Thank you very much Mike for your feedback. > Just one more question. > I noticed five device under /dev/rdsk:- > c1t0d0p0 > c1t0d0p1 > c1t0d0p2 > c1t0d0p3 > c1t0d0p4 > been created by system immediately after installation completed. > I believe it''s x86 limitation (no more then 4 primary partitions) > If I''ve got your point right, in case when "Other OS" partition gets number 3. > I am supposed to run:- > # zpool create pool c1t0d0p3Yes. Just make sure it''s the correct partition, ie. partition 3 is actually where you want the zpool otherwise you''ll corrupt/loose what ever data is on that partition. You also need to make sure that partition 3 is defined and you can see it in fdisk as Solaris creates these p? devices whether they exist or not. So if I read your previous email correctly, you''ll need to run format, select your first disk then run fdisk again. Empty/unused space doesn''t mean a partition has been created.>From there, you''ll want to create a new partition and if you''re notfamiliar with Solaris fdisk, it''s a PITA until you get really used to it. You''ll want to start one (1) cylinder past the end of your last partition so there''s no overlap, then calculate the size of the partition. I usually use cylinders for this. So on one of my systems: Total disk size is 17849 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Active Solaris2 1 5224 5224 29 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: So the last cylinder is 5224 so we''ll start on 5225 and to use the rest of the disk, you''ll want to take the max cylinders (17849 from top line) and subtract 5225 which gives you 12624. Select 1 to create a new partition: Select the partition type to create: 1=SOLARIS2 2=UNIX 3=PCIXOS 4=Other 5=DOS12 6=DOS16 7=DOSEXT 8=DOSBIG 9=DOS16LBA A=x86 Boot B=Diagnostic C=FAT32 D=FAT32LBA E=DOSEXTLBA F=EFI 0=Exit? Select 4 for Other OS Specify the percentage of disk to use for this partition (or type "c" to specify the size in cylinders). Now select c for cylinders (I''ve never been much one for trusting percentages;) Enter starting cylinder number: 5225 Enter partition size in cylinders: 12624 (It''ll ask you about making it the active partition - say no here) Total disk size is 17849 cylinders Cylinder size is 16065 (512 byte) blocks Cylinders Partition Status Type Start End Length % ========= ====== ============ ===== === ====== == 1 Active Solaris2 1 5224 5224 29 2 Other OS 5225 17848 12624 71 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) Double check you''re not overlapping any of the partitions and select 5 to save the partition. In this case, the pool would be c1t0d0p2. Not the most technically accurate but think of p0 as the entire disk and your first partition starts with p1 and so forth. Hope that helps. If you want, post your fdisk partition table if you want a second set of eyes.> Boris. > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss-- Mike Dotson
Just a +1 - I use an fdisk partition for my zpool and it works fine (plan was to dual-boot with freebsd and this makes the vdevs slightly easier to address from both OSes). zpool doesn''t care what the partition ID is, just give it zpool create gene c0d0pN