resize a filesystem in solaris 10


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers resize a filesystem in solaris 10
# 1  
Old 06-16-2009
resize a filesystem in solaris 10

i am facing a problem, i would like to resize a file system called /pcard04 i am not useing any voulme manager and we have a NETAPP center storge.

what i did is
Code:
root@cms-dev # df -h | grep /pcard04
/dev/dsk/c4t60A9800043346C35636F2D6D4F354743d0s0   5.2G   4.0G   1.0G    80%    /pcard04

then
Code:
root@cms-dev # luxadm probe | grep c4t60A9800043346C35636F2D6D4F354743d0s
    Logical Path:/dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2

Code:
root@cms-dev # luxadm display /dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2
  Vendor:               NETAPP
  Product ID:           LUN
  Revision:             0.2
  Serial Num:           C4l5co-mO5GC
  Unformatted capacity: 10264.000 MBytes
  Read Cache:           Enabled
    Minimum prefetch:   0x0
    Maximum prefetch:   0x0
  Device Type:          Disk device
  Path(s):

  /dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2
  /devices/scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354743:c,raw
   Controller           /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0
    Device Address              500a098186080e69,4
    Host controller port WWN    210000e08b9b9cc1
    Class                       primary
    State                       ONLINE
   Controller           /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0
    Device Address              500a098196080e69,4
    Host controller port WWN    210000e08b9b9cc1
    Class                       secondary
    State                       ONLINE

after that i unmount /pcard04 and resize the lun in NETAPP increaseing the size by 1gb just to test

after it seems solaris didn't figure out that the lun has been increased by 1gb so i reboor -- -r

after that i can see that
Code:
root@cms-dev # luxadm display /dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2
DEVICE PROPERTIES for disk: /dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2
  Vendor:               NETAPP
  Product ID:           LUN
  Revision:             0.2
  Serial Num:           C4l5co-mO5GC
  Unformatted capacity: 11264.000 MBytes
  Read Cache:           Enabled
    Minimum prefetch:   0x0
    Maximum prefetch:   0x0
  Device Type:          Disk device
  Path(s):

  /dev/rdsk/c4t60A9800043346C35636F2D6D4F354743d0s2
  /devices/scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354743:c,raw
   Controller           /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0
    Device Address              500a098186080e69,4
    Host controller port WWN    210000e08b9b9cc1
    Class                       primary
    State                       ONLINE
   Controller           /devices/pci@1d,700000/SUNW,qlc@1/fp@0,0
    Device Address              500a098196080e69,4
    Host controller port WWN    210000e08b9b9cc1
    Class                       secondary
    State                       ONLINE

it got the 1gb, but here is my problem when i run format and select the disk i cant see that it increased ?!
Code:
root@cms-dev # format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@0,0
       1. c1t1d0 <SUN72G cyl 14087 alt 2 hd 24 sec 424>
          /pci@1c,600000/scsi@2/sd@1,0
       2. c4t60A9800043346C35636F2D6D4F35472Fd0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 512>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f35472f
       3. c4t60A9800043346C35636F2D6D4F35474Bd0 <NETAPP-LUN-0.2 cyl 10238 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f35474b
       4. c4t60A9800043346C35636F2D6D4F35484Cd0 <NETAPP-LUN-0.2 cyl 6449 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f35484c
       5. c4t60A9800043346C35636F2D6D4F35487Ad0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f35487a
       6. c4t60A9800043346C35636F2D6D4F35494Dd0 <NETAPP-LUN-0.2 cyl 4299 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f35494d
       7. c4t60A9800043346C35636F2D6D4F354674d0 <NETAPP-LUN-0.2 cyl 4299 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354674
       8. c4t60A9800043346C35636F2D6D4F354734d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354734
       9. c4t60A9800043346C35636F2D6D4F354743d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354743
      10. c4t60A9800043346C35636F2D6D4F354753d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 512>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354753
      11. c4t60A9800043346C35636F2D6D4F354768d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 512>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354768
      12. c4t60A9800043346C35636F2D6D4F354770d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 512>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354770
      13. c4t60A9800043346C35636F2D6D4F354779d0 <NETAPP-LUN-0.2 cyl 6449 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354779
      14. c4t60A9800043346C35636F2D6D4F354836d0 <NETAPP-LUN-0.2 cyl 6449 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354836
      15. c4t60A9800043346C35636F2D6D4F354844d0 <NETAPP-LUN-0.2 cyl 6449 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354844
      16. c4t60A9800043346C35636F2D6D4F354854d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354854
      17. c4t60A9800043346C35636F2D6D4F354861d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354861
      18. c4t60A9800043346C35636F2D6D4F354869d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354869
      19. c4t60A9800043346C35636F2D6D4F354872d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354872
      20. c4t60A9800043346C35636F2D6D4F354937d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 256>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354937
      21. c4t60A9800043346C35636F2D6D4F354945d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 128>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354945
      22. c4t60A9800043346C35636F2D6D4F354955d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 384>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354955
      23. c4t60A9800043346C35636F2D6D4F354963d0 <NETAPP-LUN-0.2 cyl 5374 alt 2 hd 16 sec 384>
          /scsi_vhci/ssd@g60a9800043346c35636f2d6d4f354963
