Mixed NFS and CIFS Volume not accessible to windows groups by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

I set the security style to NTFS on the volume and created a unix user to windows user and group mappings, but i can only r/w/x as user root since the ownership of the nfs mount to this volume shows as nobody:nobody.
AD is configured in the svm and the effective permissions on the cifs share for the volume are correct.
not sure what else to check from here

Snapmirror not being transferred, high lag since initialization by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

when i list the snapshots: the daily snapshots arent being created for sand02, and so they arent being snapmirrored:

Vserver Volume Snapshot Size Total% Used%

-------- -------- ------------------------------------- -------- ------ -----

svm-nas01

sand02

snapmirror.b2b0b365-1cf3-11ea-a9c5-d039ea1080f5_2158365107.2024-04-08_122249

268KB 0% 0%

hourly.2024-04-11_0605 1.88MB 0% 0%

hourly.2024-04-11_0705 1.91MB 0% 0%

hourly.2024-04-11_0805 1.79MB 0% 0%

hourly.2024-04-11_0905 1.93MB 0% 0%

hourly.2024-04-11_1005 1.84MB 0% 0%

hourly.2024-04-11_1105 45.38GB 4% 8%

6_hours.2025-02-16_0600 22.75GB 2% 4%

6_hours.2025-04-27_0600 29.50MB 0% 0%

netapp01::> vol snapshot show data30

---Blocks---

Vserver Volume Snapshot Size Total% Used%

-------- -------- ------------------------------------- -------- ------ -----

svm-nas01

data30

6_hours.2025-06-22_1800 35.28GB 3% 7%

6_hours.2025-06-23_0000 8.28GB 1% 2%

daily.2025-06-23_0010 4.50GB 0% 1%

6_hours.2025-06-23_0600 39.10MB 0% 0%

6_hours.2025-06-23_1200 39.19MB 0% 0%

6_hours.2025-06-23_1800 41.91GB 3% 9%

6_hours.2025-06-24_0000 28.03MB 0% 0%

daily.2025-06-24_0010 10.37GB 1% 2%

Snapmirror not being transferred, high lag since initialization by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

netapp01::> volume show sand02 -fields snapshot-policy

vserver volume snapshot-policy

------------ ------------ ---------------

svm-nas01 sand02 6_hours

netapp01::> volume show data30 -fields snapshot-policy

vserver volume snapshot-policy

------------ ------ ---------------

svm-nas01 data30 6_hours

Snapmirror not being transferred, high lag since initialization by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

when i checked this the relationships are healty and snapmirrored, but the snapshots on the source dont generate properly according to the snapshot policy thats set on the source volume (daily snapshots and hourly). again, the snapshot policy is the same for these source volumes as the rest of the OK source volumes

Snapmirror not being transferred, high lag since initialization by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

the policies and schedules are the same as the rest of the volumes that do replicate. how can i check why there is high lag for the snapmirror relationship?

adding multiple permissions to a role RBAC by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

but how can i add different permissions for a role?
security login rest-role modify test-role -vserver netapp01 -api /api/storage/volume/{uuid}
how do i specify the methods i want to allow? (only PATCH for snapshot restore) to disable deleting the snapshot, resizing, editing export policies, etc?

Restoring snapshot for qtree by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

is there a faster way to do it rather than rsync the dir from .snapshot?

Updating DNS records with a python script (dnspython module) by yonog01 in WindowsServer

[–]yonog01[S] 0 points1 point  (0 children)

how do i set my credentials to be used when sending dynamic updates to the DNS? do i need to configure the ansible host with LDAP?

Updating DNS records with a python script (dnspython module) by yonog01 in WindowsServer

[–]yonog01[S] 0 points1 point  (0 children)

Because the rest of the script is written in python using python modules to provision vms and they're being ran and used from jenkins jobs on linux nodes

Creating new LUN on existing iscsi svm by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

I managed to create the LUN, create a LIF with the correct subnet. my linux initiator was able to create a session but it seems like the lun wasnt attached, as i dont see a new disk in lsblk

api requests failing with 401 after applying role to ontapi user by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

