0% found this document useful (0 votes)
12 views

SVM FS Expansion_

Uploaded by

ankur23saini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

SVM FS Expansion_

Uploaded by

ankur23saini
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 7

SVM FS Expansion :

=================

root@ldappro4 # df -h /du_ldappro4
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d300 2.0T 2.0T 1003M 100% /du_ldappro4
root@ldappro4 #

Scan new device

# cfgadm -al
# devfsadm

# powermt display dev=all

Pseudo name=emcpower78a
Symmetrix ID=000297000166
Logical device ID=0062
Device WWN=60000970000297000166533030303632
state=alive; policy=SymmOpt; queued-IOs=0
==============================================================================
--------------- Host --------------- - Stor - -- I/O Path -- -- Stats ---
### HW Path I/O Paths Interf. Mode State Q-IOs Errors
==============================================================================
3102 pci@302/pci@2/SUNW,qlc@0,1/fp@0,0 c26t5000097568029846d90s0 FA 2d:06 active
alive 0 0
3102 pci@302/pci@2/SUNW,qlc@0,1/fp@0,0 c26t5000097568029805d90s0 FA 1d:05 active
alive 0 0
3100 pci@302/pci@2/SUNW,qlc@0/fp@0,0 c25t5000097568029806d90s0 FA 1d:06 active
alive 0 0
3100 pci@302/pci@2/SUNW,qlc@0/fp@0,0 c25t5000097568029845d90s0 FA 2d:05 active
alive 0 0
3098 pci@303/pci@2/SUNW,qlc@0,1/fp@0,0 c24t5000097568029805d90s0 FA 1d:05 active
alive 0 0
3098 pci@303/pci@2/SUNW,qlc@0,1/fp@0,0 c24t5000097568029846d90s0 FA 2d:06 active
alive 0 0
3096 pci@303/pci@2/SUNW,qlc@0/fp@0,0 c23t5000097568029806d90s0 FA 1d:06 active
alive 0 0
3096 pci@303/pci@2/SUNW,qlc@0/fp@0,0 c23t5000097568029845d90s0 FA 2d:05 active
alive 0 0
3078 pci@306/pci@1/SUNW,qlc@0,1/fp@0,0 c22t5000097568029846d90s0 FA 2d:06 active
alive 0 0
3078 pci@306/pci@1/SUNW,qlc@0,1/fp@0,0 c22t5000097568029805d90s0 FA 1d:05 active
alive 0 0
3076 pci@306/pci@1/SUNW,qlc@0/fp@0,0 c21t5000097568029806d90s0 FA 1d:06 active
alive 0 0
3076 pci@306/pci@1/SUNW,qlc@0/fp@0,0 c21t5000097568029845d90s0 FA 2d:05 active
alive 0 0
3074 pci@300/pci@2/SUNW,qlc@0,1/fp@0,0 c20t5000097568029805d90s0 FA 1d:05 active
alive 0 0
3074 pci@300/pci@2/SUNW,qlc@0,1/fp@0,0 c20t5000097568029846d90s0 FA 2d:06 active
alive 0 0
3072 pci@300/pci@2/SUNW,qlc@0/fp@0,0 c10t5000097568029845d90s0 FA 2d:05 active
alive 0 0
3072 pci@300/pci@2/SUNW,qlc@0/fp@0,0 c10t5000097568029806d90s0 FA 1d:06 active
alive 0 0
The quickest way to determine from Solaris if the disk is EFI/GPT labelled is to
check the partitions on the disk with Solaris format utility, an EFI/GPT labeled
disk will have partition 8 while an SMI labeled will have partition 7.

The issue with EFI labeled disk is that it could not be configured as a bootable
device on SPARC systems. This had not been a major limitation because the largest
bootable internal disk that is qualified on a SPARC T5 is 600GB in capacity.
System Firmware 8.4+ (SPARC T4) and 9.1+ (SPARC T5) removes this EFI/GPT booting
limitation.

Disk Relabeling
================
The label on the physical disk may be changed by doing the following.
WARNING: Deleting the disk label and relabeling the disk will destroy ALL DATA on
the disk.

STEP 1: OPTIONAL

delete the disk label with "dd if=/dev/zero of=/dev/rdsk/cXtXdXsX count=100

Example

root@meyldmlpsrv16:~# dd if=/dev/zero of=/dev/rdsk/emcpower78c bs=512 count=100


100+0 records in
100+0 records out
root@meyldmlpsrv16:~#

STEP 2: Relabel the disk with the command "format -e cXt4XdX "

root@meyldmlpsrv16:~# format -e emcpower78c

emcpower78c: configured with capacity of 249.98GB


selecting emcpower78c
[disk formatted]

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 disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format> l
[0] SMI Label
[1] EFI Label
Specify Label type[0]: 1
Warning: This disk has an SMI label. Changing to EFI label will erase all
current partitions.
Continue? y
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
8 - change '8' 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 (default):
Total disk sectors available: 524270269 + 16384 (reserved sectors)

Part Tag Flag First Sector Size Last Sector


0 usr wm 40 249.99GB 524270295
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
7 unassigned wm 0 0 0
8 reserved wm 524270303 8.00MB 524286686
9 unassigned wm 0 0 0
10 unassigned wm 0 0 0
11 unassigned wm 0 0 0
12 unassigned wm 0 0 0
13 unassigned wm 0 0 0
14 unassigned wm 0 0 0

partition> l
[0] SMI Label
[1] EFI Label
Specify Label type[1]:
Ready to label disk, continue? y