Specify disk (enter its number):
Specify disk (enter its number): 9
selecting c4t60A9800043346C35636F2D6D4F354743d0
[disk formatted]
Warning: Current Disk has mounted partitions.
/dev/dsk/c4t60A9800043346C35636F2D6D4F354743d0s0 is currently mounted on /pcard04. Please see umount(1M).


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        save       - save new disk/partition definitions
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format>
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        7      - change `7' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk cylinders available: 5374 + 2 (reserved cylinders)

Part      Tag    Flag     Cylinders        Size            Blocks
  0 unassigned    wm       0 - 5373        5.25GB    (5374/0/0) 11005952
  1 unassigned    wu       0               0         (0/0/0)           0
  2     backup    wu       0 - 5373        5.25GB    (5374/0/0) 11005952
  3 unassigned    wm       0               0         (0/0/0)           0
  4 unassigned    wm       0               0         (0/0/0)           0
  5 unassigned    wm       0               0         (0/0/0)           0
  6 unassigned    wm       0               0         (0/0/0)           0
  7 unassigned    wm       0               0         (0/0/0)           0

partition>

so whats the problem and how can i fix it?


thanks for the help
# 2  
Old 06-16-2009
the safest way is to backup all data from the disk/lun. after that resize the disk (after unmounting it) on your netapp. build a new filesystem on the larger disk/lun and remount the filesystem. after that copy back your data to the filesystem.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

How to resize filesystem by resizing the LUN without impact to applications.?

Is it possible to resize a filesystem by resizing the LUN on RHEL 6.4 64-bit with LVM and no impact to running applications? The research I have done so far seems to take the approach of adding a new LUN and then expaning the volume group to the new LUN. I'm looking for an approach that avoids a... (7 Replies)
Discussion started by: aenagy
7 Replies

2. Solaris

Solaris Filesystem vs. Windows FileSystem

Hi guys! Could you tell me what's the difference of filesystem of Solaris to filesystem of Windows? I need to compare both. I have read some over the net but it's so much technical. Could you explain it in a more simpler term? I am new to Solaris. Hope you help me guys. Thanks! (4 Replies)
Discussion started by: arah
4 Replies

3. Solaris

Solaris Filesystem

Hi, Is there a command that list the unmounted filesystems ? Thank you (4 Replies)
Discussion started by: anwesh
4 Replies

4. SuSE

Resize Root Filesystem in SUSE Linux

Hello Experts, I am very new to unix environment. Root filesystem in one of our Linux boxes has almost reached 100%. is there a procedure/ way to resize the root filesystem. ****************************************************** ld8331:/ # df -h|more Filesystem Size Used... (2 Replies)
Discussion started by: ashok1784
2 Replies

5. Solaris

Netapp filer LUN Resize. Commands to run on Solaris afterwards.

Hi, I need to increase a veritas filesystem I have currently mounted on a Solaris 10 server. We can resize the LUN on the NetApp filer no problem. What I need to know is what do I do next on the Solaris 10 server I have so that it will see the increase in size. Do I run 'devfsadm' to... (3 Replies)
Discussion started by: gwhelan
3 Replies

6. Solaris

How to resize mirror volume in veritas volume manager 3.5 on Solaris 9 OE

Hi all, I have a problem with vxvm volume which is mirror with two disks. when i am try to increase file system, it is throwing an ERROR: can not allocate 5083938 blocks, ERROR: can not able to run vxassist on this volume. Please find a sutable solutions. Thanks and Regards B. Nageswar... (0 Replies)
Discussion started by: nageswarb
0 Replies

7. Solaris

VxVM filesystem resize

This is actually a VxVM question. I have a volume/filesystem spread over 4*146G disks. Now I want to shrink the filesystem - which I can do using vxresize. However, I want to shrink so that two of the four disks that the filesystem occupies are removed from the volume. Can I do that? (3 Replies)
Discussion started by: blowtorch
3 Replies

8. AIX

Filesystem resize (AIX 5.3)

Hi.. I have to resize a partition(filesystem). I mean reduce the size one particular partition and increase the size of another. What should I do?? Pls help Bala (5 Replies)
Discussion started by: balaji_prk
5 Replies

9. Filesystems, Disks and Memory

Is it possible to resize a slice under Solaris 8

I have encountered my first problem of the year at work with one of our NMS servers. We would like to migrate Cisco Works to Solaris, as it is currently running on NT. The NMS is already running OpenView NNM 6.2 (primary NMS program). Anyhow the /var slice is only 6 mb and is almost full, as... (2 Replies)
Discussion started by: obsolesence
2 Replies

10. UNIX for Dummies Questions & Answers

solaris filesystem

Dear all can we create more than one file system in single slice? I am using solaris 8 ultra spark machine. regards S.Balu. (2 Replies)
Discussion started by: sbaloo
2 Replies
Login or Register to Ask a Question