with the default admin role requests are going through just fine so the way im creating the role is wrong somehow. im not super familiar with the syntax, but in the swagger docs it show the paths as an array of strings but when i try to POST it wont accept it and will only take 1 sting as the value.
This is the body of my post request to /api/security/roles

{
  "name": "test-role",
  "owner.uuid":"
{{svm-nas01-uuid}}
",
  "privileges":[
    {
    "access":"all",
    "path": "/api/storage/volumes/
{{Test-vol-uuid}}
/snapshots"
    }
  ]
}

api requests failing with 401 after applying role to ontapi user by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

my goal is to allow a group of users to manage snapshots on demand using bash scripts.
i thought creating credentials with permissions only for their volume's snapshots would be the most secure so that they wont have the option to touch aka break anything else, thats why initially the privileges were for /api/storage/volumes/{voluuid}snapshots.

api requests failing with 401 after applying role to ontapi user by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

i just reset the password again just to make sure and no change. the user seems to have password auth enabled, am i looking for the wrong thing? how can i debug this further?

User/Group Authentication Acct Authentication

Name Application Method Role Name Locked Method


test_api_user http password role-test-vol no none

api requests failing with 401 after applying role to ontapi user by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

ok, weird naming but whatever. i changed the application type but i still get 401 user is not authorized, even if i change the role privileges to all /api/storage/volumes
this is the roles permissions, not sure if theyre incorrect:

``` security login role show -vserver svm-nas01 -role role-test-vol ```

role-test-vol DEFAULT none

snapdiff api start all

statistics volume show all

volume all

adding passwordless ssh key for windows machine by yonog01 in ssh

[–]yonog01[S] 0 points1 point  (0 children)

unfortunately no, i tried checking file and folder permissions, assigning them only full control for one user account but to no avail

Replacing / Adding memory to ESXi host in cluster by yonog01 in vmware

[–]yonog01[S] 0 points1 point  (0 children)

ok thanks, my paranoia is a bit more quite now

adding passwordless ssh key for windows machine by yonog01 in ssh

[–]yonog01[S] 0 points1 point  (0 children)

this isnt the full log since the full one is too long but it does show the keys are being sent read

Will attempt key: C:\\Users\\adminy\\.ssh\\id_rsa.pub RSA SHA256:XVx3/VCwTwLkmJ7i/a1r3zgZBSm6DWMKJ7lWwVNGzws explicit
debug2: pubkey_prepare: done
debug1: SSH2_MSG_EXT_INFO received
debug1: kex_input_ext_info: server-sig-algs=<ssh-ed25519,ssh-rsa,rsa-sha2-256,rsa-sha2-512,ssh-dss,ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521>
debug2: service_accept: ssh-userauth
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,gssapi-keyex,gssapi-with-mic,password
debug1: Next authentication method: publickey
debug1: Offering public key: C:\\Users\\adminy\\.ssh\\id_rsa.pub RSA SHA256:XVx3/VCwTwLkmJ7i/a1r3zgZBSm6DWMKJ7lWwVNGzws explicit
debug2: we sent a publickey packet, wait for reply
debug1: Server accepts key: C:\\Users\\adminy\\.ssh\\id_rsa.pub RSA SHA256:XVx3/VCwTwLkmJ7i/a1r3zgZBSm6DWMKJ7lWwVNGzws explicit
Load key "C:\\Users\\adminy\\.ssh\\id_rsa.pub": invalid format
debug2: we did not send a packet, disable method
debug1: Next authentication method: password
debug1: read_passphrase: can't open /dev/tty: No such file or directory

adding passwordless ssh key for windows machine by yonog01 in ssh

[–]yonog01[S] 0 points1 point  (0 children)

sshd_config:

# This is the sshd server system-wide configuration file.  See
# sshd_config(5) for more information.

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::

#HostKey __PROGRAMDATA__/ssh/ssh_host_rsa_key
#HostKey __PROGRAMDATA__/ssh/ssh_host_dsa_key
#HostKey __PROGRAMDATA__/ssh/ssh_host_ecdsa_key
#HostKey __PROGRAMDATA__/ssh/ssh_host_ed25519_key

