Lines Matching defs:volume

142 static int	check_resource_group(char *volume);
498 * iiadm -g grp -m volume (move volume into group)
563 usage(gettext("must specify volume with -u"));
583 usage(gettext("must specify volume with -c"));
605 usage(gettext("must specify overflow volume " \
799 find_next_cf_line(char *volume, int next)
805 if (strncmp(volume, cf_line.master_vol, DSW_NAMELEN) == 0 ||
806 strncmp(volume, cf_line.shadow_vol, DSW_NAMELEN) == 0 ||
807 strncmp(volume, cf_line.bitmap_vol, DSW_NAMELEN) == 0)
813 find_any_cf_line(char *volume)
815 return (find_next_cf_line(volume, 1));
819 find_next_shadow_line(char *volume, int next)
825 if (strncmp(volume, cf_line.shadow_vol, DSW_NAMELEN) == 0)
831 find_shadow_line(char *volume)
833 return (find_next_shadow_line(volume, 1));
908 char *volume, dsw_config_t *conf, dsw_ioctl_t *io, int next)
912 if (!find_next_cf_line(volume, next)) {
926 find_matching_cf_line(char *volume, dsw_config_t *conf, dsw_ioctl_t *io)
928 return (find_next_matching_cf_line(volume, conf, io, 1));
932 find_shadow_config(char *volume, dsw_config_t *conf, dsw_ioctl_t *io)
946 if (strncmp(volume, c->shadow_vol, DSW_NAMELEN) == 0) {
1025 * not an imported shadow volume
1151 * Determine if we need to set a cfg_resource based on this volume
1154 check_resource_group(char *volume)
1167 if (check_diskgroup(volume, diskgroup)) {
1186 cfg_cluster_tag, diskgroup, volume);
1226 * Carry out cluster based checks for a specified volume, or just
1335 sp = "Set/volume not found";
1494 gettext("\t-d v\t\tdisable volume"));
1496 gettext("\t-u s v\t\tupdate shadow volume"));
1498 gettext("\t-u m v\t\tupdate master volume"));
1500 gettext("\t-c s v\t\tcopy to shadow volume"));
1502 gettext("\t-c m v\t\tcopy to master volume"));
1504 gettext("\t-a v\t\tabort copy volume"));
1506 gettext("\t-w v\t\twait volume"));
1508 gettext("\t-i v\t\tdisplay volume status"));
1510 gettext("\t-i all\t\tdisplay all volume status"));
1514 gettext("\t-R v\t\treset volume"));
1516 gettext("\t-A o v\t\tattach overflow to volume"));
1518 gettext("\t-D v\t\tdetach overflow from volume"));
1526 gettext("\t-E v\t\texport shadow volume"));
1528 gettext("\t-I v b\t\timport volume bitmap"));
1530 gettext("\t-J v b\t\tjoin volume bitmap"));
1532 gettext("\t-P d u v\tset copy delay/units for volume"));
1534 gettext("\t-P v\t\tget copy delay/units for volume"));
1539 gettext("\t-b v\t\tdisplay bitmap volume"));
1593 gettext("\t-g \"\" -m v\tremove volume from group"));
1603 gettext("\t-g g -E\t\texport shadow volume for all "
1614 gettext("\tind\t\tindependent volume set"));
1616 gettext("\tdep\t\tdependent volume set"));
1620 gettext("\tm\t\tmaster volume"));
1622 gettext("\ts\t\tshadow volume"));
1624 gettext("\tv\t\tshadow volume (reference name)"));
1626 gettext("\to\t\toverflow volume"));
1628 gettext("\tb\t\tbitmap volume"));
1738 child_wait(pid_t child, enum child_event event, char *volume)
1743 (void) strlcpy(args.shadow_vol, volume, DSW_NAMELEN);
1801 dsw_error(gettext("Can not check volume against mount table"),
1842 /* validate volume names */
1907 "Shadow volume is already configured"), NULL);
1980 "Unable to access master volume"), NULL);
1983 "Master volume is not a character device"), NULL);
1988 "Unable to access shadow volume"), NULL);
1991 "Shadow volume is not a character device"), NULL);
1995 "Shadow volume is mounted, unmount it first"), NULL);
2007 "Bitmap volume is not a character device"), NULL);
2040 "Master volume is already an overflow volume"),
2044 "Shadow volume is already an overflow volume"),
2048 "Bitmap volume is already an overflow volume"),
2053 * Make sure that the shadow volume is not already configured
2057 "Shadow volume is already configured"), NULL);
2067 gettext("Cannot enable master volume"),
2095 gettext("Cannot enable shadow volume"),
2158 reset(char *volume)
2182 if (!find_shadow_config(volume, &parms, &args))
2190 spcs_log("ii", NULL, gettext("Start reset %s"), volume);
2191 (void) strlcpy(prev_stat.shadow_vol, volume, DSW_NAMELEN);
2245 spcs_log("ii", stat, gettext("Fail reset %s"), volume);
2256 spcs_log("ii", stat, gettext("Finish reset %s"), volume);
2281 if (!find_shadow_config(volume, &parms, &args)) {
2300 overflow(char *volume)
2306 check_action(gettext("Initialize this overflow volume?"));
2307 if (find_matching_cf_line(volume, NULL, &args))
2311 (void) strncpy(args.shadow_vol, volume, DSW_NAMELEN);
2315 gettext("Create overflow failed %s"), volume);
2322 spcs_log("ii", stat, gettext("Create overflow succeeded %s"), volume);
2405 /* no group set, just count volume list */
2446 /* now compare the volume list with the hash */
2454 dsw_error(gettext("Duplicate volume specified"), NULL);
2590 char *volume;
2597 volume = vol_list[0];
2598 if (!find_shadow_config(volume, &parms, &copy_args))
2651 volume,
2671 volume,
2679 volume,
2715 conf->master_vol, gettext("(master volume)"));
2717 conf->shadow_vol, gettext("(shadow volume)"));
2719 conf->bitmap_vol, gettext("(bitmap volume)"));
2723 * Do special checking on the status of this volume in a Sun Cluster
2762 gettext("(overflow volume)"));
2797 (void) printf(gettext(", master volume offline"));
2800 (void) printf(gettext(", shadow volume offline"));
2803 (void) printf(gettext(", bitmap volume offline"));
2806 (void) printf(gettext(", overflow volume offline"));
2809 (void) printf(gettext(", shadow volume exported"));
2812 (void) printf(gettext(", shadow volume imported"));
2818 (void) printf(gettext(", spilled into overflow volume"));
2838 abort_copy(char *volume)
2842 if (!find_shadow_config(volume, NULL, &args))
2925 /* Is this volume configured on this node? */
2962 wait_for_copy(char *volume)
2974 if (!find_shadow_config(volume, NULL, &parms))
3005 export(char *volume)
3012 if (!find_shadow_config(volume, &conf, &parms))
3015 if (mounted(volume))
3016 dsw_error(gettext("Can't export a mounted volume"), NULL);
3020 (cfg_dgname(volume, dgname, sizeof (dgname)))) {
3029 conform_name(&volume);
3031 spcs_log("ii", NULL, gettext("Export %s"), volume);
3037 if (cfg_vol_disable(cfg, volume, cfg_cluster_tag, "ii") < 0) {
3052 detach(char *volume)
3057 if (!find_shadow_config(volume, NULL, &parms))
3072 dsw_error(gettext("Failed to detach overflow volume"),
3090 "and dependent on the master volume"), NULL);
3351 check_action(gettext("Overwrite master with shadow volume?"));
3354 " master in this group with its shadow volume?"));
3374 check_action(gettext("Overwrite master with shadow volume?"));
3377 " master in this group with its shadow volume?"));
3533 * If importing a shadow volume and the shadow volume is already
3538 dsw_error(gettext("Can't import volume on same node"), NULL);
3548 dsw_error(gettext("Shadow volume not in a"
3552 dsw_error(gettext("Bitmap volume not in a"
3555 dsw_error(gettext("Bitmap volume not in"
3641 gettext("Can't open imported bitmap volume\n"));
3647 gettext("Can't read imported bitmap volume\n"));
3653 case DSW_DIRTY: /* A copy of a enable bitmap volume */
3661 gettext("Secondary bitmap is not a valid bitmap volume\n"));
3678 gettext("Can't read imported bitmap volume\n"));
3744 (void) printf(gettext("volume: %s\ncopy delay: %d\ncopy unit:"
3799 dsw_error(gettext("Shadow volume not in a"
3803 dsw_error(gettext("Overflow volume not in a"
3806 dsw_error(gettext("Overflow volume not in"
3819 /* assure that the overflow_file is not an II volume */
3822 "Overflow volume is already in a Point-in-Time Copy "
3830 /* can only attach an overflow volume to dependent, compact shadow */
3948 /* has this set got an overflow volume? */
3992 (void) printf(gettext("Clean shutdown of volume "
3993 "sets associated with overflow volume "
4134 /* grab master volume name */
4163 /* master volume, may be duplicates */
4173 /* grab shadow volume name */
4254 * Returns true if set has had the shadow volume exported.
4255 * Returns false if shadow volume is not exported, or set is suspended.
4289 check_action(gettext("Perform operation with indicated volume"
4368 "shadow volume is in use as SNDR secondary volume"),