Grow LUN presented on Linux host

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Grow LUN presented on Linux host
# 1  
Old 05-22-2011
Grow LUN presented on Linux host

Hi,

I have a SAN LUN of 550 GB created as an ext3 partition of the entire lun and need to make the lun and partition larger... 600 GB

Code:
 
[root@jdcijisprod ~]# fdisk -l /dev/sdj
Disk /dev/sdj: 590.5 GB, 590558003200 bytes
255 heads, 63 sectors/track, 71797 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
   Device Boot      Start         End      Blocks   Id  System
/dev/sdj1               1       71797   576709371   83  Linux

I have read that once you extend the LUN on the array side you can umount the LUN, run fsck and use the resize2fs on the host side.
Can anyone verifyif this is correct and if there are any potential dangers
in doing this.
# 2  
Old 05-23-2011
You'll need to resize the partition as well before doing the resize. The more flexible way of doing dynamic resizing is to use LVM instead of partitions (just an fyi). If you had used LVM, you could have added a new LUN space to a volume group (VG) and expanded the logical volume (LV) and done the filesystem resize without having to umount or reboot or anything...
# 3  
Old 05-24-2011
Thanks cjcox, if I resize the partition would I lose the current data?
# 4  
Old 05-25-2011
Quote:
Originally Posted by jamba1
Thanks cjcox, if I resize the partition would I lose the current data?

I recommend you take a full backup before you do such activity, just in case.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Red Hat

adding LUN to linux server

Hi All, I am new for this blog and this is my first Query on this blog. I would like to dael with graet masters on linux. Here we go, After storage people created the LUN, How to add that LUN to Linux server. (Make that LUN visibility on linux server.) ? How to view the LUN... (5 Replies)
Discussion started by: abhay1983
5 Replies

2. UNIX for Advanced & Expert Users

Removing EMC LUN from Solaris 10 host without a reboot

I have seen a few threads / posts on the forum's but nothing specific to what Iam after. So Iam hoping you can help. Issue : Iam hoping to remove unused emc luns from my solaris servers , T2000 (5.10 Generic_142900-02). I have a list of the process I have followed for the removal of the luns.... (3 Replies)
Discussion started by: furby
3 Replies

3. AIX

Any tips to grow iSCSI LUN

Hi, I have an iSCSI LUN attached to an AIX 5.3 box. It's initial size is 250GB, I just grew it on the SAN to 300GB, but AIX is not seeing the change. Right now I have some processes going and it's eating up the disk space. I need to grow this lun by atleast 30GB otherwise the process with bomb... (5 Replies)
Discussion started by: bbbngowc
5 Replies

4. AIX

Single command to change the attributes of all luns presented to an AIX host

Hi, I would like to know if there is a command similar to scsimgr in HP-UX that can help me change the algorithm and reserve_policy attributes of all luns presented to an AIX host. Otherwise I would have to use, chdev -l hdiskX -a algorithm=round_robin reserve_policy=no_reserve in a... (1 Reply)
Discussion started by: kanna_geekworkz
1 Replies

5. Filesystems, Disks and Memory

Finding SAN Lun's on Linux.

Am trying to differentiate between the local disks and LUN's presented from SAN onto the server. Have Tried fdisk -l, however I quite cudn't differentiate the local disks from SAN presented LUN's. Can you pls. let me know the procedure and commands to find this. OS - RHEL 4 SAN - EMC... (3 Replies)
Discussion started by: Crazy_murli
3 Replies

6. Solaris

Making filesystem on presented lun

Hi, I am working on SunOS perlrate 5.10 Generic_127111-09 sun4v sparc SUNW,SPARC-Enterprise-T5120. The server has an LSISAS3801E HBA card installed and is connected to a StorageTek 2530 array. I have made a volume on arrary using Common Array Manager. I can see the volume on server: ... (2 Replies)
Discussion started by: seanban
2 Replies

7. Solaris

Can't see Lun presented from T3B to Solaris8

Hello, I am having trouble with getting Lun visible to the solaris 8 host from the Array SUN T3B. It's SunFire 280R with Qlogic QLA2340 directly connected via 1 FC path to T3. On the array there is one 500GB volume created and mounted. I have tried with both F/w version of the array 2.1.6 and... (4 Replies)
Discussion started by: oktawik
4 Replies

8. UNIX for Advanced & Expert Users

VxVM disk/lun grow

hi, i have a volume on a LUN of an EMC-storage and i need to increase the size. i could increase the size of the LUN on the EMC, i could increase the size of the disk for solaris, but how can i tell the veritas volume manager that the disk is larger now? what i've done: 1. LUN on EMC 2.... (3 Replies)
Discussion started by: pressy
3 Replies
Login or Register to Ask a Question