Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-09 Thread John D Groenveld
In message <59b40014.4010...@kit.edu>, "Udo Grabowski (IMK)" writes:
>And that's the problem. Always expect the unexpected. Some day some
>tool or idiot will touch that, and your nice s2 pool is gone. Use the
>things as they are intended to be used, not just in any way you like
>because it happens to "work". Administrators should use good practice,
>not hacks.

+1
I have used removable backup zpools to emergency boot a BE.

John
groenv...@acm.org

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-09 Thread PÁSZTOR György
Hi,

"Udo Grabowski (IMK)"  írta 2017-09-09 13:12-kor:
> No, s2 has been actively configured to be used as a zpool slice,

Yepp. That is the normal behaviour.

> zfs tools don't do that. Therefore, the next one that will touch

I think, You are wrong. ZFS does that. At least according to docs.

> slice s8 will destroy the data on "slice" s2 (the problem is just

Ho doesn't actively use s8. It's default behaviour again.

> the other way round than you think). Therefore, by convention don't
> use s2 actively, any other activity on s (/=2) will destroy
> data.

If you read the docs, his scenario perfectly fits to the layout what the
docs says:
https://wiki.openindiana.org/oi/Advanced+-+Creating+aligned+rpool+partitions

The only difference here, that he uses p1 for the "other" os, and uses p2
for the pool. But besides that, it's a textbook example: s8 is created as
"boot slice". boot slice is one cylinder long. No useful data there, and he
didn't intend to use s8 directly. He just wants to use the zpool.

Cheers,
Gyu

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-09 Thread Udo Grabowski (IMK)

On 08/09/2017 23:41, PÁSZTOR György wrote:

Hi,

"Udo Grabowski (IMK)"  írta 2017-09-08 17:39-kor:

On 08/09/2017 17:33, Apostolos Syropoulos via openindiana-discuss wrote:

I should mind my p's and s's.  Thanks, Andrew; you're right.  I was
thinking of s2, not p2.


So what I did what correct, right? I have mounted both partitions and the
dataare there and I can read and write.


No. Your boot slice #8 is overlapped by s2. It is not
recommended to use s2 for anything.

Configure s0 instead with tag root, and use only the region
above the boot slice (that is, from cylinder 1 upwards).


I don't think he configured any slice by hand. It was zpool what prepared
the whole stuff.
And there is NO overlap here. As it was already told: s2 (NOT p2) means the
whole "drive"/ "partition". Depends on the case.

Everything is right. No need to scare him away.



No, s2 has been actively configured to be used as a zpool slice,
zfs tools don't do that. Therefore, the next one that will touch
slice s8 will destroy the data on "slice" s2 (the problem is just
the other way round than you think). Therefore, by convention don't
use s2 actively, any other activity on s (/=2) will destroy
data.
--
Dr.Udo GrabowskiInst.f.Meteorology a.Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technologyhttp://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany  T:(+49)721 608-26026 F:-926026

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread PÁSZTOR György
Hi,

"Udo Grabowski (IMK)"  írta 2017-09-08 17:39-kor:
> On 08/09/2017 17:33, Apostolos Syropoulos via openindiana-discuss wrote:
> >>I should mind my p's and s's.  Thanks, Andrew; you're right.  I was
> >>thinking of s2, not p2.
> >
> >So what I did what correct, right? I have mounted both partitions and the 
> >dataare there and I can read and write.
> 
> No. Your boot slice #8 is overlapped by s2. It is not
> recommended to use s2 for anything.
> 
> Configure s0 instead with tag root, and use only the region
> above the boot slice (that is, from cylinder 1 upwards).

I don't think he configured any slice by hand. It was zpool what prepared
the whole stuff.
And there is NO overlap here. As it was already told: s2 (NOT p2) means the
whole "drive"/ "partition". Depends on the case.

Everything is right. No need to scare him away.

Regards,
Gyu

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread Udo Grabowski (IMK)

On 08/09/2017 17:33, Apostolos Syropoulos via openindiana-discuss wrote:

I should mind my p's and s's.  Thanks, Andrew; you're right.  I was
thinking of s2, not p2.


So what I did what correct, right? I have mounted both partitions and the 
dataare there and I can read and write.


No. Your boot slice #8 is overlapped by s2. It is not
recommended to use s2 for anything.

Configure s0 instead with tag root, and use only the region
above the boot slice (that is, from cylinder 1 upwards).

--
Dr.Udo Grabowski   Inst.f.Meteorology & Climate Research IMK-ASF-SAT
http://www.imk-asf.kit.edu/english/sat.php
KIT - Karlsruhe Institute of Technology   http://www.kit.edu
Postfach 3640,76021 Karlsruhe,Germany T:(+49)721 608-26026 F:-926026

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread Apostolos Syropoulos via openindiana-discuss
>I should mind my p's and s's.  Thanks, Andrew; you're right.  I was
>thinking of s2, not p2.

So what I did what correct, right? I have mounted both partitions and the 
dataare there and I can read and write.
A.S.

--
Apostolos Syropoulos
Xanthi, Greece
 


  
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread James Carlson via openindiana-discuss
On 09/08/17 10:45, Andrew Gabriel wrote:
> On x86, p0 is the whole disk, and p1-4 are the 4 primary FDISK partitions.

I should mind my p's and s's.  Thanks, Andrew; you're right.  I was
thinking of s2, not p2.

-- 
James Carlson 42.703N 71.076W 

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread Andrew Gabriel

