Hi,
this is my first mail here. I''m currently evaluating Solaris with
VMware.
I administer a few Linux servers at my company and I''m running Linux on
my Laptop so I thought Solaris would be easy... :)
Ok. I think I''m getting into it but I have one problem I don''t
really understand:
I''ve created a raidz ZFS pool with 3 drives and each has a capacity of
1GB.
When I enter zfs list it shows me a size of 3GB. Is that correct? I thought
raidz is working like
raid 5 which should give me about 2GB of disc space or not?
At first I thought that the problems are relating to VMware but then I found
this blog post:
http://www.cuddletech.com/blog/pivot/entry.php?id=446
And here the outputs listed show the same problem. So I tried his example and it
gave me the same numbers. And now something really strange:
When I do the things below, I get a raidz with two active disks with 128M each
but a still useful (although DEGRADED) 370M total capacity.
So my question...am I totally not getting it or is this a bug? I hope, someone
can bring light into this :)
Thanks
Dominik
HERE THE COMMAND SEQUENCE
bash-3.00# ls -lh /vdev/
total 1049152
-rw------T 1 root root 128M Feb 24 19:35 disk1
-rw------T 1 root root 128M Feb 24 19:35 disk2
-rw------T 1 root root 128M Feb 24 19:35 disk3
-rw------T 1 root root 128M Feb 24 19:34 disk4
bash-3.00# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
myraid 370M 249K 370M 0% ONLINE -
bash-3.00# zpool status
pool: myraid
state: ONLINE
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
myraid ONLINE 0 0 0
raidz ONLINE 0 0 0
/vdev/disk1 ONLINE 0 0 0
/vdev/disk2 ONLINE 0 0 0
/vdev/disk3 ONLINE 0 0 0
bash-3.00# zpool offline myraid /vdev/disk1
Bringing device /vdev/disk1 offline
bash-3.00# zpool status
pool: myraid
state: DEGRADED
status: One or more devices has been taken offline by the adminstrator.
Sufficient replicas exist for the pool to continue functioning in a
degraded state.
action: Online the device using ''zpool online'' or replace the
device with
''zpool replace''.
scrub: none requested
config:
NAME STATE READ WRITE CKSUM
myraid DEGRADED 0 0 0
raidz DEGRADED 0 0 0
/vdev/disk1 OFFLINE 0 0 0
/vdev/disk2 ONLINE 0 0 0
/vdev/disk3 ONLINE 0 0 0
bash-3.00# zpool list
NAME SIZE USED AVAIL CAP HEALTH ALTROOT
myraid 370M 249K 370M 0% DEGRADED -