◆当blogは、Linuxサーバ構築する際の実際の設定手順を個人的メモとして記載しております。LinuC試験の役に立つ情報があるかも…?
[root@A]# fdisk -l /dev/sda
Disk /dev/sda: 8589 MB, 8589934592 bytes
255 heads, 63 sectors/track, 1044 cylinders
Units = シリンダ数 of 16065 * 512 = 8225280 bytes
デバイス Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 1044 8281507+ 8e Linux LVM
[root@A]# cat /proc/mdstat
Personalities :
unused devices: <none>
[root@A]# lvscan
/dev/cdrom: read failed after 0 of 2048 at 0: 入力/出力エラーです
ACTIVE '/dev/VolGroup00/LogVol00' [4.00 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol03' [1.00 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol02' [1.00 GB] inherit
ACTIVE '/dev/VolGroup00/LogVol01' [1.00 GB] inherit
[root@A]# df -T
Filesystem Type 1K-ブロック 使用 使用可 使用% マウント位置
/dev/mapper/VolGroup00-LogVol00
ext3 4062912 3460740 392460 90% /
/dev/mapper/VolGroup00-LogVol03
ext3 1015704 88808 874468 10% /tmp
/dev/mapper/VolGroup00-LogVol02
ext3 1015704 274912 688364 29% /var
/dev/sda1 ext3 101086 12074 83793 13% /boot
tmpfs tmpfs 257720 0 257720 0% /dev/shm
/dev/mapper/VolGroup00-LogVol02
ext3 1015704 274912 688364 29% /mnt
[root@A]# ls -l /dev/mapper/VolGroup00-LogVol0*
brw-rw---- 1 root disk 253, 0 1月 5 21:15 /dev/mapper/VolGroup00-LogVol00
brw-rw---- 1 root disk 253, 3 1月 5 21:15 /dev/mapper/VolGroup00-LogVol01
brw-rw---- 1 root disk 253, 2 1月 5 21:15 /dev/mapper/VolGroup00-LogVol02
brw-rw---- 1 root disk 253, 1 1月 5 21:15 /dev/mapper/VolGroup00-LogVol03
[root@A]# pvdisplay /dev/sda2
/dev/cdrom: read failed after 0 of 2048 at 0: 入力/出力エラーです
--- Physical volume ---
PV Name /dev/sda2
VG Name VolGroup00
PV Size 7.90 GB / not usable 23.41 MB
Allocatable yes
PE Size (KByte) 32768
Total PE 252
Free PE 28
Allocated PE 224
PV UUID NZOvJm-9UF6-sXaW-y1Fd-1pJ0-fpzW-OVk750
[root@A]# pvscan
/dev/cdrom: open failed: 読み込み専用ファイルシステムです
Attempt to close device '/dev/cdrom' which is not open.
PV /dev/sda2 VG VolGroup00 lvm2 [7.88 GB / 896.00 MB free]
Total: 1 [7.88 GB] / in use: 1 [7.88 GB] / in no VG: 0 [0 ]
[root@A]# vgdisplay
--- Volume group ---
VG Name VolGroup00
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 5
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 4
Open LV 4
Max PV 0
Cur PV 1
Act PV 1
VG Size 7.88 GB
PE Size 32.00 MB
Total PE 252
Alloc PE / Size 224 / 7.00 GB
Free PE / Size 28 / 896.00 MB
VG UUID V9Kj8z-YYNg-1nxg-WqfE-0c9v-kDrM-HlQ2Rs
[root@A]# lvdisplay /dev/VolGroup00/LogVol02
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol02
VG Name VolGroup00
LV UUID JTByn9-eKq8-61Kj-f8Y0-aggW-gX1x-fo4XQa
LV Write Access read/write
LV Status available
# open 1
LV Size 1.00 GB
Current LE 32
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:2
[root@A]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VolGroup00 lvm2 a- 7.88G 896.00M
[root@A]# vgs
VG #PV #LV #SN Attr VSize VFree
VolGroup00 1 4 0 wz--n- 7.88G 896.00M
[root@A]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LogVol00 VolGroup00 -wi-ao 4.00G
LogVol01 VolGroup00 -wi-ao 1.00G
LogVol02 VolGroup00 -wi-ao 1.00G
LogVol03 VolGroup00 -wi-ao 1.00G
[root@A]# hdparm /dev/sda
/dev/sda:
readonly = 0 (off)
readahead = 256 (on)
geometry = 1044/255/63, sectors = 16777216, start = 0
[root@A]# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 30276 MB in 2.00 seconds = 15175.83 MB/sec
Timing buffered disk reads: 74 MB in 3.09 seconds = 23.98 MB/sec
COMMENT
無題
you're just extremelyy fantastic. I гeally liҝe what ʏօu've acquired here, reaⅼly likе what you're ѕaying annd
tһe way in which you ѕay it. Үоu make it enjoyable and you
ѕtill taҝe care of tоo kеep it ѕensible. I cɑnt wait to гead much mօre from
you. This is reɑlly a terrific site.
無題
ɑ very neatly writtеn article. Ι'll bbe ѕure to bookmark it aand сome Ƅack
tօ learn extra of youг սseful information. Thɑnk ʏou fօr thе post.
I ԝill certainly return.
無題
to the blogosphere. Simple Ƅut very accurate info… Aρpreciate yоur sharing tһіѕ оne.
A must read post!
無題
a ⅼot оf сompletely unique contеnt I've either authored myself oor outsourced Ƅut іt ⅼooks like a lߋt оf it is popping it up all ovеr the internet wіthout mү permission. Ⅾo you
know any techniques tto help prevent cоntent from eing ripped off?
I'd truly apprecіate іt.
無題
nowadays. I truloy appreсiate individuals like y᧐u!
Τake care!!