Hello,
I need advice how to import unformatted partition. I split my 150GB disk 
into 3 partitions:
1. 50GB windows
2. 50GB Opensolaris
3. 50GB unformatted
I would like to import 3. partition as a another pool but I can''t see 
this partition.
sh-3.2# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c7t0d0 <drive type unknown>
          /pci at 0,0/pci104d,81e6 at 1d,7/storage at 4/disk at 0,0
       1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
          /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
Specify disk (enter its number): ^[[^C
I guess that 0. is wind partition and 1. is Opensolaris
sh-3.2# zpool list
NAME    SIZE   USED  AVAIL    CAP  HEALTH  ALTROOT
rpool  59.5G  3.82G  55.7G     6%  ONLINE  -
sh-3.2# zpool import
sh-3.2# 
How can I find and import left partition?
Thanks for help.
Regards,
Jan Hlodan
On Thu, Feb 12, 2009 at 21:59, Jan Hlodan <jh231629 at mail-emea.sun.com> wrote:> I would like to import 3. partition as a another pool but I can''t see this > partition. > > sh-3.2# format -e > Searching for disks...done > AVAILABLE DISK SELECTIONS: > 0. c7t0d0 <drive type unknown> > /pci at 0,0/pci104d,81e6 at 1d,7/storage at 4/disk at 0,0 > 1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63> > /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0 > I guess that 0. is wind partition and 1. is OpensolarisWhat you see there are whole disks, not partitions. Try "zpool status", which will show you that rpool is on something like c9d0s0. Then go into format again, pick 1 (in my example), type "fdisk" to look at the DOS-style partition table and verify that the partitioning of the disk matches what you thought it was. Then you can create a new zpool with something like "zpool create data c9t0p3". Will
Hello,
thanks for the answer.
The partition table shows that Wind and OS run on:
1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
          /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
  Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ==          1  
IFS: NTFS         0  5098    5099     26
          2       Active    Solaris2       5099  12931    7833     40
The disk 0. c7t0d0 doesn''t contain any disk type:
AVAILABLE DISK SELECTIONS:
       0. c7t0d0 <drive type unknown>
          /pci at 0,0/pci104d,81e6 at 1d,7/storage at 4/disk at 0,0
       1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
          /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
Specify disk (enter its number): 0
Error occurred with device in usechecking: Bad file number
Error: can''t open disk ''/dev/rdsk/c7t0d0p0''.
AVAILABLE DRIVE TYPES:
        0. Auto configure
        1. other
Specify disk type (enter its number): 0
Auto configuration via format.dat[no]? y
Auto configure failed
No Solaris fdisk partition found.
If create some file system using the Gparted, my partition table will 
look like this:
                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ==          1  
IFS: NTFS         0  5098    5099     26
          2       Active    Solaris2       5099  12931    7833     40
          3                     Solaris         xyz      xyz            
         34
but I still don''t know how to import this partition (num. 3)
If I run:
zpool create  c9d0
I''ll lost all my data, right?
Regards,
Jan Hlodan
Will Murnane wrote:> On Thu, Feb 12, 2009 at 21:59, Jan Hlodan <jh231629 at
mail-emea.sun.com> wrote:
>   
>> I would like to import 3. partition as a another pool but I
can''t see this
>> partition.
>>
>> sh-3.2# format -e
>> Searching for disks...done
>> AVAILABLE DISK SELECTIONS:
>>      0. c7t0d0 <drive type unknown>
>>         /pci at 0,0/pci104d,81e6 at 1d,7/storage at 4/disk at 0,0
>>      1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
>>         /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
>> I guess that 0. is wind partition and 1. is Opensolaris
>>     
> What you see there are whole disks, not partitions.  Try "zpool
> status", which will show you that rpool is on something like c9d0s0.
> Then go into format again, pick 1 (in my example), type "fdisk"
to
> look at the DOS-style partition table and verify that the partitioning
> of the disk matches what you thought it was.
>
> Then you can create a new zpool with something like "zpool create data
c9t0p3".
>
> Will
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>
Hello,
I formated unallocated partition using Gparted and now my table looks:
sh-3.2# format -e
Searching for disks...done
AVAILABLE DISK SELECTIONS:
       0. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
          /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
Specify disk (enter its number): 0
selecting c9d0
NO Alt slice
No defect list found
             Total disk size is 19457 cylinders
             Cylinder size is 16065 (512 byte) blocks
                                               Cylinders
      Partition   Status    Type          Start   End   Length    %
      =========   ======    ============  =====   ===   ======   ==          1  
IFS: NTFS         0  5098    5099     26
          2       Active    Solaris2       5099  12931    7833     40
          3                 Linux native   12932  19456    6525     34
Can you give me an advice how to choose "3 Linux native partition"?
If I know where is this partition, then I can run: zpool create trunk 
c9d0XYZ
right?
Thanks for the answer.
Regards,
Jan Hlodan
Jan Hlodan wrote:> Hello,
> thanks for the answer.
> The partition table shows that Wind and OS run on:
> 1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
>          /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
>
>
>  Partition   Status    Type          Start   End   Length    %
>      =========   ======    ============  =====   ===   ======   ==>     
1                 IFS: NTFS         0  5098    5099     26
>          2       Active    Solaris2       5099  12931    7833     40
>
>
> The disk 0. c7t0d0 doesn''t contain any disk type:
>
> AVAILABLE DISK SELECTIONS:
>       0. c7t0d0 <drive type unknown>
>          /pci at 0,0/pci104d,81e6 at 1d,7/storage at 4/disk at 0,0
>       1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
>          /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
> Specify disk (enter its number): 0
>
> Error occurred with device in usechecking: Bad file number
> Error: can''t open disk ''/dev/rdsk/c7t0d0p0''.
>
>
> AVAILABLE DRIVE TYPES:
>        0. Auto configure
>        1. other
> Specify disk type (enter its number): 0
> Auto configuration via format.dat[no]? y
> Auto configure failed
> No Solaris fdisk partition found.
>
>
> If create some file system using the Gparted, my partition table will 
> look like this:
>
>
>                                               Cylinders
>      Partition   Status    Type          Start   End   Length    %
>      =========   ======    ============  =====   ===   ======   ==>     
1                 IFS: NTFS         0  5098    5099     26
>          2       Active    Solaris2       5099  12931    7833     40
>          3                     Solaris         xyz      xyz            
>         34
>
>
> but I still don''t know how to import this partition (num. 3)
> If I run:
> zpool create  c9d0
> I''ll lost all my data, right?
>
> Regards,
>
> Jan Hlodan
>
>
> Will Murnane wrote:
>> On Thu, Feb 12, 2009 at 21:59, Jan Hlodan 
>> <jh231629 at mail-emea.sun.com> wrote:
>>  
>>> I would like to import 3. partition as a another pool but I
can''t
>>> see this
>>> partition.
>>>
>>> sh-3.2# format -e
>>> Searching for disks...done
>>> AVAILABLE DISK SELECTIONS:
>>>      0. c7t0d0 <drive type unknown>
>>>         /pci at 0,0/pci104d,81e6 at 1d,7/storage at 4/disk at 0,0
>>>      1. c9d0 <DEFAULT cyl 7830 alt 2 hd 255 sec 63>
>>>         /pci at 0,0/pci-ide at 1f,2/ide at 0/cmdk at 0,0
>>> I guess that 0. is wind partition and 1. is Opensolaris
>>>     
>> What you see there are whole disks, not partitions.  Try "zpool
>> status", which will show you that rpool is on something like
c9d0s0.
>> Then go into format again, pick 1 (in my example), type
"fdisk" to
>> look at the DOS-style partition table and verify that the partitioning
>> of the disk matches what you thought it was.
>>
>> Then you can create a new zpool with something like "zpool create 
>> data c9t0p3".
>>
>> Will
>> _______________________________________________
>> zfs-discuss mailing list
>> zfs-discuss at opensolaris.org
>> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss
>>   
>
> _______________________________________________
> zfs-discuss mailing list
> zfs-discuss at opensolaris.org
> http://mail.opensolaris.org/mailman/listinfo/zfs-discuss