The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com



UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Resize Root Filesystem in SUSE Linux ashok1784 SuSE 2 05-05-2009 01:09 PM
Netapp filer LUN Resize. Commands to run on Solaris afterwards. gwhelan SUN Solaris 3 08-07-2008 02:40 PM
VxVM filesystem resize blowtorch SUN Solaris 3 01-15-2008 04:24 AM
Filesystem resize (AIX 5.3) balaji_prk AIX 5 10-28-2005 07:23 PM
Is it possible to resize a slice under Solaris 8 obsolesence Filesystems, Disks and Memory 2 01-05-2004 08:26 PM

Reply
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 06-16-2009
q8devilish q8devilish is offline
Registered User
  
 

Join Date: Jun 2009
Location: Kuwait
Posts: 16
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 (permalink)  
Old 06-16-2009
DukeNuke2's Avatar
DukeNuke2 DukeNuke2 is offline Forum Staff  
Soulman
  
 

Join Date: Jul 2006
Location: Germany, Berlin
Posts: 3,020
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.
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 07:31 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0