SVM-6
What we will learn in next Few Pages
·
Renaming Volumes
Currently we have this situation,
root@sol-test-1:>/#metastat -c
d5 m 2.3GB d41 d42
d41 s
2.3GB c1t0d0s4
d42 s
2.3GB c1t1d0s4
d4 m 1.0GB d31 d32
d31 s
1.0GB c1t0d0s3
d32 s
1.0GB c1t1d0s3
d3 m 1.0GB d21 d22
d21 s
1.0GB c1t0d0s1
d22 s
1.0GB c1t1d0s1
d2 m 7.3GB d11 d12
d11 s
7.3GB c1t0d0s0
d12 s
7.3GB c1t1d0s0
Means all good…
I do not like the name of /opt i.e. d5, so I want to change it to
d500
First stop any application running on that volume,
Unmounts that volume
root@sol-test-1:>/#umount /opt
Then change the name
root@sol-test-1:>/#metarename d5 d500
d5: has been renamed to d500
#metarename <old name> <new name>
root@sol-test-1:>/#metastat -c -i d500
d500 m
2.3GB d41 d42
d41 s
2.3GB c1t0d0s4
d42 s
2.3GB c1t1d0s4
Are we done?
Logically done, but not technically…
We need to alter /etc/vfstab also
root@sol-test-1:>/#vi /etc/vfstab
/dev/md/dsk/d500
/dev/md/rdsk/d500 /opt ufs 2
yes -
root@sol-test-1:>/#mount /opt
OK… renaming has been done,
We cannot rename following volumes
·
Soft partitions
·
Volumes on which SP’s are build
·
Log devices
·
HSP’s
No comments:
Post a Comment