moving data b/w servers or file systems:
ufsdump 0f – / | ( cd /mnt ;ufsrestore xvf – )
ufsdump 0f – /r01 | ( cd /tmp/r01 ;ufsrestore xvf – )
SSH file from one server to another when SCP does not work:
ssh remote_server cat < local_file_to_send “|” dd of=desination_filename
Using tar and ssh to move directories between servers:
( cd /r01 && tar cvf – . ) | ssh hostname “(cd /tmp/r01 && tar xvpf – )”
Grow SVM file system:
metattach d101 50g
growfs -M /export/home /dev/md/rdsk/d101
Examples of creating concats using multiple disks
# metainit d25 2 1 c0t1d0s0 1 c0t2d0s0
d25: Concat/Stripe is setup
# metainit d40 4 1 c0t1d0s0 1 c0t2d0s0 1 c0t2d0s0 1 c0t2d1s0
d40: Concat/Stripe is setup
# metainit d50 4 1 c1t1d0s6 1 c1t2d0s6 1 c1t2d0s6 1 c1t2d1s6
d50: Concat/Stripe is setup
Partition a disk with info from existing disk:
prtvtoc /dev/rdsk/c0t0d0s2 | fmthard -s – /dev/rdsk/c1t1d1s2
If you only have two internal disks (i.e. the boot disk and mirror disk), consider adding the following parameter to /etc/system to bypass the SVM/DiskSuite “quorum” rule. Without this parameter, the system will not boot in multiuser mode if half or fewer of its state database replicas are available. (http://www.sun.com/blueprints/0402/solstice.pdf)
set md:mirrored_root_flag = 1
Leave a comment