volume

lvm磁盘扩容

允我心安 提交于 2019-12-02 15:31:57
LVM实现新挂载磁盘扩容到原有目录 1 #查看磁盘 2 fdisk -l 3 #创建pv 4 pvcreate /dev/sdb 5 [root@VM-67-49 ~]# pvcreate /dev/sdb 6 Physical volume "/dev/sdb" successfully created. 7 [root@VM-67-49 ~]# pvdisplay 8 --- Physical volume --- 9 PV Name /dev/sda2 10 VG Name centos 11 PV Size 29.51 GiB / not usable 3.00 MiB 12 Allocatable yes 13 PE Size 4.00 MiB 14 Total PE 7554 15 Free PE 10 16 Allocated PE 7544 17 PV UUID jfRAJl-pnUs-8lXi-1F37-IX3t-Nq8S-RdtQvq 18 19 "/dev/sdb" is a new physical volume of "100.00 GiB" 20 --- NEW Physical volume --- 21 PV Name /dev/sdb 22 VG Name 23 PV Size 100.00 GiB 24 Allocatable NO 25 PE

How can I programmatically control the Microphone and Microphone Boost settings in Win7 from C#?

这一生的挚爱 提交于 2019-12-02 11:43:43
Windows 7 has some new audio settings which I haven't been able to control from my C# application. Specifically, within the Input (microphone) properties, there is a Levels Tab containing Microphone and Microphone Boost sliders, and a Microphone mute toggle / checkbox. I need to programatically ensure that the Microphone is not muted--but have not found the necessary APIs to either read or set the values. I was unable to find an API that provided control over these specific volume levels. Please add new answers if they are available and I'll gladly accept a working solution. You can use a very

k8s 管理存储资源(10)

∥☆過路亽.° 提交于 2019-12-02 11:29:32
一、Kubernetes 如何管理存储资源 理解Volume   我们经常会说:容器和 Pod 是短暂的。   其含义是它们的生命周期可能很短,会被频繁地销毁和创建。容器销毁时,保存在容器内部文件系统中的数据都会被清除。   为了持久化保存容器的数据,可以使用 Kubernetes Volume。   Volume 的生命周期独立于容器,Pod 中的容器可能被销毁和重建,但 Volume 会被保留。   本质上,Kubernetes Volume 是一个目录,这一点与 Docker Volume 类似。当 Volume 被 mount 到 Pod,Pod 中的所有容器都可以访问这个 Volume。Kubernetes Volume 也支持多种 backend 类型,包括 emptyDir、hostPath、GCE Persistent Disk、AWS Elastic Block Store、NFS、Ceph 等,完整列表可参考 https://kubernetes.io/docs/concepts/storage/volumes/#types-of-volumes   Volume 提供了对各种 backend 的抽象,容器在使用 Volume 读写数据的时候不需要关心数据到底是存放在本地节点的文件系统中呢还是云硬盘上。对它来说,所有类型的 Volume 都只是一个目录。 二

Docker数据管理

