난 372.56GB 이라는 사용량 전부를 하나로 사용하고 싶은 생각이다
mp3 라는 이름으로 볼륨을 만들어 보겠다
이제 리눅스 파일 시스템을 만든다
확인을 해보자
잘 설정 된것 같다.
이제 만들어진 mp3 라는 이름의 볼륨을 마운트 해서 사용하면 된다 :)
mp3 라는 이름으로 볼륨을 만들어 보겠다
[root@localhost /]# lvcreate -L 372G -n mp3 lvm0
lvcreate -- doing automatic backup of "lvm0"
lvcreate -- logical volume "/dev/lvm0/mp3" successfully created
[root@localhost /]#
lvcreate -- doing automatic backup of "lvm0"
lvcreate -- logical volume "/dev/lvm0/mp3" successfully created
[root@localhost /]#
이제 리눅스 파일 시스템을 만든다
[root@localhost /]# mkfs -V -t ext3 /dev/lvm0/mp3
mkfs version 2.11y (Feb 24 2003)
mkfs.ext3 /dev/lvm0/mp3
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
48758784 inodes, 97517568 blocks
4875878 blocks (5.00%) reserved for the super user
First data block=0
2976 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, 20480000, 23887872, 71663616, 78675968
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost /]#
mkfs version 2.11y (Feb 24 2003)
mkfs.ext3 /dev/lvm0/mp3
mke2fs 1.32 (09-Nov-2002)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
48758784 inodes, 97517568 blocks
4875878 blocks (5.00%) reserved for the super user
First data block=0
2976 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, 20480000, 23887872, 71663616, 78675968
Writing inode tables: done
Creating journal (8192 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 27 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
[root@localhost /]#
[root@localhost /]# vgdisplay -v lvm0
--- Volume group ---
VG Name lvm0
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 1
Open LV 0
MAX LV Size 1023.97 GB
Max PV 256
Cur PV 2
Act PV 2
VG Size 372.56 GB
PE Size 16 MB
Total PE 23844
Alloc PE / Size 23808 / 372 GB
Free PE / Size 36 / 576 MB
VG UUID S2l6O0-ga42-HDIp-3bba-Wkgv-uveK-n0oYK6
--- Logical volume ---
LV Name /dev/lvm0/mp3
VG Name lvm0
LV Write Access read/write
LV Status available
LV # 1
# open 0
LV Size 372 GB
Current LE 23808
Allocated LE 23808
Allocation next free
Read ahead sectors 1024
Block device 58:0
--- Physical volumes ---
PV Name (#) /dev/hdc1 (2)
PV Status available / allocatable
Total PE / Free PE 11922 / 36
PV Name (#) /dev/hda1 (1)
PV Status available / allocatable
Total PE / Free PE 11922 / 0
[root@localhost /]#
--- Volume group ---
VG Name lvm0
VG Access read/write
VG Status available/resizable
VG # 0
MAX LV 256
Cur LV 1
Open LV 0
MAX LV Size 1023.97 GB
Max PV 256
Cur PV 2
Act PV 2
VG Size 372.56 GB
PE Size 16 MB
Total PE 23844
Alloc PE / Size 23808 / 372 GB
Free PE / Size 36 / 576 MB
VG UUID S2l6O0-ga42-HDIp-3bba-Wkgv-uveK-n0oYK6
--- Logical volume ---
LV Name /dev/lvm0/mp3
VG Name lvm0
LV Write Access read/write
LV Status available
LV # 1
# open 0
LV Size 372 GB
Current LE 23808
Allocated LE 23808
Allocation next free
Read ahead sectors 1024
Block device 58:0
--- Physical volumes ---
PV Name (#) /dev/hdc1 (2)
PV Status available / allocatable
Total PE / Free PE 11922 / 36
PV Name (#) /dev/hda1 (1)
PV Status available / allocatable
Total PE / Free PE 11922 / 0
[root@localhost /]#
잘 설정 된것 같다.
이제 만들어진 mp3 라는 이름의 볼륨을 마운트 해서 사용하면 된다 :)
