LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 1382|回复: 4

"e2label device" doesn't show Raid or LVM partition??

[复制链接]
发表于 2005-10-29 08:52:25 | 显示全部楼层 |阅读模式
I am testing troubleshooting of missing /etc/fstab.  I understand the basic steps and it works fine....but there is a minor question about e2label.

1. First "fdisk -l "查看分区情况. Make a note of each partition device that is formatted to a Linux filesystem.

2. 然后e2label to check  各个分区的卷标。Check the labels associated with each Linux-formatted partition. For example,  if one of the partitions is /dev/hda1, run the e2label /dev/hda1 command. Make a note of the label that you see, such as /boot or /.

My question here is: should i worry about those partitions that are formatted as RAID or LVM?  For RAID or LVM partitions, "e2label /dev/hda4" won't show the label.

Of course system can be booted up with a minimum /etc/fstab (boot, /, /var, etc). But how could I find out exactly what is the file system mounted to those RAID or LVM partitions, even after system booted up?

Thanks a lot for any reply....
发表于 2005-10-29 16:20:12 | 显示全部楼层
我也覺得查不到label的話 的確不能確定本?硎枪逸d在什麽目錄下的 或者你以前就知道md0或者某LV下有些特殊的文件是挂載在那個分區下的,那樣就能確定md0或者LV是挂在什麽目錄下的吧。。不然基本不太可能找到把
回复 支持 反对

使用道具 举报

发表于 2005-11-1 02:42:39 | 显示全部楼层
Post by zaiwen
I am testing troubleshooting of missing /etc/fstab.  I understand the basic steps and it works fine....but there is a minor question about e2label.

1. First "fdisk -l "查看分区情况. Make a note of each partition device that is formatted to a Linux filesystem.

2. 然后e2label to check  各个分区的卷标。Check the labels associated with each Linux-formatted partition. For example,  if one of the partitions is /dev/hda1, run the e2label /dev/hda1 command. Make a note of the label that you see, such as /boot or /.

My question here is: should i worry about those partitions that are formatted as RAID or LVM?  For RAID or LVM partitions, "e2label /dev/hda4" won't show the label.

Of course system can be booted up with a minimum /etc/fstab (boot, /, /var, etc). But how could I find out exactly what is the file system mounted to those RAID or LVM partitions, even after system booted up?

Thanks a lot for any reply....

if you system can boot up, then vgscan -dv should get all the vg info and cat /proc/mdstat or cat /etc/mdadm.conf should show you all md status if they are not broken...
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-11-1 04:17:40 | 显示全部楼层
Yes, I understand that after system boots up, then vgscan -dv should get all the vg info and cat /proc/mdstat or cat /etc/mdadm.conf should show you all md status....

but they will only tell you which partitions are md0 or md1.....if they are not e2label at the first place, there is no way to find out, right?
回复 支持 反对

使用道具 举报

发表于 2005-11-1 08:40:27 | 显示全部楼层
no, it will tell you what devices are involved.
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表