On 08/09/2017 14:44, James Carlson via openindiana-discuss wrote:

On 09/07/17 16:50, Apostolos Syropoulos via openindiana-discuss wrote:

Ok, but what is the problem?
What is the output and stderr of your zpool create cXtYdZp2 command?
Does it gives any error?

After more searching I concluded that the command should be
# zpool create -f utank c13t0d0s2

The logical Node was  /dev/rdsk/c13t0d0p0and format --> partition --> print 
showed that slice 2 is the one where I can store data.
I have also used fdisk to delete all partitions and thenparted to create the 
NTFS partition. In order to create thefile system I have used
# zfs create utank/External  #chown -R user:group /utank/External

Now I can use the partition!

p2 is, by convention, "whole disk" when using old-style partitioning.
If you're using that and you've partitioned the disk, I think you've
trashed your NTFS partition or (worse) you have an overlap.

Are you sure?  What exactly does "format" say about the partition map?



Um...

On x86, p0 is the whole disk, and p1-4 are the 4 primary FDISK partitions.

s0-15 are slices in the Solaris FDISK partition, with s2 by convention 
being the whole Solaris FDISK partition, overlapping all the other 
slices in the Solaris FDISK partition.



On SPARC, there is no FDISK partitioning. s0-7 are slices on the disk, 
and s2 is the whole disk by convention, overlapping all other slices on 
the disk.



--

Andrew


___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread Apostolos Syropoulos via openindiana-discuss
>p2 is, by convention, "whole disk" when using old-style partitioning.
>If you're using that and you've partitioned the disk, I think you've
>trashed your NTFS partition or (worse) you have an overlap.
>
>Are you sure?  What exactly does "format" say about the partition map?



This is what fdisk says about the disk:
   Cylinders
  Partition   Status    Type  Start   End   Length    %
  =   ==      =   ===   ==   ===
  1   Active    IFS: NTFS 0  45600    45601 75
  2 Solaris2   45600  60191    14592 24


and this is what the partition item of format says:
partition> p
Current partition table (original):
Total disk cylinders available: 14590 + 2 (reserved cylinders)

Part  Tag    Flag Cylinders Size    Blocks
  0 unassigned    wm   0    0 (0/0/0) 0
  1 unassigned    wm   0    0 (0/0/0) 0
  2 backup    wu   0 - 14589  447.06GB    (14590/0/0) 937553400
  3 unassigned    wm   0    0 (0/0/0) 0
  4 unassigned    wm   0    0 (0/0/0) 0
  5 unassigned    wm   0    0 (0/0/0) 0
  6 unassigned    wm   0    0 (0/0/0) 0
  7 unassigned    wm   0    0 (0/0/0) 0
  8   boot    wu   0 - 0   31.38MB    (1/0/0) 64260
  9 unassigned    wm   0    0 (0/0/0) 0

A.S.


  
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-08 Thread James Carlson via openindiana-discuss
On 09/07/17 16:50, Apostolos Syropoulos via openindiana-discuss wrote:
> 
>> Ok, but what is the problem?
>> What is the output and stderr of your zpool create cXtYdZp2 command?
>> Does it gives any error?
> 
> After more searching I concluded that the command should be
> # zpool create -f utank c13t0d0s2
> 
> The logical Node was  /dev/rdsk/c13t0d0p0and format --> partition --> print 
> showed that slice 2 is the one where I can store data. 
> I have also used fdisk to delete all partitions and thenparted to create the 
> NTFS partition. In order to create thefile system I have used  
> # zfs create utank/External  #chown -R user:group /utank/External
> 
> Now I can use the partition!

p2 is, by convention, "whole disk" when using old-style partitioning.
If you're using that and you've partitioned the disk, I think you've
trashed your NTFS partition or (worse) you have an overlap.

Are you sure?  What exactly does "format" say about the partition map?

-- 
James Carlson 42.703N 71.076W 

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-07 Thread Apostolos Syropoulos via openindiana-discuss

>Ok, but what is the problem?
>What is the output and stderr of your zpool create cXtYdZp2 command?
>Does it gives any error?

After more searching I concluded that the command should be
# zpool create -f utank c13t0d0s2

The logical Node was  /dev/rdsk/c13t0d0p0and format --> partition --> print 
showed that slice 2 is the one where I can store data. 
I have also used fdisk to delete all partitions and thenparted to create the 
NTFS partition. In order to create thefile system I have used  
# zfs create utank/External  #chown -R user:group /utank/External

Now I can use the partition!
A.S.



--
Apostolos Syropoulos
Xanthi, Greece


 
 


  
___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss


Re: [OpenIndiana-discuss] zpool on the second partition of an external disk

2017-09-07 Thread PÁSZTOR György
Hi,

"Apostolos Syropoulos via openindiana-discuss" 
 írta 2017-09-07 19:58-kor:
> Hello,
> I have an external USB disk. The disk is pre-formatted with NTFSbut I would 
> like to use it to  back up things from hard disks.An ideal solution would be 
> to create two partitions on thisdisks and have an NTFS partition and a second 
> partition whereI can create a zpool and then a zfs. I have used google to 
> find something useful but I could not find anything. 

Ok, but what is the problem?
What is the output and stderr of your zpool create cXtYdZp2 command?
Does it gives any error?

Cheers,
Gyu

___
openindiana-discuss mailing list
openindiana-discuss@openindiana.org
https://openindiana.org/mailman/listinfo/openindiana-discuss