:ON Solaris 10
ssh-keygen -t rsa
- id_rsa
- id_rsa.pub
@ ~/.ssh
copy id_rsa.pub to remoteHost
scp /export/home/test/.ssh/id_rsa.pub testuser@remotehost:/home/testuser/.ssh
login to remotehost
cat ~/.ssh/id_rsa.pub >> authorized_keys
@server
ssh testuser@remotehost
scp xxx.file testuser@remotehost
:ON LINUX Server
ssh-keygen
ssh-copy-id user@remotehost
ssh user@remotehost
Wednesday, November 25, 2015
Thursday, November 12, 2015
Step by step to add disk to LVM and resize lv
- fdisk -l /dev/sdx and create new partition
- pvcreate /dev/sdx1
- vgdisplay ; list volume group name
CREATE VOLUME
- vgcreate volumn_name /dev/sdd
EXTEND VOLUME
- vgcreate volumn_name /dev/sdd
EXTEND VOLUME
- vgextend vol_group_name /dev/sdx1
CREATE LOGICAL VOLUME
- lvcreate -l 20m -n logical_vol vol_group
- lvcreate -l 100%FREE -n logical_vol vol_group
- lvdisplay ; list logcal volume group name
- lvcreate -l 100%FREE -n logical_vol vol_group
- lvdisplay ; list logcal volume group name
EXTEND LOGICAL VOLUME
- lvextend -l +100%FREE /dev/vol_group_name/logical_volume
or
- lvextend /dev/vol_group_name /dev/sdx1
or
- lvextend /dev/vol_group_name /dev/sdx1
RESIZE LVM
EXT:
- resize2fs /dev/log_vol_group_name
XFS:
XFS:
- xfs_growfs /MOUNT_POINT
EXT4:
- resize4fs /dev/log_vol_group_name
EXT4:
- resize4fs /dev/log_vol_group_name
Tuesday, November 3, 2015
iSCSI on Solaris 10 x86
-Check iSCSI Service
svcs -a | grep iscsi
svcadm enable svc:/network/iscsi_initiator
-iSCSI setup initiator
iscsiadm add discovery-address 192.168.1.10:3260
iscsiadm modify initiator-node -a CHAP
iscsiadm modify initiator-node -H username
iscsiadm modify initiator-node -C
(specify CHAP password)
-iSCSI send target for Enable
iscsiadm modify discovery --sendtargets enable <--- for enable target
iscsiadm modify discovery --sendtargets disable <--- for disable target
iscsiadm list target
iscsiadm add static-config iqn.2015-11.com.wdc:wdsentinel-01-oracle-rman,192.168.1.10:3260
devfsadm -c iscsi
svcs -a | grep iscsi
svcadm enable svc:/network/iscsi_initiator
-iSCSI setup initiator
iscsiadm add discovery-address 192.168.1.10:3260
iscsiadm modify initiator-node -a CHAP
iscsiadm modify initiator-node -H username
iscsiadm modify initiator-node -C
(specify CHAP password)
-iSCSI send target for Enable
iscsiadm modify discovery --sendtargets enable <--- for enable target
iscsiadm modify discovery --sendtargets disable <--- for disable target
iscsiadm list target
iscsiadm add static-config iqn.2015-11.com.wdc:wdsentinel-01-oracle-rman,192.168.1.10:3260
devfsadm -c iscsi
Subscribe to:
Posts (Atom)
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
SET LLDP System NAME: system name ALL-Uplink system location SIAM-FL11 SHOW LLDP Configure: show lldp config or show lldp local-syste...
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => ...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...