|
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
|