()ý
Home
Ȩ ȸҰ ý Ʈ ũ
 
 
ۼ : 06-04-07 10:31
x345 LVM .
 ۾ :
ȸ : 4,339  

x345 Series LVM ġ


  ũ 뷮 Ͽ ο ũ 2 ߰ ũ ִ .


1. ý shutdown


  - ġ ũ hot swap ʱ ....


2. fdisk -l


  - ġ ũ Ȯ


Disk /dev/sdd: 40.9 GB, 40982151168 bytes
16 heads, 63 sectors/track, 79408 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes


Disk /dev/sde: 20.4 GB, 20411080704 bytes
16 heads, 63 sectors/track, 39549 cylinders
Units = cylinders of 1008 * 512 = 516096 bytes


3. fdsik /dev/sdd , /dev/sde


  - ũ Ƽ . ( ڼ Ƽ Ȩ Ȯ )


4. ũ LVM .


[root@test /]# pvcreate /dev/hdd1
pvcreate -- ERROR: "/etc/lvmtab" doesn't exist; please run vgscan
[root@test /]# pvcreate /dev/sdd1
pvcreate -- ERROR: "/etc/lvmtab" doesn't exist; please run vgscan


 - ޽ /etc/lvmtab Ǿ ʱ ߻ Դϴ.


[root@test /]# touch /etc/lvmtab
[root@test /]# vgscan
vgscan -- reading all physical volumes (this may take a while...)
vgscan -- "/etc/lvmtab" and "/etc/lvmtab.d" successfully created
vgscan -- WARNING: This program does not do a VGDA backup of your volume group
[root@test /]# pvcreate /dev/sdd1
pvcreate -- physical volume "/dev/sdd1" successfully created
[root@test /]# pvcreate /dev/sde1
pvcreate -- physical volume "/dev/sde1" successfully created
[root@test /]# vgcreate somang /dev/hdc1 /dev/hdd1
vgcreate -- INFO: using default physical extent size 4 MB
vgcreate -- INFO: maximum logical volume size is 255.99 Gigabyte
vgcreate -- doing automatic backup of volume group "somang"
vgcreate -- volume group "somang" successfully created and activated
[root@test /]# vgdisplay
--- Volume group ---
VG Name               test
VG Access             read/write
VG Status             available/resizable
VG #                  0
MAX LV                256
Cur LV                0
Open LV               0
MAX LV Size           255.99 GB
Max PV                256
Cur PV                2
Act PV                2
VG Size               57.16 GB
PE Size               4 MB
Total PE              14634
Alloc PE / Size       0 / 0
Free  PE / Size       14634 / 57.16 GB
VG UUID               ytmQEb-D4RU-a6R0-QTB4-ipip-LXDO-6N46h1
[root@test /]# lvcreate -L 57160M -n test1 test
lvcreate -- doing automatic backup of "somang"
lvcreate -- logical volume "/dev/test/test1" successfully created
[root@test /]# lvscan
lvscan -- ACTIVE            "/dev/test/test1" [55.82 GB]
lvscan -- 1 logical volumes with 55.82 GB total in 1 volume group
lvscan -- 1 active logical volumes
[root@test /]# mkfs.ext3 /dev/test/test1
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
7323648 inodes, 14632960 blocks
731648 blocks (5.00%) reserved for the super user
First data block=0
447 block groups
32768 blocks per group, 32768 fragments per group
16384 inodes per group
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424
Writing inode tables:                            
Creating journal (8192 blocks):
Writing superblocks and filesystem accounting information: none
done
This filesystem will be automatically checked every 33 mounts or
180 days, whichever comes first.  Use tune2fs -c or -i to override.
[root@test /]#


[root@test]#
[root@test]#
[root@test /]# umount /test
[root@test /]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             28418520   2553192  24421724  10% /
/dev/hda1                99043      9324     84605  10% /boot
none                    127632         0    127632   0% /dev/shm
[root@test /]# clear
[root@test /]# mount /dev/test1/test1 /test
mount: special device /dev/test1/test1 does not exist
[root@test /]# lvscan
lvscan -- ACTIVE            "/dev/test/test1" [55.82 GB]
lvscan -- 1 logical volumes with 55.82 GB total in 1 volume group
lvscan -- 1 active logical volumes
[root@test /]# mount /dev/test/test1 /test
[root@test /]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/hda3             28418520   2553196  24421720  10% /
/dev/hda1                99043      9324     84605  10% /boot
none                    127632         0    127632   0% /dev/shm
/dev/test/test1   57612548     32828  54653128   1% /test
[root@test /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/hda3              28G  2.5G   24G  10% /
/dev/hda1              97M  9.2M   83M  10% /boot
none                  125M     0  125M   0% /dev/shm
/dev/test/test1    55G   33M   53G   1% /test
[root@test /]#  


[root@test /]#tar cvf - /homepage | ( cd /test; tar xvf - )


   ---- .


Hot Swap Disk


 P.S - ۾ ϸ鼭 ......


    ̹ ۾ ϸ鼭 ý ü hotswap ص  disk hotswap ý ߿ ġ ũ ν մϴ.ũ ġ ũ hot swap ϴ Ȯ ۾ ؾ մϴ. hot swap ʴ ũ ý ߿ ġ ϸ , ũ ջ ߻ Ҽ ֽϴ......^^


 
 

Total 106
ȣ     ۾ ¥ ȸ
16
2007/06/28 4945
15 LINUXƮ
2007/05/04 4817
14 Ư IP
2006/02/17 4717
13 LAN ī尡
2006/11/23 4642
12 [sysreport] - ý α׷
2007/07/04 4489
11 solaris (1) linux (2) .
2005/12/07 4389
10 x345 LVM .
2006/04/07 4340
9 ߰ unable to lock password file ϴ.
2006/11/23 4321
8 useradd ȯ
2006/08/04 4315
7 Unable to find swap-space signature
2007/11/01 4239
6 [L I N U X] disk spacing management - view partion table
2005/12/06 4137
5 Raid - Level
2006/01/12 4092
4 Ʈ - route
2006/08/11 4084
3 chkconfig
2005/12/07 4024
2 nfs ϱ
2007/05/07 3450
 1  2  3  4  5  6  7  8  
 
 
 
Administrator Login