partition> q

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
inquiry - show disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
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
8 - change '8' 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 (default):
Total disk sectors available: 524270269 + 16384 (reserved sectors)

Part Tag Flag First Sector Size Last Sector


0 usr wm 40 249.99GB 524270295
1 unassigned wm 0 0 0
2 unassigned wm 0 0 0
3 unassigned wm 0 0 0
4 unassigned wm 0 0 0
5 unassigned wm 0 0 0
6 unassigned wm 0 0 0
7 unassigned wm 0 0 0
8 reserved wm 524270303 8.00MB 524286686
9 unassigned wm 0 0 0
10 unassigned wm 0 0 0
11 unassigned wm 0 0 0
partition> q

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
inquiry - show disk ID
scsi - independent SCSI mode selects
cache - enable, disable or query SCSI disk cache
volname - set 8-character volume name
!<cmd> - execute <cmd>, then return
quit
format>
format> q
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ldm ls-services | grep emcpower134c ##Checking old device

dunew_ldappro4_01A6 /dev/dsk/emcpower134c
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ldm add-vdsdev /dev/dsk/emcpower78c
du_ldappro4_ldappro4_0062@primary-vds0

Cannot validate path /dev/dsk/emcpower78c on service domain primary


root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ldm ls-services | grep emcpower78c

du_ldappro4_ldappro4_0062
/dev/dsk/emcpower78c
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ls -ld /dev/dsk/emcpower78c
lrwxrwxrwx 1 root root 34 Nov 29 17:41 /dev/dsk/emcpower78c -
> ../../devices/pseudo/emcp@78:c,blk
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ldm add-vdisk id=14 du_ldappro4
du_ldappro4_ldappro4_0062@primary-vds0 ldappro4
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ldm add-spconfig config_29112023
root@meyldmlpsrv16:~#
root@meyldmlpsrv16:~# ldm ls-spconfig
factory-default
config1
config_29112023 [current]

Now, Do FS expansion in LDOM.


============================

root@ldappro4 #
root@ldappro4 # echo | format
Searching for disks...done

AVAILABLE DISK SELECTIONS:


0. c0d0 <EMC-SYMMETRIX-5977 cyl 33435 alt 2 hd 224 sec 56>
/virtual-devices@100/channel-devices@200/disk@0
1. c0d1 <EMC-SYMMETRIX-5771 cyl 41776 alt 2 hd 30 sec 128>
/virtual-devices@100/channel-devices@200/disk@1
13. c0d13 <EMC-SYMMETRIX-5977-2.00TB>
/virtual-devices@100/channel-devices@200/disk@d
14. c0d14 <EMC-SYMMETRIX-5977-250.00GB>
/virtual-devices@100/channel-devices@200/disk@e
Specify disk (enter its number): Specify disk (enter its number):
root@ldappro4 #
root@ldappro4 #

root@ldappro4 # df -h /du_ldappro4
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d300 2.0T 2.0T 1003M 100% /du_ldappro4
root@ldappro4 #
root@ldappro4 # metastat d300
d300: Concat/Stripe
Size: 4294934528 blocks (2.0 TB)
Stripe 0:
Device Start Block Dbase Reloc
c0d13s0 0 No No

Device Relocation Information:


Device Reloc Device ID
c0d13 No -
root@ldappro4 #
root@ldappro4 #
root@ldappro4 # metastat -p
d300 1 1 c0d13s0
d101 1 1 c0d11s0
d100 10 1 c0d1s0 \
1 c0d2s0 \
1 c0d3s0 \
1 c0d4s0 \
1 c0d5s0 \
1 c0d6s0 \
1 c0d7s0 \
1 c0d8s0 \
1 c0d9s0 \
1 c0d10s0
root@ldappro4 # metattach d300 c0d14s0
d300: component is attached
root@ldappro4 #
root@ldappro4 # metastat d300
d300: Concat/Stripe
Size: 4819222528 blocks (2.2 TB)
Stripe 0:
Device Start Block Dbase Reloc
c0d13s0 0 No No
Stripe 1:
Device Start Block Dbase Reloc
c0d14s0 0 No No

Device Relocation Information:


Device Reloc Device ID
c0d13 No -
c0d14 No -
root@ldappro4 #
root@ldappro4 # df -h /du_ldappro4
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d300 2.0T 2.0T 1003M 100% /du_ldappro4
root@ldappro4 #
root@ldappro4 # growfs -M /du_ldappro4 /dev/md/rdsk/d300
/dev/md/rdsk/d300: 4819222528 sectors in 147071 cylinders of 128 tracks, 256
sectors
2353136.0MB in 5253 cyl groups (28 c/g, 448.00MB/g, 448 i/g)
super-block backups (for fsck -F ufs -o b=#) at:
32, 917792, 1835552, 2753312, 3671072, 4588832, 5506592, 6424352, 7342112,
8259872,
Initializing cylinder groups:
...............................................................................
.........................
super-block backups for last 10 cylinder groups at:
4810504992, 4811422752, 4812340512, 4813258272, 4814176032, 4815061024,
4815978784, 4816896544, 4817814304, 4818732064
root@ldappro4 #
root@ldappro4 #
root@ldappro4 # df -h /du_ldappro4
Filesystem size used avail capacity Mounted on
/dev/md/dsk/d300 2.2T 2.0T 251G 89% /du_ldappro4
root@ldappro4 #
root@ldappro4 #
root@ldappro4 # date
Wed Nov 29 19:33:36 GST 2023
root@ldappro4 # uname -a
SunOS ldappro4 5.10 Generic_150400-59 sun4v sparc sun4v
root@ldappro4 #

You might also like