Avatar of janhoedt
janhoedt
 asked on

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
VMware

Avatar of undefined
Last Comment
janhoedt

8/22/2022 - Mon
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

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
janhoedt

ASKER
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.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

you have to add logs and cache to a pool.
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
janhoedt

ASKER
Both to same pool?
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
janhoedt

ASKER
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.