Now changing the ext3 FS to the ext4 FS type depends on the Requirement.
=========================================================================
=====>> check the fs type by the below information
[root@servername ~]# mount | grep -i media
/dev/mapper/vg3-media1 on /media type ext3 (rw)
=====>> also check in the fstab file
[root@servername ~]# cat /etc/fstab
/dev/vg0/root / ext3 defaults 1 1
/dev/vg0/var /var ext3 defaults 1 2
/dev/vg0/tmp /tmp ext3 defaults 1 2
/dev/vg0/usr /usr ext3 defaults 1 2
/dev/vg0/opt /opt ext3 defaults 1 2
/dev/vg0/home /home ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/vg0/swap swap swap defaults 0 0
/dev/mapper/vg1-lv0 /data ext3 defaults,user_xattr 1 2
#/dev/mapper/vg2-media /media ext4 defaults 1 2
/dev/mapper/vg3-media1 /media ext3 defaults 1 2
======>> umount the FS and give the below 2 commands and mount it with ext4 type.
[root@servername ~]# tune4fs -O extents,uninit_bg,dir_index /dev/vg3/media1
tune4fs 1.41.9 (22-Aug-2009)
Please run e4fsck on the filesystem.
[root@servername ~]# fsck.ext4 -fDC0 /dev/vg3/media1
e4fsck 1.41.9 (22-Aug-2009)
Do you really want to continue (y/n)? yes
/dev/vg3/media1: recovering journal
/dev/vg3/media1: ***** FILE SYSTEM WAS MODIFIED *****
=======>> now check the FS type has been changed to the ext4 type from ext3 as shown below.
[root@servername ~]# mount | grep -i media
/dev/mapper/vg3-media1 on /media type ext4 (rw)
=======>> Now change the FS type in the /etc/fstab to ext4 type.
[root@servername ~]# cat /etc/fstab
/dev/vg0/root / ext3 defaults 1 1
/dev/vg0/var /var ext3 defaults 1 2
/dev/vg0/tmp /tmp ext3 defaults 1 2
/dev/vg0/usr /usr ext3 defaults 1 2
/dev/vg0/opt /opt ext3 defaults 1 2
/dev/vg0/home /home ext3 defaults 1 2
LABEL=/boot /boot ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/vg0/swap swap swap defaults 0 0
/dev/mapper/vg1-lv0 /data ext3 defaults,user_xattr 1 2
#/dev/mapper/vg2-media /media ext4 defaults 1 2
/dev/mapper/vg3-media1 /media ext4 defaults 1 2
No comments:
Post a Comment