我一直在亚马逊的networking服务玩了一年多,但是我不太明白它是如何工作的。 例如,当我从EC2控制台中select一个我select的AMI时,通过向导继续操作,到达“存储configuration选项卡”。 这里有几个选项。 有根卷标签,然后是EBS卷标签。 这两者如何不同? 什么是我可以分配给每个最大大小? 我如何configurationEBS卷与我的实例一起工作? 比方说,我决定创build8个EBS卷,每个卷都有25 GB的存储空间,就像Postgresql数据库那样自然地安装在根设备上,我如何configuration它使数据库存储在8个EBS卷中? 从某种意义上说,8个EBS卷被视为一个200 GB?
我试图设置只有2个设备的LVM镜像。 当我为镜像日志添加第三个设备,或者使用corelog时,它可以正常工作。 但只有2个设备和 – 随处可用 LVM几乎总是在一个设备上创build两个镜像。 情况 : 2个50GB的设备/ dev / xvdf和/ dev / xvdg 我需要在/ dev / xvdf上的1 x 40GB分区,它将在/ dev / xvdg上镜像 我不想要2个单独的驱动器用于镜像日志,我想在/ dev / xvdf和/ dev / xvdg上镜像日志(在某些盘区) 问题 : 几乎总是LVM(如果我理解lvs命令输出正确)在/ dev / xvdf上创build镜像,在/ dev / xvdg上创build镜像日志(是:-( 我使用的命令 : 情况1 – 最简单: $ lvcreate -m 1 –mirrorlog mirrored -L40G -n test forfiter […]
我刚从线性lvm2(单个HDD:sda)转换为lvm2根文件系统到lvm2 raid1(使用lvconvert -m1 –type raid1 /dev/ubuntu/root /dev/sdb5命令)。 但在这个转换后,我无法启动我的Ubuntu 12.10(内核3.5.0-17 – 通用)。 initramfs说它在/ dev / mapper中找不到root fs: Begin: Running /scripts/init-premount … done. Begin: Mounting root file system … Begin: Running /scripts/local-top … done. … (kernel messages) Gave up waiting for root device. Common problems: – Boot args (cat /proc/cmdline) – Check rootdelay= (did the system wait […]
即时通讯在我的ubuntu服务器上使用vmware,初始设置是10GB磁盘利用率,使用lvextend将其增加到15GB,并增加了5GB共20GB。 下面显示我的fdisk -l Disk /dev/sda: 21.5 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders, total 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x0002948a Device Boot Start End Blocks Id System /dev/sda1 […]
当我发现8GB不足时,我已经分配了15GB的精简configuration。 现在debian guest不能识别大小的变化。 root@debian7-x64:~# lvdisplay — Logical volume — LV Path /dev/debian7-x64/root LV Name root VG Name debian7-x64 LV UUID EU6mg0-XTXC-ci3D-bQJi-7XN6-r8Hp-SYxcj0 LV Write Access read/write LV Creation host, time debian7-x64, 2013-06-25 12:02:49 +0530 LV Status available # open 1 LV Size 7.39 GiB Current LE 1892 Segments 1 Allocation inherit Read ahead sectors auto – […]
我正在尝试增加我的一个卷组的PE大小。 我错误地把它设置为4M,开始的时候应该是32M。 当我试图改变我得到的大小 vgchange -s 32M the_vol New extent size is not a perfect fit vgdisplay说: vgdisplay — Volume group — VG Name the_vol System ID Format lvm2 Metadata Areas 1 Metadata Sequence No 173 VG Access read/write VG Status resizable MAX LV 0 Cur LV 43 Open LV 41 Max PV 0 Cur PV […]
[root@tst-01 puppet]# lvs LV VG Attr LSize Origin Snap% Move Log Copy% Convert lvhome vg00 -wi-ao 2.00g lvroot vg00 -wi-ao 38.75g lvswap vg00 -wi-ao 4.00g lvtmp vg00 -wi-ao 1.00g lvvar vg00 -wi-ao 4.00g [root@tst-01 puppet]# vgs VG #PV #LV #SN Attr VSize VFree vg00 1 5 0 wz–n- 49.75g 0 Tst-01是运行RHEL-6并使用LVM ext4分区的VMware虚拟机。 我想使根分区4GB更小,并使lvvar 4GB更大。 如何在没有任何停机的情况下做到这一点?
我正在尝试在已部署的系统(CentOS 6.4)上创buildRAID1镜像磁盘。 我有两个磁盘:操作系统的源/ dev / sda和/ dev / sdb将是镜像。 这些磁盘作为虚拟磁盘从VMware ESXi连接,它们具有相同的大小和精简/精简configuration。 我正在学习本教程: http : //www.howtoforge.com/how-to-set-up-software-raid1-on-a-running-lvm-system-incl-grub-configuration-centos-5.3 系统信息: / dev / sda大小和分区: Disk /dev/sda: 96.6 GB, 96636764160 bytes 255 heads, 63 sectors/track, 11748 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes […]
我在我的服务器中发现了一些问题,这里是: df -H | columt -t Filesystem Size Used Avail Use% Mounted on /dev/mapper/vg_test-lv_home 212G 177G 25G 88% /home du -sh /home/ 59G /home/ 有人知道为什么我的/home/消耗59G的空间,但vg_test_lv_home使用了177G的空间,这是没有意义的,对吗?
我目前的输出 df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 20G 2.1G 17G 11% / tmpfs 64G 0 64G 0% /dev/shm /dev/sda1 194M 54M 131M 30% /boot 我不需要64GB的交换/临时空间。 是否有可能减less存储并将其添加到LVM? / dev / sda5是精确的 Device Boot Start End Blocks Id System /dev/sda1 * 1 26 204800 83 Linux Partition 1 does not end on cylinder […]