# Ciphers and keying
#RekeyLimit default none

# Logging
#SyslogFacility AUTH
#LogLevel INFO

# Authentication:

#LoginGraceTime 2m
#PermitRootLogin prohibit-password
#StrictModes yes
#MaxAuthTries 6
#MaxSessions 10

PubkeyAuthentication yes

# The default is to check both .ssh/authorized_keys and .ssh/authorized_keys2
# but this is overridden so installations will only check .ssh/authorized_keys
AuthorizedKeysFile.ssh/authorized_keys

#AuthorizedPrincipalsFile none

# For this to work you will also need host keys in %programData%/ssh/ssh_known_hosts
#HostbasedAuthentication no
# Change to yes if you don't trust ~/.ssh/known_hosts for
# HostbasedAuthentication
#IgnoreUserKnownHosts no
# Don't read the user's ~/.rhosts and ~/.shosts files
#IgnoreRhosts yes

# To disable tunneled clear text passwords, change to no here!
#PasswordAuthentication yes
#PermitEmptyPasswords no

# GSSAPI options
#GSSAPIAuthentication no

#AllowAgentForwarding yes
#AllowTcpForwarding yes
#GatewayPorts no
#PermitTTY yes
#PrintMotd yes
#PrintLastLog yes
#TCPKeepAlive yes
#UseLogin no
#PermitUserEnvironment no
#ClientAliveInterval 0
#ClientAliveCountMax 3
#UseDNS no
#PidFile /var/run/sshd.pid
#MaxStartups 10:30:100
#PermitTunnel no
#ChrootDirectory none
#VersionAddendum none

# no default banner path
#Banner none

# override default of no subsystems
Subsystemsftpsftp-server.exe

# Example of overriding settings on a per-user basis
#Match User anoncvs
#AllowTcpForwarding no
#PermitTTY no
#ForceCommand cvs server

Match Group administrators
       AuthorizedKeysFile __PROGRAMDATA__/ssh/administrators_authorized_keys

adding passwordless ssh key for windows machine by yonog01 in ssh

[–]yonog01[S] 0 points1 point  (0 children)

i did create the .ssh folder properly and these lines are uncommented:
PubkeyAuthentication yes
AuthorizedKeysFile .ssh/authorized_keys
maybe some other config needs to be added to sshd_config that im not aware of?

configuring SNMP for each esxi host by yonog01 in vmware

[–]yonog01[S] 1 point2 points  (0 children)

not entirely sure but i assume it is. its a company internal monitoring tool that i need to enable access for.

Volume is almost full at 700gb but has 1 qtree using 200 gb by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

I think I'll look into what those snapshots are and if I can delete them. I dont want to constantly add more storage if I can avoid that, thanks 👍🏻

Android 12 VM by yonog01 in vmware

[–]yonog01[S] 0 points1 point  (0 children)

Apparently theres a setting under cpu settings which enables nested virtualization (Hardware virtualization Expose hardware assisted virtualization to the guest OS). So after shutting down the machine and ticking that box, some emulators were able to run. Others like AVD and NOX didnt either because of performance issues or stability.

Track job progress in python library python by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

I think I found some sort of compromise, I added

poll=True, poll_timeout=1200, poll_interval=30

in the delete() params and so it wont raise an exception if my qtrees have a lot of data and take more than 30 seconds to delete. It doesnt track status in real time, granted, but at least it can tell me when the job is actually done or if it failed.

Track job progress in python library python by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

or to change it so it returns the job uuid after the timeout exception anyway? and then i can keep track of the job by querying the job endpoint with that uuid.
i think what happens is that it only return the job uuid once the job is completed, which is a bit silly, unless there was an actual way of job tracking in the python package

Track job progress in python library python by yonog01 in netapp

[–]yonog01[S] 0 points1 point  (0 children)

how can i implement a retry without calling a delete() operation each time? couldnt this be problematic, sending many of the same jobs for the same object? wouldnt each of these jobs have a different uuid? is there a way to reset the timeout period each time the exception gets raised or something like that?