Jan Hlodan
2009-Feb-14 11:58 UTC
[zfs-discuss] SPAM *** Re: [osol-help] Adding a new partition to the system
Antonio wrote:> Hi all, > > First of all let me say that, after a few days using it (and after several *years* of using Linux daily), I''m delighted with OpenSolaris 8.11. It''s gonna be the OS of my choice. > > The fact is that I installed it in a partition of 16Gb in my hard disk and that I''d like to add another partition to the system (I have different partitions with Linux and Windows and some others). > > So the questions are: > > 1.- How do I add an existing partition to OpenSolaris? (Should I change the partition type or something? Shall I "grow" ZFS or shall I mount the extra partition somewhere else?) > >yes. You can create a new zpool from your free/spare partition. I had the same problem. I wanted to use Linux partition as a mirror. So here is how to: Follow this blog - http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in * install FSWpart and FSWfsmisc * run prtpart (find out your disk ID) * figure out partitions ID: prtpart "disk ID" -ldevs * create zpool from linux partition e.g. zpool create trunk /dev/dsk/c9d0p3 * check it out: zpool list or zpool status> 2.- Would you please recommend a good introduction to Solaris/OpenSolaris? I''m used to Linux and I''d like to get up to speed with OpenSolaris. >sure, OpenSolaris Bible :) http://blogs.sun.com/observatory/entry/two_more_chapters_from_the Hope this helps, Regards, Jan Hlodan> Thanks in advance, > Antonio >
Antonio
2009-Feb-14 12:17 UTC
[zfs-discuss] [osol-help] Adding a new partition to the system
Hi Jan, I tried out what you say long ago, but zfs fails on pool creation. This is, when I issue the zpool create trunk /dev/dsk/c9d0p3 the command fails saying that there''s no such file or directory. And the disk is correct!! What I think is that /dev/dsk/c9d0p3 is a symbolic name used by FSWpart, and it''s not a valid device name for zpool. Thanks anyway, Antonio Jan Hlodan escribi?:> Antonio wrote: >> Hi all, >> >> First of all let me say that, after a few days using it (and after several *years* of using Linux daily), I''m delighted with OpenSolaris 8.11. It''s gonna be the OS of my choice. >> >> The fact is that I installed it in a partition of 16Gb in my hard disk and that I''d like to add another partition to the system (I have different partitions with Linux and Windows and some others). >> >> So the questions are: >> >> 1.- How do I add an existing partition to OpenSolaris? (Should I change the partition type or something? Shall I "grow" ZFS or shall I mount the extra partition somewhere else?) >> >> > yes. You can create a new zpool from your free/spare partition. > I had the same problem. I wanted to use Linux partition as a mirror. > So here is how to: > Follow this blog - > http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in > * install FSWpart and FSWfsmisc > * run prtpart (find out your disk ID) > * figure out partitions ID: prtpart "disk ID" -ldevs > * create zpool from linux partition e.g. zpool create trunk /dev/dsk/c9d0p3 > * check it out: zpool list or zpool status > > >> 2.- Would you please recommend a good introduction to Solaris/OpenSolaris? I''m used to Linux and I''d like to get up to speed with OpenSolaris. >> > sure, OpenSolaris Bible :) > http://blogs.sun.com/observatory/entry/two_more_chapters_from_the > > Hope this helps, > > Regards, > > Jan Hlodan > >> Thanks in advance, >> Antonio >> >
Jan Hlodan
2009-Feb-14 17:05 UTC
[zfs-discuss] SPAM *** Re: [osol-help] Adding a new partition to the system
Hi Antonio, did you try to recreate this partition e.g. with Gparted? Maybe is something wrong with this partition. Can you also post what "prtpart "disk ID" -ldevs" says? Regards, Jan Hlodan Antonio wrote:> Hi Jan, > > I tried out what you say long ago, but zfs fails on pool creation. > > This is, when I issue the zpool create trunk /dev/dsk/c9d0p3 the > command fails saying that there''s no such file or directory. And the > disk is correct!! > > What I think is that /dev/dsk/c9d0p3 is a symbolic name used by > FSWpart, and it''s not a valid device name for zpool. > > Thanks anyway, > Antonio > > Jan Hlodan escribi?: >> Antonio wrote: >>> Hi all, >>> >>> First of all let me say that, after a few days using it (and after >>> several *years* of using Linux daily), I''m delighted with >>> OpenSolaris 8.11. It''s gonna be the OS of my choice. >>> >>> The fact is that I installed it in a partition of 16Gb in my hard >>> disk and that I''d like to add another partition to the system (I >>> have different partitions with Linux and Windows and some others). >>> >>> So the questions are: >>> >>> 1.- How do I add an existing partition to OpenSolaris? (Should I >>> change the partition type or something? Shall I "grow" ZFS or shall >>> I mount the extra partition somewhere else?) >>> >>> >> yes. You can create a new zpool from your free/spare partition. >> I had the same problem. I wanted to use Linux partition as a mirror. >> So here is how to: >> Follow this blog - >> http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in >> * install FSWpart and FSWfsmisc >> * run prtpart (find out your disk ID) >> * figure out partitions ID: prtpart "disk ID" -ldevs >> * create zpool from linux partition e.g. zpool create trunk >> /dev/dsk/c9d0p3 >> * check it out: zpool list or zpool status >> >> >>> 2.- Would you please recommend a good introduction to >>> Solaris/OpenSolaris? I''m used to Linux and I''d like to get up to >>> speed with OpenSolaris. >>> >> sure, OpenSolaris Bible :) >> http://blogs.sun.com/observatory/entry/two_more_chapters_from_the >> >> Hope this helps, >> >> Regards, >> >> Jan Hlodan >> >>> Thanks in advance, >>> Antonio >>> >>
Antonio
2009-Feb-14 18:29 UTC
[zfs-discuss] [osol-help] Adding a new partition to the system
I can mount those partitions well using ext2fs, so I assume I won''t need to run gparted at all. This is what prtpart says about my stuff. Kind regards, Antonio root at antonio:~# prtpart /dev/rdsk/c3d0p0 -ldevs Fdisk information for device /dev/rdsk/c3d0p0 ** NOTE ** /dev/dsk/c3d0p0 - Physical device referring to entire physical disk /dev/dsk/c3d0p1 - p4 - Physical devices referring to the 4 primary partitions /dev/dsk/c3d0p5 ... - Virtual devices referring to logical partitions Virtual device names can be used to access EXT2 and NTFS on logical partitions /dev/dsk/c3d0p1 Solaris x86 /dev/dsk/c3d0p2 Solaris x86 /dev/dsk/c3d0p3 Solaris x86 /dev/dsk/c3d0p4 DOS Extended /dev/dsk/c3d0p5 Linux native /dev/dsk/c3d0p6 Linux native /dev/dsk/c3d0p7 Linux native /dev/dsk/c3d0p8 Linux native /dev/dsk/c3d0p9 Linux swap /dev/dsk/c3d0p10 Solaris x86 Jan Hlodan escribi?:> Hi Antonio, > > did you try to recreate this partition e.g. with Gparted? > Maybe is something wrong with this partition. > Can you also post what "prtpart "disk ID" -ldevs" says? > > Regards, > > Jan Hlodan > > Antonio wrote: >> Hi Jan, >> >> I tried out what you say long ago, but zfs fails on pool creation. >> >> This is, when I issue the zpool create trunk /dev/dsk/c9d0p3 the >> command fails saying that there''s no such file or directory. And the >> disk is correct!! >> >> What I think is that /dev/dsk/c9d0p3 is a symbolic name used by >> FSWpart, and it''s not a valid device name for zpool. >> >> Thanks anyway, >> Antonio >> >> Jan Hlodan escribi?: >>> Antonio wrote: >>>> Hi all, >>>> >>>> First of all let me say that, after a few days using it (and after >>>> several *years* of using Linux daily), I''m delighted with >>>> OpenSolaris 8.11. It''s gonna be the OS of my choice. >>>> >>>> The fact is that I installed it in a partition of 16Gb in my hard >>>> disk and that I''d like to add another partition to the system (I >>>> have different partitions with Linux and Windows and some others). >>>> >>>> So the questions are: >>>> >>>> 1.- How do I add an existing partition to OpenSolaris? (Should I >>>> change the partition type or something? Shall I "grow" ZFS or shall >>>> I mount the extra partition somewhere else?) >>>> >>>> >>> yes. You can create a new zpool from your free/spare partition. >>> I had the same problem. I wanted to use Linux partition as a mirror. >>> So here is how to: >>> Follow this blog - >>> http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in >>> * install FSWpart and FSWfsmisc >>> * run prtpart (find out your disk ID) >>> * figure out partitions ID: prtpart "disk ID" -ldevs >>> * create zpool from linux partition e.g. zpool create trunk >>> /dev/dsk/c9d0p3 >>> * check it out: zpool list or zpool status >>> >>> >>>> 2.- Would you please recommend a good introduction to >>>> Solaris/OpenSolaris? I''m used to Linux and I''d like to get up to >>>> speed with OpenSolaris. >>>> >>> sure, OpenSolaris Bible :) >>> http://blogs.sun.com/observatory/entry/two_more_chapters_from_the >>> >>> Hope this helps, >>> >>> Regards, >>> >>> Jan Hlodan >>> >>>> Thanks in advance, >>>> Antonio >>>> >>> >
Jan Hlodan
2009-Feb-14 21:15 UTC
[zfs-discuss] SPAM *** Re: [osol-help] Adding a new partition to the system
Antonio wrote:> I can mount those partitions well using ext2fs, so I assume I won''t > need to run gparted at all. > > This is what prtpart says about my stuff. > > Kind regards, > Antonio > > root at antonio:~# prtpart /dev/rdsk/c3d0p0 -ldevs > > Fdisk information for device /dev/rdsk/c3d0p0 > > ** NOTE ** > /dev/dsk/c3d0p0 - Physical device referring to entire physical disk > /dev/dsk/c3d0p1 - p4 - Physical devices referring to the 4 primary > partitions > /dev/dsk/c3d0p5 ... - Virtual devices referring to logical partitions > > Virtual device names can be used to access EXT2 and NTFS on logical > partitions > > /dev/dsk/c3d0p1 Solaris x86 > /dev/dsk/c3d0p2 Solaris x86 > /dev/dsk/c3d0p3 Solaris x86 > /dev/dsk/c3d0p4 DOS Extended > /dev/dsk/c3d0p5 Linux native > /dev/dsk/c3d0p6 Linux native > /dev/dsk/c3d0p7 Linux native > /dev/dsk/c3d0p8 Linux native > /dev/dsk/c3d0p9 Linux swap > /dev/dsk/c3d0p10 Solaris x86 >Hi Antonio, and what does ''zpool create'' command say? $ pfexec zpool create test /dev/dsk/c3d0p5 or $ pfexec zpool create -f test /dev/dsk/c3d0p5 Regards, jh> > > Jan Hlodan escribi?: >> Hi Antonio, >> >> did you try to recreate this partition e.g. with Gparted? >> Maybe is something wrong with this partition. >> Can you also post what "prtpart "disk ID" -ldevs" says? >> >> Regards, >> >> Jan Hlodan >> >> Antonio wrote: >>> Hi Jan, >>> >>> I tried out what you say long ago, but zfs fails on pool creation. >>> >>> This is, when I issue the zpool create trunk /dev/dsk/c9d0p3 the >>> command fails saying that there''s no such file or directory. And the >>> disk is correct!! >>> >>> What I think is that /dev/dsk/c9d0p3 is a symbolic name used by >>> FSWpart, and it''s not a valid device name for zpool. >>> >>> Thanks anyway, >>> Antonio >>> >>> Jan Hlodan escribi?: >>>> Antonio wrote: >>>>> Hi all, >>>>> >>>>> First of all let me say that, after a few days using it (and after >>>>> several *years* of using Linux daily), I''m delighted with >>>>> OpenSolaris 8.11. It''s gonna be the OS of my choice. >>>>> >>>>> The fact is that I installed it in a partition of 16Gb in my hard >>>>> disk and that I''d like to add another partition to the system (I >>>>> have different partitions with Linux and Windows and some others). >>>>> >>>>> So the questions are: >>>>> >>>>> 1.- How do I add an existing partition to OpenSolaris? (Should I >>>>> change the partition type or something? Shall I "grow" ZFS or >>>>> shall I mount the extra partition somewhere else?) >>>>> >>>>> >>>> yes. You can create a new zpool from your free/spare partition. >>>> I had the same problem. I wanted to use Linux partition as a mirror. >>>> So here is how to: >>>> Follow this blog - >>>> http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in >>>> * install FSWpart and FSWfsmisc >>>> * run prtpart (find out your disk ID) >>>> * figure out partitions ID: prtpart "disk ID" -ldevs >>>> * create zpool from linux partition e.g. zpool create trunk >>>> /dev/dsk/c9d0p3 >>>> * check it out: zpool list or zpool status >>>> >>>> >>>>> 2.- Would you please recommend a good introduction to >>>>> Solaris/OpenSolaris? I''m used to Linux and I''d like to get up to >>>>> speed with OpenSolaris. >>>>> >>>> sure, OpenSolaris Bible :) >>>> http://blogs.sun.com/observatory/entry/two_more_chapters_from_the >>>> >>>> Hope this helps, >>>> >>>> Regards, >>>> >>>> Jan Hlodan >>>> >>>>> Thanks in advance, >>>>> Antonio >>>>> >>>> >>
Antonio
2009-Feb-15 00:27 UTC
[zfs-discuss] [osol-help] Adding a new partition to the system
root at antonio:~# zpool create -f test /dev/dsk/c3d0p9 cannot open ''/dev/dsk/c3d0p9'': No such file or directory Jan Hlodan escribi?:> Antonio wrote: >> I can mount those partitions well using ext2fs, so I assume I won''t >> need to run gparted at all. >> >> This is what prtpart says about my stuff. >> >> Kind regards, >> Antonio >> >> root at antonio:~# prtpart /dev/rdsk/c3d0p0 -ldevs >> >> Fdisk information for device /dev/rdsk/c3d0p0 >> >> ** NOTE ** >> /dev/dsk/c3d0p0 - Physical device referring to entire physical disk >> /dev/dsk/c3d0p1 - p4 - Physical devices referring to the 4 primary >> partitions >> /dev/dsk/c3d0p5 ... - Virtual devices referring to logical partitions >> >> Virtual device names can be used to access EXT2 and NTFS on logical >> partitions >> >> /dev/dsk/c3d0p1 Solaris x86 >> /dev/dsk/c3d0p2 Solaris x86 >> /dev/dsk/c3d0p3 Solaris x86 >> /dev/dsk/c3d0p4 DOS Extended >> /dev/dsk/c3d0p5 Linux native >> /dev/dsk/c3d0p6 Linux native >> /dev/dsk/c3d0p7 Linux native >> /dev/dsk/c3d0p8 Linux native >> /dev/dsk/c3d0p9 Linux swap >> /dev/dsk/c3d0p10 Solaris x86 >> > Hi Antonio, > > and what does ''zpool create'' command say? > $ pfexec zpool create test /dev/dsk/c3d0p5 > or > $ pfexec zpool create -f test /dev/dsk/c3d0p5 > > Regards, > > jh > >> >> >> Jan Hlodan escribi?: >>> Hi Antonio, >>> >>> did you try to recreate this partition e.g. with Gparted? >>> Maybe is something wrong with this partition. >>> Can you also post what "prtpart "disk ID" -ldevs" says? >>> >>> Regards, >>> >>> Jan Hlodan >>> >>> Antonio wrote: >>>> Hi Jan, >>>> >>>> I tried out what you say long ago, but zfs fails on pool creation. >>>> >>>> This is, when I issue the zpool create trunk /dev/dsk/c9d0p3 the >>>> command fails saying that there''s no such file or directory. And the >>>> disk is correct!! >>>> >>>> What I think is that /dev/dsk/c9d0p3 is a symbolic name used by >>>> FSWpart, and it''s not a valid device name for zpool. >>>> >>>> Thanks anyway, >>>> Antonio >>>> >>>> Jan Hlodan escribi?: >>>>> Antonio wrote: >>>>>> Hi all, >>>>>> >>>>>> First of all let me say that, after a few days using it (and after >>>>>> several *years* of using Linux daily), I''m delighted with >>>>>> OpenSolaris 8.11. It''s gonna be the OS of my choice. >>>>>> >>>>>> The fact is that I installed it in a partition of 16Gb in my hard >>>>>> disk and that I''d like to add another partition to the system (I >>>>>> have different partitions with Linux and Windows and some others). >>>>>> >>>>>> So the questions are: >>>>>> >>>>>> 1.- How do I add an existing partition to OpenSolaris? (Should I >>>>>> change the partition type or something? Shall I "grow" ZFS or >>>>>> shall I mount the extra partition somewhere else?) >>>>>> >>>>>> >>>>> yes. You can create a new zpool from your free/spare partition. >>>>> I had the same problem. I wanted to use Linux partition as a mirror. >>>>> So here is how to: >>>>> Follow this blog - >>>>> http://blogs.sun.com/pradhap/entry/mount_ntfs_ext2_ext3_in >>>>> * install FSWpart and FSWfsmisc >>>>> * run prtpart (find out your disk ID) >>>>> * figure out partitions ID: prtpart "disk ID" -ldevs >>>>> * create zpool from linux partition e.g. zpool create trunk >>>>> /dev/dsk/c9d0p3 >>>>> * check it out: zpool list or zpool status >>>>> >>>>> >>>>>> 2.- Would you please recommend a good introduction to >>>>>> Solaris/OpenSolaris? I''m used to Linux and I''d like to get up to >>>>>> speed with OpenSolaris. >>>>>> >>>>> sure, OpenSolaris Bible :) >>>>> http://blogs.sun.com/observatory/entry/two_more_chapters_from_the >>>>> >>>>> Hope this helps, >>>>> >>>>> Regards, >>>>> >>>>> Jan Hlodan >>>>> >>>>>> Thanks in advance, >>>>>> Antonio >>>>>> >>>>> >>> >
Kees Nuyt
2009-Feb-15 21:47 UTC
[zfs-discuss] [osol-help] Adding a new partition to the system
On Sun, 15 Feb 2009 01:27:10 +0100, Antonio <antonio at antonioshome.net> wrote:>root at antonio:~# zpool create -f test /dev/dsk/c3d0p9 >cannot open ''/dev/dsk/c3d0p9'': No such file or directoryI would: Clean obsolete device links : devfsadm -Cv Make sure all sensed devices have a correct link : devfsadm -v ZFS knows where to find devices, the name part suffices: zpool create -f test c3d0p9 HTH -- ( Kees Nuyt ) c[_]