两盒软妹~` 提交于 2019-12-02 10:55:00
docker两种存储资源类型 用户在使用 Docker 的过程中,势必需要查看容器内应用产生的数据,或者需要将容器内数据进行备份,甚至多个容器之间进行数据共享,这必然会涉及到容器的数据管理 1)Data Volume (数据卷) 2)Data Volume Dontainers --- 数据卷容器 Data Volume (数据卷) Data Volume 本质上是 Docker Host 文件系统中的目录或文件,使用类似与 Linux 下对目录或者文件进行 mount 操作。数据卷可以在容器之间共享和重用,对数据卷的更改会立马生效,对数据卷的更新不会影响镜像,卷会一直存在,直到没有容器使用 Data Volume 有以下特点: a)Data Volume 是目录或文件,而非没有格式化的磁盘(块设备)。 b)容器可以读写 volume 中的数据。 c)volume 数据可以被永久的保存,即使使用它的容器已经销毁。 Data Volume的使用: 通过-v 参数格式为 <host path>:<container path> a)运行一个容器,并创建一个数据卷挂载到容器的目录上 #docker run -dti -v /web centos:7.0 /bin/bash b)运行一个容器,本地创建/date目录挂载到容器的/var/log/目录上 docker run -dti -v

Adjust volume of both input mp3 files while merging using ffmpeg

元气小坏坏 提交于 2019-12-02 10:12:28
问题 I am using the following command to merge two audio files (mp3) into one output.mp3 -i /sdcard/NNR/input1.mp3 -i /sdcard/NNR/input2.mp3 -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 /sdcard/NNR/output.mp3 Kindly suggest me how to adjust volume level of both input files to some specific level. I have found the following filter variable but don't exactly know how to adjust into my command. ffmpeg -i a.mp3 -i b.mp3 -filter_complex "[0:a]volume=.25[A];[1:a][A]amerge[out]" -map [out] -c:a

algorithm for filling a surface mesh

六眼飞鱼酱① 提交于 2019-12-02 07:08:58
问题 I have a point cloud which describes a closed surface mesh. I want to create a volume mesh out of this: Therefore I have to append some points inside this "surface-point-cloud". Until now I use a kind of Sierpinski-algorithm: 1) begin with middlepoint of all points 2) random choose one of the surface points 3) create new point at the half of the connection line between point (1) and (2) 4) start again at (1) but take the new point (3) as first point Problem: When I triangulate all my points

Trigger system volume bar

徘徊边缘 提交于 2019-12-02 07:01:34
Is it possible by pressing a button in my Activity to make the volume bar appear? The volume bar is the view that appears when you press one of the hardware volume buttons. Is there a API function to do this or do I have to recreate that view by hand? if you call setStreamVolume, pass the flag FLAG_SHOW_UI See http://developer.android.com/reference/android/media/AudioManager.html#FLAG_SHOW_UI Working code AudioManager audio = (AudioManager) getSystemService(Context.AUDIO_SERVICE); audio.adjustStreamVolume(AudioManager.STREAM_MUSIC, AudioManager.ADJUST_SAME, AudioManager.FLAG_SHOW_UI); 来源:

Adjust volume of both input mp3 files while merging using ffmpeg

一个人想着一个人 提交于 2019-12-02 06:04:24
I am using the following command to merge two audio files (mp3) into one output.mp3 -i /sdcard/NNR/input1.mp3 -i /sdcard/NNR/input2.mp3 -filter_complex amerge -ac 2 -c:a libmp3lame -q:a 4 /sdcard/NNR/output.mp3 Kindly suggest me how to adjust volume level of both input files to some specific level. I have found the following filter variable but don't exactly know how to adjust into my command. ffmpeg -i a.mp3 -i b.mp3 -filter_complex "[0:a]volume=.25[A];[1:a][A]amerge[out]" -map [out] -c:a pcm_s16le out.wav Any help will be much appreciated.Thanks You would use -i /sdcard/NNR/input1.mp3 -i

Kubernetes中的PV和PVC

此生再无相见时 提交于 2019-12-02 06:03:39
K8S引入了一组叫作Persistent Volume Claim(PVC)和Persistent Volume(PV)的API对象,大大降低了用户声明和使用持久化Volume的门槛。 在Pod的Volumes中,只要声明类型是persistentVolumeClaim,指定PVC的名字,当创建这个PVC对象,k8s就自动为它绑定一个符合条件的Volume,这个Volume,从PV来 PVC和PV的设计,类似“接口”和“实现”的思想,开发者只知道使用“接口”PVC,运维人员负责给“接口”绑定具体的实现PV,说白了PVC就是一种特殊的Volume PVC和PV的实现原理 PVC:描述 Pod想要使用的持久化属性,比如存储大小、读写权限等 PV:描述一个具体的Volume属性,比如Volume的类型、挂载目录、远程存储服务器地址等 StorageClass:充当PV的模板,自动为PVC创建PV 一、关于PV创建的流程 大多数情况,持久化Volume的实现,依赖于远程存储服务,如远程文件存储(NFS、GlusterFS)、远程块存储(公有云提供的远程磁盘)等。 K8s需要使用这些存储服务,来为容器准备一个持久化的宿主机目录,以供以后挂载使用,创建这个目录分为两阶段: 1.创建一个远程块存储,相当于创建了一个磁盘,称为Attach 由Volume Controller负责维护,不断地检查

14-使用glusterfs做持久化存储

我怕爱的太早我们不能终老 提交于 2019-12-02 02:24:46
14-使用glusterfs做持久化存储 https://www.cnblogs.com/guigujun/p/8366558.html 使用glusterfs做持久化存储 我们复用kubernetes的三台主机做glusterfs存储。 以下步骤参考自: https://www.xf80.com/2017/04/21/kubernetes-glusterfs/ 安装glusterfs 我们直接在物理机上使用yum安装,如果你选择在kubernetes上安装,请参考: https://github.com/gluster/gluster-kubernetes/blob/master/docs/setup-guide.md # 先安装 gluster 源 $ yum install centos-release-gluster -y # 安装 glusterfs 组件 $ yum install -y glusterfs glusterfs-server glusterfs-fuse glusterfs-rdma glusterfs-geo-replication glusterfs-devel ## 创建 glusterfs 目录 $ mkdir /opt/glusterd ## 修改 glusterd 目录 $ sed -i 's/var\/lib/opt/g' /etc