Case1:
X5-2 Half Rack, 1.6T of Total Free space after
[root@mbflxdbpdbadm01 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VGExaDb lvm2 a--u 114.00g 29.00g
/dev/sda3 VGExaDb lvm2 a--u 1.52t 1.42t
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LVDbOra1 VGExaDb -wi-ao---- 100.00g
LVDbSwap1 VGExaDb -wi-ao---- 24.00g
LVDbSys1 VGExaDb -wi-ao---- 30.00g
LVDbSys2 VGExaDb -wi-a----- 30.00g
LVDoNotRemoveOrUse VGExaDb -wi-a----- 1.00g
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
30G 23G 5.3G 82% /
tmpfs 253G 4.0K 253G 1% /dev/shm
/dev/sda1 488M 29M 424M 7% /boot
/dev/mapper/VGExaDb-LVDbOra1
99G 79G 16G 84% /u01
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvextend -L+100G --verbose /dev/VGExaDb/LVDbOra1
Using volume group(s) on command line.
Writing physical volume data to disk "/dev/sda2"
Physical volume "/dev/sda2" successfully written
Writing physical volume data to disk "/dev/sda3"
Physical volume "/dev/sda3" successfully written
Archiving volume group "VGExaDb" metadata (seqno 22).
Extending logical volume VGExaDb/LVDbOra1 to 200.00 GiB
Size of logical volume VGExaDb/LVDbOra1 changed from 100.00 GiB (25600 extents) to 200.00 GiB (51200 extents).
Loading VGExaDb-LVDbOra1 table (249:3)
Suspending VGExaDb-LVDbOra1 (249:3) with device flush
Resuming VGExaDb-LVDbOra1 (249:3)
Creating volume group backup "/etc/lvm/backup/VGExaDb" (seqno 23).
Logical volume LVDbOra1 successfully resized.
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvscan | grep LVDbOra1
ACTIVE '/dev/VGExaDb/LVDbOra1' [200.00 GiB] inherit
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# resize2fs -p /dev/VGExaDb/LVDbOra1
resize2fs 1.43-WIP (20-Jun-2013)
Filesystem at /dev/VGExaDb/LVDbOra1 is mounted on /u01; on-line resizing required
old_desc_blocks = 7, new_desc_blocks = 13
The filesystem on /dev/VGExaDb/LVDbOra1 is now 52428800 blocks long.
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvcreate -L100GB -n LVDbOra2 VGExaDb
Logical volume "LVDbOra2" created.
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u02 /dev/VGExaDb/LVDbOra2
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u02
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214400 blocks
1310720 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
800 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u02
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra2 /u02
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvcreate -L1000GB -n LVDbOra3 VGExaDb
Logical volume "LVDbOra3" created.
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u03 /dev/VGExaDb/LVDbOra3
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u03
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536000 inodes, 262144000 blocks
13107200 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
8000 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u03
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra3 /u03
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LVDbOra1 VGExaDb -wi-ao---- 200.00g
LVDbOra2 VGExaDb -wi-ao---- 100.00g
LVDbOra3 VGExaDb -wi-ao---- 1000.00g
LVDbSwap1 VGExaDb -wi-ao---- 24.00g
LVDbSys1 VGExaDb -wi-ao---- 30.00g
LVDbSys2 VGExaDb -wi-a----- 30.00g
LVDoNotRemoveOrUse VGExaDb -wi-a----- 1.00g
[root@mbflxdbpdbadm01 ~]# lvcreate -L100GB -n LVDbOra4 VGExaDb
Logical volume "LVDbOra4" created.
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u04 /dev/VGExaDb/LVDbOra4
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u04
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214400 blocks
1310720 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
800 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u04
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra4 /u04
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvcreate -L188GB -n LVDbOra5 VGExaDb
Logical volume "LVDbOra5" created.
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u05 /dev/VGExaDb/LVDbOra5
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u05
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
12320768 inodes, 49283072 blocks
2464153 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1504 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u05
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra5 /u05
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# cp /etc/fstab .
[root@mbflxdbpdbadm01 ~]# vi /etc/fstab
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# umount /u02
[root@mbflxdbpdbadm01 ~]# mount /u02
[root@mbflxdbpdbadm01 ~]# umount /u03
[root@mbflxdbpdbadm01 ~]# mount /u03
[root@mbflxdbpdbadm01 ~]# umount /u04
[root@mbflxdbpdbadm01 ~]# mount /u04
[root@mbflxdbpdbadm01 ~]# umount /u05
[root@mbflxdbpdbadm01 ~]# mount /u05
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# vfs
-bash: vfs: command not found
[root@mbflxdbpdbadm01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LVDbOra1 VGExaDb -wi-ao---- 200.00g
LVDbOra2 VGExaDb -wi-ao---- 100.00g
LVDbOra3 VGExaDb -wi-ao---- 1000.00g
LVDbOra4 VGExaDb -wi-ao---- 100.00g
LVDbOra5 VGExaDb -wi-ao---- 188.00g
LVDbSwap1 VGExaDb -wi-ao---- 24.00g
LVDbSys1 VGExaDb -wi-ao---- 30.00g
LVDbSys2 VGExaDb -wi-a----- 30.00g
LVDoNotRemoveOrUse VGExaDb -wi-a----- 1.00g
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
30G 23G 5.3G 82% /
tmpfs 253G 4.0K 253G 1% /dev/shm
/dev/sda1 488M 29M 424M 7% /boot
/dev/mapper/VGExaDb-LVDbOra1
197G 79G 110G 42% /u01
/dev/mapper/VGExaDb-LVDbOra2
99G 60M 94G 1% /u02
/dev/mapper/VGExaDb-LVDbOra3
985G 72M 935G 1% /u03
/dev/mapper/VGExaDb-LVDbOra4
99G 60M 94G 1% /u04
/dev/mapper/VGExaDb-LVDbOra5
185G 60M 176G 1% /u05
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# mount
/dev/mapper/VGExaDb-LVDbSys1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,size=258342m)
/dev/sda1 on /boot type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra1 on /u01 type ext4 (rw,nodev)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/mapper/VGExaDb-LVDbOra2 on /u02 type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra3 on /u03 type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra4 on /u04 type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra5 on /u05 type ext4 (rw,nodev)
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
Case2:
X5-2 Half Rack, 1.6T of Total Free space after
[root@mbflxdbpdbadm01 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VGExaDb lvm2 a--u 114.00g 29.00g
/dev/sda3 VGExaDb lvm2 a--u 1.52t 1.42t
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LVDbOra1 VGExaDb -wi-ao---- 100.00g
LVDbSwap1 VGExaDb -wi-ao---- 24.00g
LVDbSys1 VGExaDb -wi-ao---- 30.00g
LVDbSys2 VGExaDb -wi-a----- 30.00g
LVDoNotRemoveOrUse VGExaDb -wi-a----- 1.00g
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
30G 23G 5.3G 82% /
tmpfs 253G 4.0K 253G 1% /dev/shm
/dev/sda1 488M 29M 424M 7% /boot
/dev/mapper/VGExaDb-LVDbOra1
99G 79G 16G 84% /u01
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvextend -L+100G --verbose /dev/VGExaDb/LVDbOra1
Using volume group(s) on command line.
Writing physical volume data to disk "/dev/sda2"
Physical volume "/dev/sda2" successfully written
Writing physical volume data to disk "/dev/sda3"
Physical volume "/dev/sda3" successfully written
Archiving volume group "VGExaDb" metadata (seqno 22).
Extending logical volume VGExaDb/LVDbOra1 to 200.00 GiB
Size of logical volume VGExaDb/LVDbOra1 changed from 100.00 GiB (25600 extents) to 200.00 GiB (51200 extents).
Loading VGExaDb-LVDbOra1 table (249:3)
Suspending VGExaDb-LVDbOra1 (249:3) with device flush
Resuming VGExaDb-LVDbOra1 (249:3)
Creating volume group backup "/etc/lvm/backup/VGExaDb" (seqno 23).
Logical volume LVDbOra1 successfully resized.
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvscan | grep LVDbOra1
ACTIVE '/dev/VGExaDb/LVDbOra1' [200.00 GiB] inherit
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# resize2fs -p /dev/VGExaDb/LVDbOra1
resize2fs 1.43-WIP (20-Jun-2013)
Filesystem at /dev/VGExaDb/LVDbOra1 is mounted on /u01; on-line resizing required
old_desc_blocks = 7, new_desc_blocks = 13
The filesystem on /dev/VGExaDb/LVDbOra1 is now 52428800 blocks long.
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvcreate -L100GB -n LVDbOra2 VGExaDb
Logical volume "LVDbOra2" created.
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u02 /dev/VGExaDb/LVDbOra2
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u02
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214400 blocks
1310720 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
800 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u02
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra2 /u02
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvcreate -L1000GB -n LVDbOra3 VGExaDb
Logical volume "LVDbOra3" created.
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u03 /dev/VGExaDb/LVDbOra3
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u03
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
65536000 inodes, 262144000 blocks
13107200 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
8000 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
102400000, 214990848
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u03
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra3 /u03
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LVDbOra1 VGExaDb -wi-ao---- 200.00g
LVDbOra2 VGExaDb -wi-ao---- 100.00g
LVDbOra3 VGExaDb -wi-ao---- 1000.00g
LVDbSwap1 VGExaDb -wi-ao---- 24.00g
LVDbSys1 VGExaDb -wi-ao---- 30.00g
LVDbSys2 VGExaDb -wi-a----- 30.00g
LVDoNotRemoveOrUse VGExaDb -wi-a----- 1.00g
[root@mbflxdbpdbadm01 ~]# lvcreate -L100GB -n LVDbOra4 VGExaDb
Logical volume "LVDbOra4" created.
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u04 /dev/VGExaDb/LVDbOra4
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u04
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
6553600 inodes, 26214400 blocks
1310720 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
800 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u04
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra4 /u04
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# lvcreate -L188GB -n LVDbOra5 VGExaDb
Logical volume "LVDbOra5" created.
[root@mbflxdbpdbadm01 ~]# mkfs.ext4 -j -L u05 /dev/VGExaDb/LVDbOra5
mke2fs 1.43-WIP (20-Jun-2013)
Filesystem label=u05
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
12320768 inodes, 49283072 blocks
2464153 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1504 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
[root@mbflxdbpdbadm01 ~]# mkdir /u05
[root@mbflxdbpdbadm01 ~]# mount -t ext4 /dev/VGExaDb/LVDbOra5 /u05
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# cp /etc/fstab .
[root@mbflxdbpdbadm01 ~]# vi /etc/fstab
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# umount /u02
[root@mbflxdbpdbadm01 ~]# mount /u02
[root@mbflxdbpdbadm01 ~]# umount /u03
[root@mbflxdbpdbadm01 ~]# mount /u03
[root@mbflxdbpdbadm01 ~]# umount /u04
[root@mbflxdbpdbadm01 ~]# mount /u04
[root@mbflxdbpdbadm01 ~]# umount /u05
[root@mbflxdbpdbadm01 ~]# mount /u05
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# vfs
-bash: vfs: command not found
[root@mbflxdbpdbadm01 ~]# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
LVDbOra1 VGExaDb -wi-ao---- 200.00g
LVDbOra2 VGExaDb -wi-ao---- 100.00g
LVDbOra3 VGExaDb -wi-ao---- 1000.00g
LVDbOra4 VGExaDb -wi-ao---- 100.00g
LVDbOra5 VGExaDb -wi-ao---- 188.00g
LVDbSwap1 VGExaDb -wi-ao---- 24.00g
LVDbSys1 VGExaDb -wi-ao---- 30.00g
LVDbSys2 VGExaDb -wi-a----- 30.00g
LVDoNotRemoveOrUse VGExaDb -wi-a----- 1.00g
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1
30G 23G 5.3G 82% /
tmpfs 253G 4.0K 253G 1% /dev/shm
/dev/sda1 488M 29M 424M 7% /boot
/dev/mapper/VGExaDb-LVDbOra1
197G 79G 110G 42% /u01
/dev/mapper/VGExaDb-LVDbOra2
99G 60M 94G 1% /u02
/dev/mapper/VGExaDb-LVDbOra3
985G 72M 935G 1% /u03
/dev/mapper/VGExaDb-LVDbOra4
99G 60M 94G 1% /u04
/dev/mapper/VGExaDb-LVDbOra5
185G 60M 176G 1% /u05
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]# mount
/dev/mapper/VGExaDb-LVDbSys1 on / type ext4 (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
devpts on /dev/pts type devpts (rw,gid=5,mode=620)
tmpfs on /dev/shm type tmpfs (rw,size=258342m)
/dev/sda1 on /boot type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra1 on /u01 type ext4 (rw,nodev)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/mapper/VGExaDb-LVDbOra2 on /u02 type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra3 on /u03 type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra4 on /u04 type ext4 (rw,nodev)
/dev/mapper/VGExaDb-LVDbOra5 on /u05 type ext4 (rw,nodev)
[root@mbflxdbpdbadm01 ~]#
[root@mbflxdbpdbadm01 ~]#
Case2:
[root@dens12adm08 ~]# vgdisplay | grep Free
Free PE / Size 141123 / 551.26 GB
Create a new 200GB logical volume for a new file system:
[root@dens12adm08 ~]# pvs
PV VG Fmt Attr PSize PFree
/dev/sda2 VGExaDb lvm2 a-- 556.80G 272.80G
/dev/sda3 VGExaDb lvm2 a-- 278.46G 278.46G
[root@dens12adm08 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LVDbOra1 VGExaDb -wi-ao 200.00G
LVDbSwap1 VGExaDb -wi-ao 24.00G
LVDbSys1 VGExaDb -wi-ao 30.00G
[root@dens12adm08 ~]# lvcreate -L200GB -n LVDbOra2 VGExaDb
Logical volume "LVDbOra2" created
[root@dens12adm08 ~]# lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
LVDbOra1 VGExaDb -wi-ao 200.00G
LVDbOra2 VGExaDb -wi-a- 200.00G
LVDbSwap1 VGExaDb -wi-ao 24.00G
LVDbSys1 VGExaDb -wi-ao 30.00G
Create a new file system (and name it /u02):
[root@dens12adm08 ~]# mkfs.ext3 -j -L u02 /dev/VGExaDb/LVDbOra2
mke2fs 1.39 (29-May-2006)
Filesystem label=u02
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
26214400 inodes, 52428800 blocks
2621440 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
1600 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
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 30 mounts or
180 days, whichever comes first. Use tune2fs -c or -i to override.
Mount the new file system:
[root@dens12adm08 ~]# mkdir /u02
[root@dens12adm08 ~]# mount -t ext3 /dev/VGExaDb/LVDbOra2 /u02
[root@dens12adm08 ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VGExaDb-LVDbSys1 30G 4.8G 24G 17% /
/dev/sda1 124M 84M 35M 71% /boot
tmpfs 81G 0 81G 0% /dev/shm
/dev/mapper/VGExaDb-LVDbOra1 197G 25G 163G 14% /u01
/dev/mapper/VGExaDb-LVDbOra2 197G 188M 187G 1% /u02
No comments:
Post a Comment