Red Hat ENTERPRISE LINUX 4 - LVM ADMINISTRATOR Guida di Installazione Pagina 75

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
Vedere la pagina 74
Creating the New Logical Volume
63
Volume group "yourvg" successfully split from "myvg"
You can use the vgs command to see the attributes of the two volume groups.
[root@tng3-1 ~]# vgs
VG #PV #LV #SN Attr VSize VFree
myvg 2 1 0 wz--n- 34.30G 10.80G
yourvg 1 0 0 wz--n- 17.15G 17.15G
5.3.4. Creating the New Logical Volume
After creating the new volume group, you can create the new logical volume yourlv.
[root@tng3-1 ~]# lvcreate -L5G -n yourlv yourvg
Logical volume "yourlv" created
5.3.5. Making a File System and Mounting the New Logical Volume
You can make a file system on the new logical volume and mount it.
[root@tng3-1 ~]# mkfs.gfs2 -plock_nolock -j 1 /dev/yourvg/yourlv
This will destroy any data on /dev/yourvg/yourlv.
Are you sure you want to proceed? [y/n] y
Device: /dev/yourvg/yourlv
Blocksize: 4096
Filesystem Size: 1277816
Journals: 1
Resource Groups: 20
Locking Protocol: lock_nolock
Lock Table:
Syncing...
All Done
[root@tng3-1 ~]# mount /dev/yourvg/yourlv /mnt
5.3.6. Activating and Mounting the Original Logical Volume
Since you had to deactivate the logical volume mylv, you need to activate it again before you can
mount it.
root@tng3-1 ~]# lvchange -a y mylv
[root@tng3-1 ~]# mount /dev/myvg/mylv /mnt
[root@tng3-1 ~]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/yourvg/yourlv 24507776 32 24507744 1% /mnt
/dev/myvg/mylv 24507776 32 24507744 1% /mnt
5.4. Removing a Disk from a Logical Volume
Vedere la pagina 74
1 2 ... 70 71 72 73 74 75 76 77 78 79 80 ... 131 132

Commenti su questo manuale

Nessun commento