geodin
asked on
extend filesystem
Need to know how/if to extend filesystem to new space made available from san. For example, have filesystem /dev/sdf1 mounted on /u02 that has 247G space but need 500G more. Client has made available another 500G from san and now we're not sure how to extend u02 to include the additional space.
OS: Linux version 2.6.9-78.0.8.0.1.ELsmp (mockbuild@ca-build17.us.o racle.com) (gcc version 3.4.6 20060404 (Red Hat 3.4.6-10.0.1)) #1 SMP Wed Nov 19 16:39:14 EST 2008
-------------------------- ---------- ---------- ---------- -
df -h output:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 16G 3.4G 83% /
none 3.0G 0 3.0G 0% /dev/shm
/dev/sdc1 30G 5.1G 24G 18% /u01
/dev/sdf1 247G 232G 1.7G 100% /u02
-------------------------- ---------- ---------- ---------- -
fdisk -l output:
Disk /dev/sda: 21.4 GB, 21495808000 bytes
255 heads, 63 sectors/track, 2613 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2613 20988891 83 Linux
Disk /dev/sdb: 12.8 GB, 12897484800 bytes
64 heads, 32 sectors/track, 12300 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12300 12595184 83 Linux
Disk /dev/sdc: 32.2 GB, 32243712000 bytes
64 heads, 32 sectors/track, 30750 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 30750 31487984 83 Linux
Disk /dev/sdd: 268.4 GB, 268439650304 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 32635 262140606 83 Linux
Disk /dev/sde: 268.4 GB, 268439650304 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 32635 262140606 83 Linux
Disk /dev/sdf: 268.4 GB, 268439650304 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 32635 262140606 83 Linux
Disk /dev/sdg: 536.8 GB, 536879300608 bytes
255 heads, 63 sectors/track, 65271 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdg doesn't contain a valid partition table
-------------------------- ---------- ---------- ---------- -
cat /etc/fstab output:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sdb1 swap swap defaults 0 0
LABEL=/u01 /u01 ext3 defaults 1 2
LABEL=/u02 /u02 ext3 defaults 1 2
/dev/hda /media/cdrom auto pamconsole,exec,noauto,man aged 0 0
OS: Linux version 2.6.9-78.0.8.0.1.ELsmp (mockbuild@ca-build17.us.o
--------------------------
df -h output:
Filesystem Size Used Avail Use% Mounted on
/dev/sda1 20G 16G 3.4G 83% /
none 3.0G 0 3.0G 0% /dev/shm
/dev/sdc1 30G 5.1G 24G 18% /u01
/dev/sdf1 247G 232G 1.7G 100% /u02
--------------------------
fdisk -l output:
Disk /dev/sda: 21.4 GB, 21495808000 bytes
255 heads, 63 sectors/track, 2613 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 2613 20988891 83 Linux
Disk /dev/sdb: 12.8 GB, 12897484800 bytes
64 heads, 32 sectors/track, 12300 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 * 1 12300 12595184 83 Linux
Disk /dev/sdc: 32.2 GB, 32243712000 bytes
64 heads, 32 sectors/track, 30750 cylinders
Units = cylinders of 2048 * 512 = 1048576 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 * 1 30750 31487984 83 Linux
Disk /dev/sdd: 268.4 GB, 268439650304 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 32635 262140606 83 Linux
Disk /dev/sde: 268.4 GB, 268439650304 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sde1 1 32635 262140606 83 Linux
Disk /dev/sdf: 268.4 GB, 268439650304 bytes
255 heads, 63 sectors/track, 32635 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdf1 1 32635 262140606 83 Linux
Disk /dev/sdg: 536.8 GB, 536879300608 bytes
255 heads, 63 sectors/track, 65271 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdg doesn't contain a valid partition table
--------------------------
cat /etc/fstab output:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
LABEL=SWAP-sdb1 swap swap defaults 0 0
LABEL=/u01 /u01 ext3 defaults 1 2
LABEL=/u02 /u02 ext3 defaults 1 2
/dev/hda /media/cdrom auto pamconsole,exec,noauto,man
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Ok, figured out I hadn't created the u03 directory yet. Works now, I just need to do some testing.
ASKER
Ultimately I did not use this answer but it helped me a great deal and was excellent otherwise.
Thank you.
Thank you.
:) Yeah I would just ask if you'd created the mountpoint. Just take your time. I hope everything goes well with you :)
ASKER
I have run fdisk on /dev/sdg and created partion 1 as /dev/sdg1 fine, I then ran mkfs.ext2 on /dev/sdg1 and it seemed to run fine, though I was a little confused as it looked like it was prompting me for response but before I could figure out what to enter it completed.
I then ran e2label /dev/sdg1 /u03
I then added line to fstab as :
LABEL=/u03 /u03 ext3 defaults 1 2
But when I run mount /u03 I get "mount: mount point /u03 does not exist"
df -h shows no /u03 filesystem either.
Have I missed something?