• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1032
  • Last Modified:

Zfs nexenta: howto create log/cache

Please advise howto create cache/logdeive. When I try to create a mirrored volume for log, it says that I have to create a volume first ...?

The error exactly:

Cannot create volume only with log or spare disks: Please add disks to pool This configuration will be used to create volume.

log
0
janhoedt
Asked:
janhoedt
  • 3
  • 3
1 Solution
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
did you install Napp-it?

do you have spare disks, to add as log (ZIL) or cache (ARC) ?

to add cache (arc)

zpool add tank cache c4t2d0
zpool add tank cache c4t3d0

where tank is the pool name, and c4t2d0 and c4t3d0 are disks, cache cannot be mirrored.

to add log (zil)

zpool add newpool log mirror c0t6d0 c0t7d0

where newpool is the pool, and c0t6d0 c0t7d0 are disks
0
 
janhoedtAuthor Commented:
Thanks, but I really like the gui to configure, helps me to understand zfs concepts. Does screenshot above help to clarify my problem?
It says to add disks to pool, but when I add disks to pool, I don t see option to make log or cache disks.
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
you have to add logs and cache to a pool.
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

 
janhoedtAuthor Commented:
Both to same pool?
0
 
Andrew Hancock (VMware vExpert / EE MVE^2)VMware and Virtualization ConsultantCommented:
yes, both ZIL (log) and ARC (cache) are allocated to a pool.

if you open a console, using Nexenta GUI and type zpool status, you will see the status and disks added to your pool.

did you not add log and cache disks at creation?
0
 
janhoedtAuthor Commented:
Ok, found it: you need to "grow" the existing volume (for me the zraid on SATA disks), then you can choose disks for log and cache.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now