LMV实验

在CentOS6.8上创建过程如下:

#对需要创建lvm的卷进行磁盘分区[[email protected] ~13:40:48]#fdisk /dev/sde
Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel
Building a new DOS disklabel with disk identifier 0xe02dc36a.
Changes will remain in memory only, until you decide to write them.
After that, of course, the previous content won‘t be recoverable.

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

WARNING: DOS-compatible mode is deprecated. It‘s strongly recommended to
         switch off the mode (command ‘c‘) and change display units to
         sectors (command ‘u‘).

Command (m for help): n
Command action
   e   extended
   p   primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-2610, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-2610, default 2610): +10G

Command (m for help): t    #修改系统的ID
Selected partition 1
Hex code (type L to list codes): L

 0  Empty           24  NEC DOS         81  Minix / old Lin bf  Solaris
 1  FAT12           39  Plan 9          82  Linux swap / So c1  DRDOS/sec (FAT-
 2  XENIX root      3c  PartitionMagic  83  Linux           c4  DRDOS/sec (FAT-
 3  XENIX usr       40  Venix 80286     84  OS/2 hidden C:  c6  DRDOS/sec (FAT-
 4  FAT16 <32M      41  PPC PReP Boot   85  Linux extended  c7  Syrinx
 5  Extended        42  SFS             86  NTFS volume set da  Non-FS data
 6  FAT16           4d  QNX4.x          87  NTFS volume set db  CP/M / CTOS / .
 7  HPFS/NTFS       4e  QNX4.x 2nd part 88  Linux plaintext de  Dell Utility
 8  AIX             4f  QNX4.x 3rd part 8e  Linux LVM       df  BootIt
 9  AIX bootable    50  OnTrack DM      93  Amoeba          e1  DOS access
 a  OS/2 Boot Manag 51  OnTrack DM6 Aux 94  Amoeba BBT      e3  DOS R/O
 b  W95 FAT32       52  CP/M            9f  BSD/OS          e4  SpeedStor
 c  W95 FAT32 (LBA) 53  OnTrack DM6 Aux a0  IBM Thinkpad hi eb  BeOS fs
 e  W95 FAT16 (LBA) 54  OnTrackDM6      a5  FreeBSD         ee  GPT
 f  W95 Ext‘d (LBA) 55  EZ-Drive        a6  OpenBSD         ef  EFI (FAT-12/16/
10  OPUS            56  Golden Bow      a7  NeXTSTEP        f0  Linux/PA-RISC b
11  Hidden FAT12    5c  Priam Edisk     a8  Darwin UFS      f1  SpeedStor
12  Compaq diagnost 61  SpeedStor       a9  NetBSD          f4  SpeedStor
14  Hidden FAT16 <3 63  GNU HURD or Sys ab  Darwin boot     f2  DOS secondary
16  Hidden FAT16    64  Novell Netware  af  HFS / HFS+      fb  VMware VMFS
17  Hidden HPFS/NTF 65  Novell Netware  b7  BSDI fs         fc  VMware VMKCORE
18  AST SmartSleep  70  DiskSecure Mult b8  BSDI swap       fd  Linux raid auto
1b  Hidden W95 FAT3 75  PC/IX           bb  Boot Wizard hid fe  LANstep
1c  Hidden W95 FAT3 80  Old Minix       be  Solaris boot    ff  BBT
1e  Hidden W95 FAT1
Hex code (type L to list codes): 8e  #lvm的分区格式
Changed system type of partition 1 to 8e (Linux LVM)

Command (m for help): w  #存盘退出
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.

#注:所有需要创建lvm的都需要将分区创建成"8e Linux LVM ",但是分区的大小没有要求必须一样大
[[email protected] ~13:49:37]#pvs  #查看当前物理卷,但还没有创建过
[[email protected] ~13:50:04]#pvdisplay   #详细的查看当前物理卷的信息,但还没有创建过
 [[email protected] ~13:50:13]#pvcreate /dev/sdb2 /dev/sde1 /dev/sdf1     #将/dev/sdb2 /dev/sde1 /dev/sdf1三个分区创建成三个独立的物理卷
WARNING: swap signature detected on /dev/sdb2. Wipe it? [y/n]: n    #系统提示:/dev/sdb2是SWAP分区,要不要覆盖?选择否Aborted wiping of swap signature. Aborting pvcreate on /dev/sdb2. Physical volume "/dev/sde1" successfully created Physical volume "/dev/sdf1" successfully created  #/dev/sdb2创建失败,其余两个创建成功。
[[email protected] ~13:52:55]#pvs   #再次查看物理卷信息,有两个创建成功
  PV         VG   Fmt  Attr PSize  PFree
  /dev/sde1       lvm2 ---- 10.00g 10.00g
  /dev/sdf1       lvm2 ---- 10.00g 10.00g
[[email protected] ~13:55:22]#pvdisplay
  "/dev/sde1" is a new physical volume of "10.00 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sde1  #物理卷名
  VG Name                      #还没有物理卷组名
  PV Size               10.00 GiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               1KKk8Z-LMkr-XCXH-teRx-gz61-1zDo-1qJDfe

  "/dev/sdf1" is a new physical volume of "10.00 GiB"
  --- NEW Physical volume ---
  PV Name               /dev/sdf1
  VG Name
  PV Size               10.00 GiB
  Allocatable           NO
  PE Size               0
  Total PE              0
  Free PE               0
  Allocated PE          0
  PV UUID               r8PQTC-74Wr-fcKb-Vcmw-gbsa-982R-jhTbot
[[email protected] ~13:55:37]#blkid     #查看磁盘UUID
/dev/sda1: UUID="dcfcf26d-ae5e-4524-9326-c9cafffe7ecd" TYPE="ext4"
/dev/sda2: UUID="98eefdc6-1f04-4784-8b31-876ee05e618f" TYPE="swap"
/dev/sda3: UUID="f15c3ecc-b6e0-4bba-8918-36b6fcac540f" TYPE="ext4"
/dev/sdc1: UUID="5137e1fa-bd81-4fd0-acbd-50473c277e29" TYPE="swap"
/dev/sdb1: UUID="e4d3e8c6-0f8e-48ef-a80b-711a99639637" TYPE="ext4"
/dev/sdb2: UUID="f54f914c-11ab-499d-9359-0947db5f24bd" TYPE="swap"
/dev/sdd1: UUID="990eddeb-d162-4d6d-ac74-cdafa474e5c0" TYPE="ext4"
/dev/sde1: UUID="1KKk8Z-LMkr-XCXH-teRx-gz61-1zDo-1qJDfe" TYPE="LVM2_member"   #lvm展示的信息是这样的
/dev/sdf1: UUID="r8PQTC-74Wr-fcKb-Vcmw-gbsa-982R-jhTbot" TYPE="LVM2_member" 
-s set:设定PE(物理区域)的大小[[email protected] ~13:59:06]#vgs    #查看当前卷组
[[email protected] ~14:11:42]#vgdisplay   #查看当前卷组的详细信息
[[email protected] ~14:11:48]#vgcreate -s 16M  vg0 /dev/sde1 /dev/sdf1    #创建卷组;vg0:是创建的卷组名;卷组中包含/dev/sde1和/dev/sdf1两个物理卷
  Volume group "vg0" successfully created
[[email protected] ~14:13:00]#vgs
  VG   #PV #LV #SN Attr   VSize  VFree
  vg0    2   0   0 wz--n- 20.00g 20.00g
[[email protected] ~14:13:09]# pvs
  PV         VG   Fmt  Attr PSize  PFree
  /dev/sde1  vg0  lvm2 a--u 10.00g 10.00g
  /dev/sdf1  vg0  lvm2 a--u 10.00g 10.00g
[[email protected] ~14:13:35]#pvdisplay
  --- Physical volume ---
  PV Name               /dev/sde1
  VG Name               vg0  #卷组创建成功
  PV Size               10.00 GiB / not usable 4.54 MiB
  Allocatable           yes
  PE Size               16.00 MiB
  Total PE              640
  Free PE               640
  Allocated PE          0
  PV UUID               1KKk8Z-LMkr-XCXH-teRx-gz61-1zDo-1qJDfe

  --- Physical volume ---
  PV Name               /dev/sdf1
  VG Name               vg0
  PV Size               10.00 GiB / not usable 4.54 MiB
  Allocatable           yes
  PE Size               16.00 MiB    #设定的PE大小
  Total PE              640
  Free PE               640
  Allocated PE          0
  PV UUID               r8PQTC-74Wr-fcKb-Vcmw-gbsa-982R-jhTbot

[[email protected] ~14:13:51]#vgdisplay
  --- Volume group ---
  VG Name               vg0
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  1
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                0
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               20.00 GiB
  PE Size               16.00 MiB
  Total PE              1280
  Alloc PE / Size       0 / 0
  Free  PE / Size       1280 / 20.00 GiB
  VG UUID               6whqdS-UkYN-rsT9-xv61-2WHF-byun-3RZw5q
-n name:创建逻辑卷的名称-L:创建逻辑卷增加到多少-l:创建逻辑卷增加了多少[[email protected] ~14:14:05]#lvs  #查看当前逻辑卷
[[email protected] ~14:16:11]#lvdisplay   #查看当前逻辑卷的详细信息
[[email protected] ~14:16:15]#lvcreate -n lv0 -L 10G vg0   #创建逻辑卷
  Logical volume "lv0" created.
[[email protected] ~14:17:51]#lvs
  LV   VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv0  vg0  -wi-a----- 10.00g
[[email protected] ~14:17:57]#lvdisplay
  --- Logical volume ---
  LV Path                /dev/vg0/lv0
  LV Name                lv0
  VG Name                vg0
  LV UUID                g7Jr5N-pETn-RzgU-fVDy-qbNx-wq8x-7eV5ii
  LV Write Access        read/write
  LV Creation host, time www, 2017-04-20 14:17:51 +0800
  LV Status              available
  # open                 0
  LV Size                10.00 GiB
  Current LE             640
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

[[email protected] ~14:18:04]#vgdisplay
  --- Volume group ---
  VG Name               vg0
  System ID
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  2
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               0
  Max PV                0
  Cur PV                2
  Act PV                2
  VG Size               20.00 GiB
  PE Size               16.00 MiB
  Total PE              1280
  Alloc PE / Size       640 / 10.00 GiB
  Free  PE / Size       640 / 10.00 GiB
  VG UUID               6whqdS-UkYN-rsT9-xv61-2WHF-byun-3RZw5q
[[email protected] ~14:18:16]#mkfs.ext4 /dev/vg0/lv0  #格式化逻辑卷,定义逻辑卷的文件系统
mke2fs 1.41.12 (17-May-2010)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
655360 inodes, 2621440 blocks
131072 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=2684354560
80 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
    32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

This filesystem will be automatically checked every 22 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[[email protected] ~14:21:15]#mkdir /mnt/lv0    #为挂载逻辑卷创建目录
[[email protected] ~14:21:42]#mount /dev/vg0/lv0 /mnt/lv0  #挂载逻辑卷
[[email protected] ~14:22:14]#df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda3            6.6G  1.8G  4.5G  29% /
tmpfs                497M     0  497M   0% /dev/shm
/dev/sda1            190M   58M  122M  33% /boot
/dev/sdb1            2.0G  3.1M  1.9G   1% /newFS
/dev/sdd1             50G   52M   47G   1% /home
/dev/mapper/vg0-lv0  9.8G   23M  9.2G   1% /mnt/lv0
-L:扩展到多大-l:扩展了多大[[email protected] ~14:22:19]#lvextend -L 20G /dev/vg0lv0   #扩展逻辑卷的容量
  Path required for Logical Volume "vg0lv0".
  Please provide a volume group name
  Run `lvextend --help‘ for more information.
[[email protected] ~14:26:09]#lvextend -L 20G /dev/vg0/lv0
  Size of logical volume vg0/lv0 changed from 10.00 GiB (640 extents) to 20.00 GiB (1280 extents).
  Logical volume lv0 successfully resized.
[[email protected] ~14:26:22]#df -h  #扩展之后容量并没有变大
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda3            6.6G  1.8G  4.5G  29% /
tmpfs                497M     0  497M   0% /dev/shm
/dev/sda1            190M   58M  122M  33% /boot
/dev/sdb1            2.0G  3.1M  1.9G   1% /newFS
/dev/sdd1             50G   52M   47G   1% /home
/dev/mapper/vg0-lv0  9.8G   23M  9.2G   1% /mnt/lv0
[[email protected] ~14:27:18]#resize2fs /dev/vg0/lv0    #扩展后,要将文件系统同步,此命令仅用于CentOS6.8
resize2fs 1.41.12 (17-May-2010)
Filesystem at /dev/vg0/lv0 is mounted on /mnt/lv0; on-line resizing required
old desc_blocks = 1, new_desc_blocks = 2
Performing an on-line resize of /dev/vg0/lv0 to 5242880 (4k) blocks.
The filesystem on /dev/vg0/lv0 is now 5242880 blocks long.

[[email protected] ~14:27:57]#df -h
Filesystem           Size  Used Avail Use% Mounted on
/dev/sda3            6.6G  1.8G  4.5G  29% /
tmpfs                497M     0  497M   0% /dev/shm
/dev/sda1            190M   58M  122M  33% /boot
/dev/sdb1            2.0G  3.1M  1.9G   1% /newFS
/dev/sdd1             50G   52M   47G   1% /home
/dev/mapper/vg0-lv0   20G   28M   19G   1% /mnt/lv0
#迁移PE到新磁盘上:假设逻辑卷空间不够,需要新增空间[[email protected] ~00:47:26]#pvcreate /dev/sdf2   #创建物理卷
  Physical volume "/dev/sdf2" successfully created
[[email protected] ~00:51:13]#vgextend vg0 /dev/sdf2    #扩展卷组vg0
  Volume group "vg0" successfully extended
[[email protected] ~00:51:34]#vgs      #查看当前卷组
  VG   #PV #LV #SN Attr   VSize  VFree
  vg0    3   1   0 wz--n- 30.00g 10.00g
[[email protected] ~00:51:42]#vgdisplay
  --- Volume group ---
  VG Name               vg0
  System ID
  Format                lvm2
  Metadata Areas        3
  Metadata Sequence No  4
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                1
  Open LV               1
  Max PV                0
  Cur PV                3
  Act PV                3
  VG Size               30.00 GiB
  PE Size               16.00 MiB
  Total PE              1920
  Alloc PE / Size       1280 / 20.00 GiB
  Free  PE / Size       640 / 10.00 GiB
  VG UUID               6whqdS-UkYN-rsT9-xv61-2WHF-byun-3RZw5q

[[email protected] ~00:52:09]#lvdisplay    #查看卷组详细信息
  --- Logical volume ---
  LV Path                /dev/vg0/lv0
  LV Name                lv0
  VG Name                vg0
  LV UUID                g7Jr5N-pETn-RzgU-fVDy-qbNx-wq8x-7eV5ii
  LV Write Access        read/write
  LV Creation host, time www, 2017-04-20 14:17:51 +0800
  LV Status              available
  # open                 1
  LV Size                20.00 GiB
  Current LE             1280
  Segments               2
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:0

[[email protected] ~00:53:21]#pvdisplay  #查看物理卷详细信息
  --- Physical volume ---
  PV Name               /dev/sde1
  VG Name               vg0
  PV Size               10.00 GiB / not usable 4.54 MiB
  Allocatable           yes (but full)
  PE Size               16.00 MiB
  Total PE              640
  Free PE               0
  Allocated PE          640
  PV UUID               1KKk8Z-LMkr-XCXH-teRx-gz61-1zDo-1qJDfe

  --- Physical volume ---
  PV Name               /dev/sdf1    #假设此卷组发生警报,需要更换
  VG Name               vg0
  PV Size               10.00 GiB / not usable 4.54 MiB
  Allocatable           yes (but full)
  PE Size               16.00 MiB
  Total PE              640
  Free PE               0
  Allocated PE          640
  PV UUID               r8PQTC-74Wr-fcKb-Vcmw-gbsa-982R-jhTbot

  --- Physical volume ---
  PV Name               /dev/sdf2    #在卷组vg0中正好有此设备是空闲的,而且容量不小于快要损坏的/dev/sdf1,故可移走损坏的
  VG Name               vg0
  PV Size               10.00 GiB / not usable 4.58 MiB
  Allocatable           yes
  PE Size               16.00 MiB
  Total PE              640
  Free PE               640
  Allocated PE          0
  PV UUID               5zCxP8-62mX-9VFI-q8Zq-EwZn-3CsV-UsLNL2

[[email protected] ~00:53:44]#pvmove /dev/sdf1   #移走损坏的/dev/sdf1
  /dev/sdf1: Moved: 0.0%
  /dev/sdf1: Moved: 10.5%
  /dev/sdf1: Moved: 19.8%
  /dev/sdf1: Moved: 27.7%
  /dev/sdf1: Moved: 35.3%
  /dev/sdf1: Moved: 42.3%
  /dev/sdf1: Moved: 49.8%
  /dev/sdf1: Moved: 57.3%
  /dev/sdf1: Moved: 67.2%
  /dev/sdf1: Moved: 75.5%
  /dev/sdf1: Moved: 83.0%
  /dev/sdf1: Moved: 95.8%
  /dev/sdf1: Moved: 100.0%

[[email protected] ~01:01:47]#vgreduce vg0 /dev/sdf1    #先从卷组中减少设备/dev/sdf1
Removed "/dev/sdf1" from volume group "vg0"


[[email protected] ~01:10:09]#pvremove /dev/sdf1       #然后删除物理卷
Labels on physical volume "/dev/sdf1" successfully wiped

#缩减逻辑卷[[email protected] mnt01:18:08]#umount /mnt/lv0  #首先取消挂载
[[email protected] mnt01:20:24]#e2fsck -f /dev/vg0/lv0    #检查逻辑卷完整性e2fsck 1.41.12 (17-May-2010)
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information
/dev/vg0/lv0: 11/1310720 files (0.0% non-contiguous), 122065/5242880 blocks
[[email protected] mnt01:21:06]#resize2fs /dev/vg0/lv0 10G    #同步逻辑卷的大小到指定缩减的大小
resize2fs 1.41.12 (17-May-2010)
Resizing the filesystem on /dev/vg0/lv0 to 2621440 (4k) blocks.
The filesystem on /dev/vg0/lv0 is now 2621440 blocks long.
[[email protected] mnt01:22:27]#lvreduce -L 10G /dev/vg0/lv0    #缩减逻辑卷的大小到指定的大小
  WARNING: Reducing active logical volume to 10.00 GiB.
  THIS MAY DESTROY YOUR DATA (filesystem etc.)
Do you really want to reduce vg0/lv0? [y/n]: Y       #缩减必须考虑当前的系统数据做好备份,或者缩减后剩余的空间足够容纳当前数据 
  Size of logical volume vg0/lv0 changed from 20.00 GiB (1280 extents) to 10.00 GiB (640 extents).
  Logical volume lv0 successfully resized.
[[email protected] mnt01:22:49]#mount /dev/vg0/lv0 /mnt/lvo
mount: mount point /mnt/lvo does not exist
[[email protected] mnt01:23:39]#mount /dev/vg0/lv0 /mnt/lv0
[[email protected] mnt01:23:57]#lvs    #查看缩减后的逻辑卷信息
  LV   VG   Attr       LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  lv0  vg0  -wi-ao---- 10.00g
[[email protected] mnt01:24:09]# 
时间: 2024-10-18 03:38:08

LMV实验的相关文章

如何使用GNS3和Cisco IOU搭建路由交换实验-IOU篇

前面介绍了GNS3的概念,安装,配置和使用,本篇将介绍怎么利用GNS3配置IOU从而实现使用GNS3和Cisco IOU搭建路由交换实验. 由于本篇篇幅较长,所以先过一下大纲: 1. IOU模拟环境介绍 2. IOU软件环境的准备 3. VMware虚拟机的安装.导入和配置 4. IOU镜像的上传 5. GNS3的配置 6. IOU模拟环境的实现 IOU模拟环境介绍 IOU即IOS running in Unix,最初是由思科内部人员开发来测试IOS的平台,后来流传到互联网经网友改进有了后来的W

广外第二周的实验报告来这里分享一下

虽然有很多还不知道怎么改,可能也有很多测试不到的地方,但是通过这个星期我好歹了解了好多东西啊 实验报告 通过本次学习,能了解到VC6.0.是用于将已生成的C++语言源程序代码转换为计算机能读懂的目标代码,计算机用的均是二进制代码.编辑完成后它首先生成扩展名为obj的文件(程序编译后的二进制文件),若想进行之后的链接.运行过程,必须不断修改源程序文件至完全正确. 在文件→新建→源代码这里可以新建源代码:新建→打开项目或文件中可以打开以前写过的源代码或者程序:运行→编译中即把所打源文件转换为二进制代

webservice实验一

实验目的:安装jdk1.6_21以后的版本,利用JAX-WS API自己发布webservice并调用,以及用wsimport生成webservice客户端代码调用一个免费的web服务(如webxml.com.cn上的获取手机归属地的服务). 一.webservice原理了解 webservice是一种通用的跨语言跨平台的数据交互方式,之所以能够做到这一点,是因为它的底层实现机制是依赖于HTTP协议以及XML格式这些开发的标准.webservice使用SOAP(simple object acc

Cisco ISE + Windows Server 2008 实验

实验说明:此实验参考生产环境中某部分环境搭建而成,此环境Windows Server 2008用于登录用户.MAC等账号的认证,Cisco ISE用于认证授权等,无线部分利用VMWLC + Cisco 1702AP测试测试.因为为实验环境,整体网络架构所有节点为单点:Cisco ISE部分功能没有应用上,如测试PC端的补丁.防毒补丁.设备认证等(此部分在生产环境上实施),下图为此实验的网络架构图. Windows AD:  172.16.1.199 Cisco VMISE: 172.16.1.1

CentOS系统启动及内核大破坏模拟实验

讲过了centos的启动流程,此时是不是想来点破坏呢?那就尽情的玩耍吧,记得在实验之前拍个快照,万一哪个环节错误恢复不回来了呢,毕竟数据无价,话不多说,开始. 一.删除伪系统根.(ramdisk文件) (1)模拟误操作删除ramdisk文件. ①模拟误删除initramfs-3.10.0-514.el7.x86_64.img文件. ②为当前正在使用的内核重新制作ramdisk文件 格式为:mkinitrd /boot/initramfs-$(uname -r).img $(uname -r) (

PCB实验与检修杂记

2017-08-24 有ABCD四个焊点,diagram上A与B相连,C与D相连,B与C属于同一组引脚.现根据实验要求将B.C短接,结果测得,B与C导通而A与C不导通,这与常识违背. 经过逐步缩小范围发现,C点上方留出的测量点和焊台的测量结果有所不同,经过分析,可知C点焊脚与焊台虚焊,测量时再表笔的压力下两者导通:而表笔一但离开C点,则两者不导通.即测量引入了误差. 对于此问题解决的思路: 1.稳扎稳打,逻辑分析,逐步缩小范围.2.测量引脚上方留出的点比直接测量引脚更可靠.

2062326 齐力锋 实验四《Java面向对象程序设计Android开发》实验报告

北京电子科技学院(BESTI) 实 验 报 告 课程: 程序设计与数据结构  班级: 1623  姓名: 齐力锋 学号: 20162326 成绩: 指导教师: 娄嘉鹏/王志强 实验日期: 2017年5月26日 实验密级:非密级 预习程度: 优良 实验时间: 2 Hours 仪器组次: 必修/选修: 必修 实验序号: 04 实验名称:Java面向对象程序设计Android开发 实验内容 1.Android Stuidio的安装测试: 参考<Java和Android开发学习指南(第二版)(EPUBI

实验三+036+吴心怡

1)被测项目界面. 2)测试用例设计表 等价类 输入条件 有效等价类 编号 无效等价类 编号 年 1912≤year≤2050 ① year<1912 ② Year>2050 ③ 非数字 月 Month= 1,3,5,7,8,10,12 ④ Month<1 ⑤ Month= 4,6,9,11 month>12 ⑥ Month= 2 非数字 日 1≤ day ≤31 ⑦ day<1 ⑧ Day>311 ⑨ 非数字 测试用例表 测试用例编号 输入数据 预期输出 实际结果 通

实验三+018+李滨

1)被测项目界面. 2)测试用例设计表 等价类 输入条件 有效等价类 编号 无效等价类 编号 年 1912≤year≤2050 ① year<1912 ② Year>2050 ③ 非数字 月 Month= 1,3,5,7,8,10,12 ④ Month<1 ⑤ Month= 4,6,9,11 month>12 ⑥ Month= 2 非数字 日 1≤ day ≤31 ⑦ day<1 ⑧ Day>311 ⑨ 非数字 测试用例表 测试用例编号 输入数据 预期输出 实际结果 通