Re: [zfs-discuss] How to create ZFS pool ?

2007-11-15 Thread Mike Dotson
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  c1t0d0p3

Yes.  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 not
familiar 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   StatusType  Start   End   Length%
  =   ==  =   ===   ==   ===
  1   ActiveSolaris2  1  52245224 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=UNIX3=PCIXOS 4=Other
   5=DOS12 6=DOS16   7=DOSEXT 8=DOSBIG
   9=DOS16LBA  A=x86 BootB=Diagnostic C=FAT32
   D=FAT32LBA  E=DOSEXTLBA   F=EFI0=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   StatusType  Start   End   Length%
  =   ==  =   ===   ==   ===
  1   ActiveSolaris2  1  52245224 29
  2 Other OS   5225  1784812624 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@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
-- 
Mike Dotson

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


[zfs-discuss] How to create ZFS pool ?

2007-11-14 Thread Boris Derzhavets
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@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to create ZFS pool ?

2007-11-14 Thread Tim Spriggs
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@opensolaris.org
 http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
   

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss


Re: [zfs-discuss] How to create ZFS pool ?

2007-11-14 Thread Mike Dotson
On Wed, 2007-11-14 at 21:23 +, 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   StatusType  Start   End   Length%
  =   ==  =   ===   ==   ===
  1 IFS: NTFS 0  10431044 11
  2 Linux native   1044  23481305 13
  3   ActiveSolaris2   2349  49592611 27
  4 Other OS   4960  97284769 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:

NAMESTATE READ WRITE CKSUM
lpool   ONLINE   0 0 0
  c0d0p4ONLINE   0 0 0

errors: No known data errors


So to create the pool in my case would be: zpool create lpool c0d0p4



-- 
Mike Dotson

___
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss