Searched refs:mirror (Results 1 - 25 of 33) sorted by relevance

12

/illumos-gate/usr/src/test/zfs-tests/tests/functional/slog/
H A Dslog_005_pos.ksh39 # 1. Create pool with mirror log devices.
50 for type in "" "mirror" "raidz" "raidz2"
55 log mirror $LDEV mirror $LDEV2
59 log_mustnot verify_slog_device $TESTPOOL $ldev 'ONLINE' 'mirror'
H A Dslog_011_neg.ksh39 # 1. Create pool with mirror log devices.
50 for type in "" "mirror" "raidz" "raidz2"
55 log mirror $LDEV mirror $LDEV2
60 log_must verify_slog_device $TESTPOOL $ldev 'OFFLINE' 'mirror'
64 log_must verify_slog_device $TESTPOOL $ldev 'ONLINE' 'mirror'
H A Dslog_012_neg.ksh36 # Pool can survive when one of mirror log device get corrupted
39 # 1. Create pool with mirror slog devices
46 log_assert "Pool can survive when one of mirror log device get corrupted."
49 for type in "" "mirror" "raidz" "raidz2"
54 log mirror $LDEV
67 log_must verify_slog_device $TESTPOOL $ldev 'UNAVAIL' 'mirror'
73 log_pass "Pool can survive when one of mirror log device get corrupted."
H A Dslog.kshlib95 # mirror:/disks/d ONLINE mirror:/disks/e ONLINE stripe:/disks/f ONLINE
103 {print "mirror:" $1 " " $2}
106 {print "mirror:" $1 " " $2}'
117 if [[ "$type" == 'mirror' ]]; then
118 log_note "Unexpected type: mirror"
129 mirror:$device)
/illumos-gate/usr/src/cmd/lvm/metassist/common/
H A Dvolume_devconfig.h51 #define ELEMENT_MIRROR "mirror"
420 * Set the device size (for volume, mirror, stripe, concat) in bytes
442 * Get the device size (for volume, mirror, stripe, concat) in bytes
576 * Set the number of subcomponents in mirror
578 * @param mirror
579 * a devconfig_t representing the mirror to modify
583 * mirror
592 extern int devconfig_set_mirror_nsubs(devconfig_t *mirror, uint16_t nsubs);
595 * Get number of subcomponents in mirror
601 * RETURN: number of subcomponents in mirror
[all...]
H A Dvolume_defaults.c441 devconfig_t *mirror = NULL; local
444 /* Get/create singleton mirror element for this disk set */
446 defaults, diskset, TYPE_MIRROR, &mirror, TRUE)) != 0) {
452 return (devconfig_set_mirror_nsubs(mirror, val));
485 devconfig_t *mirror; local
493 /* Get/create singleton mirror element for this disk set */
495 defaults, disksets[i], TYPE_MIRROR, &mirror, FALSE);
498 /* mirror found for this disk set */
502 mirror, val)) == 0) {
509 /* mirror no
554 devconfig_t *mirror = NULL; local
597 devconfig_t *mirror; local
665 devconfig_t *mirror = NULL; local
709 devconfig_t *mirror; local
778 devconfig_t *mirror = NULL; local
821 devconfig_t *mirror; local
889 devconfig_t *mirror = NULL; local
933 devconfig_t *mirror; local
[all...]
H A Dvolume_devconfig.c539 * Set the device size (for volume, mirror, stripe, concat) in bytes
577 * Get the device size (for volume, mirror, stripe, concat) in bytes
794 * Set the number of subcomponents in mirror
796 * @param mirror
797 * a devconfig_t representing the mirror to modify
801 * mirror
812 devconfig_t *mirror,
823 return (set_uint16(mirror->attributes, ATTR_MIRROR_NSUBMIRRORS, nsubs));
827 * Get number of subcomponents in mirror
833 * RETURN: number of subcomponents in mirror
811 devconfig_set_mirror_nsubs( devconfig_t *mirror, uint16_t nsubs) argument
843 devconfig_get_mirror_nsubs( devconfig_t *mirror, uint16_t *nsubs) argument
876 devconfig_set_mirror_read( devconfig_t *mirror, mirror_read_strategy_t read) argument
901 devconfig_get_mirror_read( devconfig_t *mirror, mirror_read_strategy_t *read) argument
940 devconfig_set_mirror_write( devconfig_t *mirror, mirror_write_strategy_t write) argument
965 devconfig_get_mirror_write( devconfig_t *mirror, mirror_write_strategy_t *write) argument
1004 devconfig_set_mirror_pass( devconfig_t *mirror, uint16_t pass) argument
1036 devconfig_get_mirror_pass( devconfig_t *mirror, uint16_t *pass) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/redundancy/
H A Dredundancy_003_pos.ksh40 # 2. Create mirror pool based on the virtual disk files.
44 # 6. Verify the data are correct to prove mirror can withstand N-1 devices
54 setup_test_env $TESTPOOL mirror $cnt
/illumos-gate/usr/src/test/zfs-tests/tests/functional/vdev_zaps/
H A Dvdev_zaps_003_pos.ksh23 # 1. Create a pool with a multi-disk mirror.
24 # 2. Verify that mirror has top ZAP but no leaf ZAP.
34 log_must zpool create -f $TESTPOOL mirror $DISKS
40 assert_top_zap $TESTPOOL "type: 'mirror'" "$conf"
H A Dvdev_zaps_007_pos.ksh20 # Verify that ZAPs are handled properly during mirror pool splitting.
23 # 1. Create a pool with a two-way mirror.
35 log_must zpool create -f $TESTPOOL mirror ${DISK_ARR[0]} ${DISK_ARR[1]}
42 orig_top=$(get_top_vd_zap "type: 'mirror'" $conf)
45 assert_zap_common $TESTPOOL "type: 'mirror'" "top" $orig_top
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_add/
H A Dzpool_add_002_pos.ksh62 create_pool "$TESTPOOL" mirror "${disk}s${SLICE0}" "${disk}s${SLICE1}"
H A Dzpool_add_001_pos.ksh60 set -A keywords "" "mirror" "raidz" "raidz1" "spare"
101 mirror)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_export/
H A Dzpool_export_004_pos.ksh39 # 1. Create two mirror pools with same spare.
81 log_must zpool create $TESTPOOL1 mirror $vdev0 $vdev1 spare $vdev4
82 log_must zpool create $TESTPOOL2 mirror $vdev2 $vdev3 spare $vdev4
/illumos-gate/usr/src/cmd/lvm/metassist/xml/
H A Dxml_convert.c203 devconfig_t *mirror, char *attr, char *value);
205 devconfig_t *mirror, char *attr, char *value);
207 devconfig_t *mirror, char *attr, char *value);
209 devconfig_t *mirror, char *attr, char *value);
218 devconfig_t *mirror, char *attr, char **value);
220 devconfig_t *mirror, char *attr, char **value);
222 devconfig_t *mirror, char *attr, char **value);
315 /* <mirror> attributes */
935 * mirror what's expected by the DTD).
1848 * Validate and set the nsubmirrors attribute in the given mirror
1863 validate_set_mirror_nsubmirrors( devconfig_t *mirror, char *attr, char *value) argument
1898 validate_set_mirror_read( devconfig_t *mirror, char *attr, char *value) argument
1941 validate_set_mirror_write( devconfig_t *mirror, char *attr, char *value) argument
1980 validate_set_mirror_passnum( devconfig_t *mirror, char *attr, char *value) argument
2130 get_as_string_mirror_passnum( devconfig_t *mirror, char *attr, char **value) argument
2162 get_as_string_mirror_read( devconfig_t *mirror, char *attr, char **value) argument
2197 get_as_string_mirror_write( devconfig_t *mirror, char *attr, char **value) argument
[all...]
/illumos-gate/usr/src/cmd/lvm/util/
H A Dmetastat.c68 md_mirror_t *mirror);
77 static char *get_sm_state(md_mirror_t *mirror, int i,
1081 /* underlying mirror components */
1341 * Concise mirror output.
1344 print_concise_mirror(int indent, mdsetname_t *sp, md_mirror_t *mirror) argument
1348 md_status_t status = mirror->common.state;
1350 if (mirror == NULL)
1353 print_concise_entry(indent, mirror->common.namep->cname,
1354 mirror->common.size, 'm');
1360 if (mirror
1587 md_mirror_t *mirror; local
1686 get_sm_state(md_mirror_t *mirror, int i, md_status_t mirror_status, uint_t tstate) argument
[all...]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/bootfs/
H A Dbootfs_006_pos.ksh40 # 1. create pools of each vdev type (raid, raidz, raidz2, mirror + hotspares)
112 # mirror
113 log_must zpool create $TESTPOOL mirror $VDEV1 $VDEV2
116 # mirror + hotspare
117 log_must zpool create $TESTPOOL mirror $VDEV1 $VDEV2 spare $VDEV3
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cache/
H A Dcache.kshlib94 # mirror:/disks/d ONLINE mirror:/disks/e ONLINE stripe:/disks/f ONLINE
102 {print "mirror:" $1 " " $2}
105 {print "mirror:" $1 " " $2}'
116 if [[ "$type" == 'mirror' ]]; then
117 log_note "Unexpected type: mirror"
128 mirror:$device)
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_expand/
H A Dzpool_expand_003_neg.ksh72 for type in " " mirror raidz raidz2; do
H A Dzpool_expand_001_pos.ksh72 for type in " " mirror raidz raidz2; do
114 elif [[ $type == "mirror" ]]; then
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_import/
H A Dzpool_import_006_pos.ksh37 # For mirror, N-1 destroyed pools devices was removed or used by other
41 # 1. Create mirror with N disks.
42 # 2. Destroy this mirror.
43 # 3. Create another pool with N-1 disks which was used by this mirror.
44 # 4. Verify import mirror can succeed.
62 log_assert "For mirror, N-1 destroyed pools devices was removed or used " \
66 log_must zpool create $TESTPOOL1 mirror $VDEV0 $VDEV1 $VDEV2
83 log_pass "zpool import -D mirror passed."
H A Dzpool_import_010_pos.ksh40 # 1. Create a 5 ways mirror pool A with dev0/1/2/3/4, then destroy it.
71 log_must zpool create $poolA mirror $VDEV0 $VDEV1 $VDEV2 $VDEV3 $VDEV4
/illumos-gate/usr/src/cmd/lvm/metassist/layout/
H A Dlayout_mirror.c121 devconfig_t **mirror);
149 * nbytes - desired mirror size
156 * PURPOSE: Main driver to handle a mirror request that does not specify
198 devconfig_t *mirror = NULL; local
211 error = assemble_mirror(request, subs, &mirror);
214 if ((item = dlist_new_item(mirror)) == NULL) {
222 devconfig_get_components(mirror));
259 * PURPOSE: Processes the input mirror request specifying explicit layout
267 * If the mirror does not specify a size, assume the first explicit
269 * specify a size or components, use the mirror siz
425 devconfig_t *mirror = NULL; local
485 assemble_mirror( devconfig_t *request, dlist_t *subs, devconfig_t **mirror) argument
[all...]
/illumos-gate/usr/src/cmd/avs/ncall/
H A Dncalladm.c230 int mnode; /* mirror nodeid */
387 * determine which slot is the mirror node.
411 * Don't print the mirror twice.
498 * Return the mirror nodeid via the mirrorp pointer.
509 int mirror; local
513 * Get this host info and mirror nodeid.
515 mirror = ioctl(ifd, NC_IOC_GETNODE, &thisnode);
517 if (mirror < 0) {
540 *mirrorp = mirror;
550 * Although we know the mirror nodei
[all...]
/illumos-gate/usr/src/uts/common/avs/ncall/
H A Dncall.c345 int mirror; local
384 mirror = ncall_mirror(ncall_nodeinfo.nc_nodeid);
389 if (mirror == -1)
390 mirror = 0;
391 *rvalp = mirror;
/illumos-gate/usr/src/test/zfs-tests/tests/functional/cli_root/zpool_create/
H A Dzpool_create_001_pos.ksh70 set -A keywords "" "mirror" "raidz" "raidz1"
118 mirror)

Completed in 98 milliseconds

12