首页天道酬勤linux创建lvm系统,linux查看lvm格式

linux创建lvm系统,linux查看lvm格式

张世龙 05-12 13:41 104次浏览

我有一个SLES11.2PPC(3.0.58-0.6.6-PPC64 )系统,其卷组跟踪)数据包含不重要的LV,但可以返回) .磁盘是SAN的两根光纤

上周五在计划停电之前重新启动时,发生了问题。 进行了故障诊断,没有时间再次关机。 此卷组以前正常使用了约两年。

vscan和pvscan不返回任何内容:

# pvscan -vP

partial mode.incompletelogicalvolumeswillbeprocessed。

wipingcacheoflvm -可支持设备

Wiping internal VG cache

魔兽世界

否匹配物理卷基金

# vgscan -vP

partial mode.incompletelogicalvolumeswillbeprocessed。

wipingcacheoflvm -可支持设备

Wiping internal VG cache

readingallphysicalvolumes.thismaytakeawhile .

查找结果所有卷组

否卷组基金

在vgcfgrestore报告中未找到PV :

# vgcfgrestore VG客户端

couldn ' tfinddevicewithuidpykfia-cc S9-gboh-qb50-yo w4-dhqw-n1 yelu。

couldn ' tfinddevicewithuidfxfsao-p9ho-dgtl-0 ihf-x2jx-tnhu-ks qua 2。

cannotrestorevolumegroupvgclientswith2pvsmarkedasmissing。

恢复故障。

但是blkid可以找到那些UUID :

# bl kid-tu uid=pykfia-cc S9-gboh-qb50-yo w4-dhqw-n1 yelu

/dev/mapper/3600 a0b 800029 df 24000011084 db 977413360 uuid=' pyk FIA-cc S9-gboh-qb50-yo w4-dhqw-n1 yelu ' type='

/dev/SDL : uuid=' pyk FIA-cc S9-gboh-qb50-yo w4-dhqw-n1 yelu ' type=' LV m2 _ member '

/dev/sdw : uuid=' pyk FIA-cc S9-gboh-qb50-yo w4-dhqw-n1 yelu ' type=' LV m2 _ member '

# bl kid-tu uid=fxf Sao-p9ho-dgtl-0 ihf-x2jx-tnhu-ks qua 2

/dev/mapper/3600 a0b 800029 df 24000017 AE 4f 45f 30 b : uuid=' fxf Sao-p9ho-dgtl-0 ihf-x2jx-tnhu-ks qua2' type='

/dev/SDG : uuid=' fxf Sao-p9ho-dgtl-0 ihf-x2jx-tnhu-ks qua2' type=' LV m2 _ member '

/dev/SDR : uuid=' fxf Sao-p9ho-dgtl-0 ihf-x2jx-tnhu-ks qua2' type=' LV m2 _ member '

/etc/LVM/backup/VG客户端拥有所有正确的信息,并未说缺少PV :

# egrep ' (n1 yelu/ks qua2)/etc/LVM/backup/VG客户端

id=' pykfia-cc S9-gboh-qb50-yo w4-dhqw-n1 yelu '

device='/dev/dm-7' # Hint only

status=['ALLOCATABLE']

id=' fxf Sao-p9ho-dgtl-0 ihf-x2jx-tnhu-ks qua2'

device='/dev/dm-12' # Hint only

status=['ALLOCATABLE']

我在SAN中检查此服务器上专用于LVM (命名为)的卷,标识符(以f30b或7741结尾)与SAN在服务器上匹配。

# multipath-ll (图形- a5 ' (f30b|7741 ) ) )。

3600 a0b 800029 df 24000017 AE 4f 45f 30 bdm-7 IBM,

1814 FAStT

size=575G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw

|-+- policy='round-robin 0' prio=6 status=active

| `- 6:0:0:1 sdr 65:16 active ready running

`-+- policy='round-robin 0' prio=1 status=enabled

`- 5:0:0:1 sdg 8:96 active ghost running

--

3600a0b800029df24000011084db97741 dm-12 IBM,1814 FAStT

size=834G features='1 queue_if_no_path' hwhandler='1 rdac' wp=rw

|-+- policy='round-robin 0' prio=6 status=active

| `- 5:0:0:7 sdl 8:176 active ready running

`-+- policy='round-robin 0' prio=1 status=enabled

`- 6:0:0:7 sdw 65:96 active ghost running

两个设备都没有分区表(按设计):

# fdisk -l /dev/dm-7 /dev/dm-12 | grep table

Disk /dev/dm-7 doesn't contain a valid partition table

Disk /dev/dm-12 doesn't contain a valid partition table

我可以直接从设备上读取:

# dd if=/dev/dm-7 of=/tmp/a bs=1024 count=1

1+0 records in

1+0 records out

1024 bytes (1.0 kB) copied,0.00121051 s,846 kB/s

# strings /tmp/a

LABELONE

LVM2 001FXfSAOP9hODgtl0Ihfx2jXTnHUkSqUA2

我尝试重新启动并删除sd(r | g | l | w)和dm-(7 | 12)并重新扫描,但没有效果.

我尝试使用备份值重新创建PV,但它仍然说它找不到它们.

# pvcreate --uuid "PyKfIa-cCs9-gBoh-Qb50-yOw4-dHQw-N1YELU" --restorefile /etc/lvm/backup/vgclients /dev/mapper/3600a0b800029df24000011084db97741 -t

Test mode: Metadata will NOT be updated and volumes will not be (de)activated.

Couldn't find device with uuid PyKfIa-cCs9-gBoh-Qb50-yOw4-dHQw-N1YELU.

Couldn't find device with uuid FXfSAO-P9hO-Dgtl-0Ihf-x2jX-TnHU-kSqUA2.

Device /dev/mapper/3600a0b800029df24000011084db97741 not found (or ignored by filtering).

这是我的lvm.conf,虽然据我所知,我所做的唯一改变是增加日志级别:

# egrep -v "^( *#|$)" /etc/lvm/lvm.conf

devices {

dir = "/dev"

scan = [ "/dev" ]

preferred_names = [ ]

filter = [ "a|^/dev/sda$|","r/.*/" ]

cache = "/etc/lvm/.cache"

write_cache_state = 1

sysfs_scan = 1

md_component_detection = 1

ignore_suspended_devices = 0

}

log {

verbose = 0

syslog = 1

overwrite = 0

level = 2

indent = 1

command_names = 0

prefix = " "

}

backup {

backup = 1

backup_dir = "/etc/lvm/backup"

archive = 1

archive_dir = "/etc/lvm/archive"

retain_min = 10

retain_days = 30

}

shell {

history_size = 100

}

global {

umask = 077

test = 0

units = "h"

activation = 1

proc = "/proc"

locking_type = 3

fallback_to_clustered_locking = 1

fallback_to_local_locking = 1

locking_dir = "/var/run/lvm/lock"

}

activation {

missing_stripe_filler = "/dev/ioerror"

reserved_stack = 256

reserved_memory = 8192

process_priority = -18

mirror_region_size = 512

readahead = "auto"

mirror_log_fault_policy = "allocate"

mirror_device_fault_policy = "remove"

udev_rules = 1

udev_sync = 1

}

dmeventd {

mirror_library = "libdevmapper-event-lvm2mirror.so"

snapshot_library = "libdevmapper-event-lvm2snapshot.so"

}

什么赋予了什么?我的VG去了哪里,我该如何取回它?

下载7kid家长端,rokid若琪app下载