def METHOD_NAME(self, dev):
    size = 0
    dev = dev.replace("/dev/dsk/", "/dev/rdsk/")
    dev = dev.replace("/dev/vx/dmp/", "/dev/vx/rdmp/")
    out = utilities.devices.sunos.prtvtoc(dev)
    if out is None:
        return size
    """
    *     512 bytes/sector
    *      63 sectors/track
    *     255 tracks/cylinder
    *   16065 sectors/cylinder
    *   19581 cylinders
    *   19579 accessible cylinders
    **  OR:
    *   188743612 accessible sectors
    """
    for line in out.split('\n'):
        if not line.startswith('*'):
            continue
        try:
            if "bytes/sector" in line:
                n1 = int(line.split()[1])
            if "accessible sectors" in line:
                s0 = int(line.split()[1])
                size = math.ceil(1. * s0 * n1 / 1024 / 1024)
                break
            if "sectors/cylinder" in line:
                n2 = int(line.split()[1])
            if "cylinders" in line:
                n3 = int(line.split()[1])
            size = math.ceil(1. * n1 * n2 * n3 / 1024 / 1024)
        except:
            pass
    return size