Showing posts with label volume. Show all posts
Showing posts with label volume. Show all posts

Wednesday, March 23, 2016

check disk lvm on centos

การตรวจสอบ disk LVM บน CentOS
Ref. datadisk.co.uk
#pvs -v


#pvscan -v


#vgdisplay -v  ดูแบบละเอียด


#lvscan ตรวจสอบ disk active



ตรวจสอบ health disk LVM ต้องติดตั้ง package smartctl ดังนี้
Ref.
 install-smart-on-centos-6-4
enterprisenetworkingplanet.com
#yum search smart


#yum install smartmontools.x86_64

ตรวจสอบ health disk ใช้คำสั่งด้านบน pvs -v เพื่อดู /dev/sd? แล้วใช้คำสั่งต่อไปนี้ ดูภาพด้านล่าง
#smartctl -H /dev/sd?




Monday, August 3, 2015

Mount disk volume (Centos) on linux debian

วิธีทำ
1. เปิด Terminal ใช้คำสั่ง vgdisplay ตรวจสอบ Disk volume

termcb:~ # vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 3
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 2
Open LV 0
Max PV 0
Cur PV 1
Act PV 1
VG Size 27.84 GB
PE Size 32.00 MB
Total PE 891
Alloc PE / Size 890 / 27.81 GB
Free PE / Size 1 / 32.00 MB
VG UUID ryYRi4-mXOd-XFaW-4xnR-h1cl-hphh-5QQnlM

2. ใช้คำสั่ง lvscan เช็คสถานะ Hard disk

termcb:~ # lvscan
inactive '/dev/VolGroup00/LogVol00' [26.06 GB] inherit
inactive '/dev/VolGroup00/LogVol01' [1.75 GB] inherit

3. ใช้คำสั่ง ก่อน Mount disk

modprobe dm-mod
vgchange -ay

4. ใช้คำสั่งในข้อ 2. เช็คสถาน Hard disk อีกครั้ง จะพบว่า Disk Active

termcb:~ # lvscan
ACTIVE '/dev/VolGroup00/LogVol00' [26.06 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.75 GB] inherit

5. Mount hard disk เพื่อใช้งาน


mount /dev/VolGroup00/LogVol00 /mount/point


Ref:   
http://pissedoffadmins.com/os/mount-unknown-filesystem-type-lvm2_member.html