Raid and Logical Volume Managers are great, until you lose data.

The combination of Linux software RAID (Redundant Array of Inexpensive Disks) and LVM2 (Logical Volume Manager, version 2) offered in modern Linux operating systems offers both robustness and flexibility, but at the cost of complexity should you ever need to recover data from a drive formatted with software RAID and LVM2 partitions. I found this out the hard way when I recently tried to mount a system disk created with RAID and LVM2 on a different computer. The first attempts to read the filesystems on the disk failed in a frustrating manner.

本日志由 flyinweb 于 2011-02-10 15:36:00 发表到 Linux 中,目前已经被浏览 1396 次,评论 0 次;

作者添加了以下标签: LVMLVM recovery

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

 Over the weekend I had the worrying experience of losing my LVM settings and potentially all my data… a quick search on the web showed a confusing set of information, much of it for older versions of LVM and therefore rather suspect.

Well, I recovered all my data and it was really quite simple, so I’ve written up what I did in the hope that someone else, in a similar situation, will find it useful. It’s a scary thing, losing the whole hard disk and knowing that, in reality, its all there.

本日志由 flyinweb 于 2011-02-10 15:28:40 发表到 Linux 中,目前已经被浏览 1571 次,评论 0 次;

作者添加了以下标签: LVMLVM recovery

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

将LINUX系统下的一个分区/dev/sda6划给linux的LVM使用,具体操作如下:

1.用 fdisk /dev/sda分区

2.pvcreate /dev/sda6

3.vgextend VolGroup00 /dev/sda6

4.lvextend -L +10G /dev/VolGroup/LogGroup02

5.e2fsck -f /dev/VolGroup/LogGroup02

6.resize2fs /dev/VolGroup/LogGroup02

这就好了,第6步是让扩展的空间生效,要不你会发现df后磁盘的空间并没有扩大。

本日志由 flyinweb 于 2010-08-13 09:46:35 发表到 Linux 中,目前已经被浏览 4665 次,评论 0 次;

作者添加了以下标签: LVM

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文

卷管理在 -ix 环境(UNIX®、AIX 等等)中并不是新特性。逻辑卷管理(logical volume management,LVM)在 Linux® 内核 2.4v1 和 2.6.9v2 中就已经出现了。本文讨论 LVM2 最有用的特性(LVM2 是一个相当新的用户空间工具集,它提供逻辑卷管理功能),并提供几种简化系统管理任务的方法。

本日志由 flyinweb 于 2010-07-20 10:01:42 发表到 技术文摘 中,目前已经被浏览 4067 次,评论 0 次;

作者添加了以下标签: Logical Volume ManagementLVM

首页只显示了部分日志内容,要查看日志的全部内容请阅读全文