Hi folks, I need to manage volumes like LVM does on Linux or AIX, and I think that ZFS can solve this issue. I read the SVM specification and certainly it doesn''t will be the solution that I''ll adopt. I don''t have Veritas here. I created a pool with name "black" and a volume "lv00", then created a filesystem with ''newfs'' command: #newfs /dev/zvol/rdsk/black/lv00 is this the right way ? What''s is the best way to manage volumes in Solaris? Do you have a URL or document describing this !? cheers, TS
Thiago Sobral schrieb:> Hi folks, > > I need to manage volumes like LVM does on Linux or AIX, and I think that > ZFS can solve this issue. > > I read the SVM specification and certainly it doesn''t will be the > solution that I''ll adopt. I don''t have Veritas here. >Why do you think it doesn''t fit your needs? What would you do on Linux or AIX that you think SVM cannot do?> I created a pool with name "black" and a volume "lv00", then created a > filesystem with ''newfs'' command: > #newfs /dev/zvol/rdsk/black/lv00 > > is this the right way ? > What''s is the best way to manage volumes in Solaris? > Do you have a URL or document describing this !? >You can do it this way? But why would you? Doing a $ zfs create black/lv00 would give you a filesystem named lv00. I think you should investigate the docs a little bit more closely or be a little bit more precise when posting your question. What are you actually trying to accomplish?> cheers, > > TS > >- Thomas
Thiago Sobral wrote:> Hi folks, > > I need to manage volumes like LVM does on Linux or AIX, and I think that > ZFS can solve this issue. > > I read the SVM specification and certainly it doesn''t will be the > solution that I''ll adopt. I don''t have Veritas here.Specifically what is SVM missing that you need ?> I created a pool with name "black" and a volume "lv00", then created a > filesystem with ''newfs'' command: > #newfs /dev/zvol/rdsk/black/lv00 > > is this the right way ? > What''s is the best way to manage volumes in Solaris? > Do you have a URL or document describing this !?Why do you want UFS at all why not just create a ZFS filesystem dataset? -- Darren J Moffat
Hey Thiago, SVM is a direct replacement for LVM. Also, you''ll notice about a 30% performance boost if you move from LVM to SVM. At least we did when we moved a couple of years ago. -J On Jan 21, 2008 8:09 AM, Thiago Sobral <sobral at blacklevel.com.br> wrote:> Hi folks, > > I need to manage volumes like LVM does on Linux or AIX, and I think that > ZFS can solve this issue. > > I read the SVM specification and certainly it doesn''t will be the > solution that I''ll adopt. I don''t have Veritas here. > > I created a pool with name "black" and a volume "lv00", then created a > filesystem with ''newfs'' command: > #newfs /dev/zvol/rdsk/black/lv00 > > is this the right way ? > What''s is the best way to manage volumes in Solaris? > Do you have a URL or document describing this !? > > cheers, > > TS > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >
http://docs.sun.com/app/docs/doc/819-5461 On Jan 21, 2008 5:09 PM, Thiago Sobral <sobral at blacklevel.com.br> wrote:> Hi folks, > > I need to manage volumes like LVM does on Linux or AIX, and I think that > ZFS can solve this issue. > > I read the SVM specification and certainly it doesn''t will be the > solution that I''ll adopt. I don''t have Veritas here. > > I created a pool with name "black" and a volume "lv00", then created a > filesystem with ''newfs'' command: > #newfs /dev/zvol/rdsk/black/lv00 > > is this the right way ? > What''s is the best way to manage volumes in Solaris? > Do you have a URL or document describing this !? > > cheers, > > TS > > > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discuss >-- Louwtjie Burger Technical Specialist Office Tel: +27 (021) 975 6434 Cell: +27 (0)83 457 2551 http://www.breakpoint.co.za Breakpoint Solutions
Thiago Sobral schrieb:> Hi Thomas, > > Thomas Maier-Komor escreveu: >> Thiago Sobral schrieb: >>> >>> I need to manage volumes like LVM does on Linux or AIX, and I think >>> that ZFS can solve this issue. >>> >>> I read the SVM specification and certainly it doesn''t will be the >>> solution that I''ll adopt. I don''t have Veritas here. >>> >> >> Why do you think it doesn''t fit your needs? What would you do on Linux >> or AIX that you think SVM cannot do? > On Linux and AIX it''s possible to create volume groups and create > logical volumes inside it, so I can expand or reduce the logical volume. > How can I do the same with SVM ? > If I create a slice (c0t0d0s0) with 100GB, can I create two metadevices > inside (d0 and d1) and grow them ? I think that I should use > softpartitions. Shouldn''t I !?AFAIK, you can create soft partitions and grow them, but shrinking is not possible. Use "metattach d0 10g" to enlarge a logical volume. After that use growfs to grow the filesystem within the enlarged volume. This is documented here: http://docs.sun.com/app/docs/doc/816-4520/tasks-softpart-1?a=view>> >> $ zfs create black/lv00 >> would give you a filesystem named lv00. > Ok, but this filesystem get the whole size of the pool and I want to > limit this (i.e) 10GB.. if later I need, I grow this..No. The newly created filesystem will only consume as much as currently needed. I.e. it grows and shrinks automagically within the pool. Additionally, you can reserve space for the filesystem or an upper boundary of how much it may consume using somethink like "zfs set reservation=16G black/lv00" and "zfs set quota=20G black/lv00". IMO this is more flexible than anything you will get with any logical volume manager.>> >> >> I think you should investigate the docs a little bit more closely or >> be a little bit more precise when posting your question. What are you >> actually trying to accomplish? > I reading Sun Docs, but I didn''t found satisfactory answers. > Do you have a great document or URL ?Where did you look? Yes, docs.sun.com is pretty exhaustive. But there are always "tasks" sections (see above referenced doc example), where you can look for certain standard tasks that provide a step by step guide how to realize things. I think this is pretty good. HTH, Thomas
My 2 cents ... read somewhere that you should not be running LVM on top of ZFS ... something about additional overhead. This message posted from opensolaris.org
Kava schrieb:> My 2 cents ... read somewhere that you should not be running LVM on top of ZFS ... something about additional overhead. > > > This message posted from opensolaris.org > _______________________________________________ > zfs-discuss mailing list > zfs-discuss at opensolaris.org > http://mail.opensolaris.org/mailman/listinfo/zfs-discussJust for clarification: I was talking about different aspects of SVM and ZFS separately. I never recommended that you should run LVM on top of ZFS. I said that it might be possible, but I would rather do something else... - Thomas